Functions to manipulate and retrieve information about 3D models. More...
Public Member Functions | |
| integer | GetVertexCount (integer model) |
| Returns how many vertices are in the model. | |
| integer | GetAnimationCount (integer model) |
| Returns how many animations exist in the model. | |
| string | GetAnimationName (integer model, integer animation) |
| Gets the name of the model animation with the specified index. | |
| integer | GetAnimationIndex (integer model, string animationName) |
| Gets the index of the model animation with the specified name. | |
| integer | GetFrameCount (integer model) |
| Returns how many frames exist in the model. | |
| integer | GetAnimationLength (integer model, integer animation) |
| Returns the length of the animation. | |
| boolean | HasMaterials (integer model) |
| Checks to see if the model has materials. | |
| boolean | HasBones (integer model) |
| Checks to see if the model has bones. | |
| integer | GetMaterialCount (integer model) |
| Returns the amount of materials in the model. | |
| Material | GetMaterial (integer model, string material) |
| Gets a material from a model. | |
| Material | GetMaterial (integer model, integer material) |
| Gets a material from a model. | |
| integer | CreateArmature (integer model) |
| Creates an armature from the model. | |
| void | PoseArmature (integer model, integer armature, integer animation, decimal frame) |
| Poses an armature. | |
| void | ResetArmature (integer model, integer armature) |
| Resets an armature to its default pose. | |
| void | DeleteArmature (integer model, integer armature) |
| Deletes an armature from the model. | |
Functions to manipulate and retrieve information about 3D models.
| integer Model.CreateArmature | ( | integer | model | ) |
Creates an armature from the model.
| model | The model index. |
| void Model.DeleteArmature | ( | integer | model, |
| integer | armature ) |
Deletes an armature from the model.
| model | The model index. |
| armature | The armature index to delete. |
| integer Model.GetAnimationCount | ( | integer | model | ) |
Returns how many animations exist in the model.
| model | The model index to check. |
| integer Model.GetAnimationIndex | ( | integer | model, |
| string | animationName ) |
Gets the index of the model animation with the specified name.
| model | The model index to check. |
| animationName | Name of the animation to find. |
| integer Model.GetAnimationLength | ( | integer | model, |
| integer | animation ) |
Returns the length of the animation.
| model | The model index to check. |
| animation | The animation index to check. |
| string Model.GetAnimationName | ( | integer | model, |
| integer | animation ) |
Gets the name of the model animation with the specified index.
| model | The model index to check. |
| animation | Index of the animation. |
| integer Model.GetFrameCount | ( | integer | model | ) |
Returns how many frames exist in the model.
| model | The model index to check. |
| Material Model.GetMaterial | ( | integer | model, |
| integer | material ) |
Gets a material from a model.
| model | The model index to check. |
| material | The material to get, from its index. |
| Material Model.GetMaterial | ( | integer | model, |
| string | material ) |
Gets a material from a model.
| model | The model index to check. |
| material | The material to get, from its name. |
| integer Model.GetMaterialCount | ( | integer | model | ) |
Returns the amount of materials in the model.
| model | The model index to check. |
| integer Model.GetVertexCount | ( | integer | model | ) |
Returns how many vertices are in the model.
| model | The model index to check. |
| boolean Model.HasBones | ( | integer | model | ) |
Checks to see if the model has bones.
| model | The model index to check. |
| boolean Model.HasMaterials | ( | integer | model | ) |
Checks to see if the model has materials.
| model | The model index to check. |
| void Model.PoseArmature | ( | integer | model, |
| integer | armature, | ||
| integer | animation, | ||
| decimal | frame ) |
Poses an armature.
| model | The model index. |
| armature | The armature index to pose. |
| animation | Animation to pose the armature. |
| frame | Frame to pose the armature. |
| void Model.ResetArmature | ( | integer | model, |
| integer | armature ) |
Resets an armature to its default pose.
| model | The model index. |
| armature | The armature index to reset. |