MQDocument contains objects and materials.
| get | set | Type | Name | Description |
|---|---|---|---|---|
| x | int | numObject | number of objects | |
| x | int | numMaterial | number of materials | |
| x | list<MQObject> | object | list of objects | |
| x | list<MQMaterial> | material | list of material | |
| x | x | int | currentObjectIndex | index of current object |
| x | x | int | currentMaterialIndex | index of current material |
| x | string | filename | file name | |
| x | MQEnvMap | envmap | environment map | |
| x | int | numMaxUVChannel | a maximum number of UV channels per an object |
| Member | Description |
|---|---|
| getScene | Get a scene in this document. |
| addObject | Add an object into this document. |
| insertObject | Insert an object into this document. |
| removeObject | Remove the object from this document without deletion. |
| deleteObject | Delete the object in this document. |
| getObjectIndex | Get an index of the object. |
| getParentObject | Get a parent object of the specified object. Return 'None' if the specified object exists in the root. |
| getChildObjectCount | Get a number of children objects under the specified object. |
| getChildObject | Get a child object under the specified object. |
| isAncestorObject | Check if a child object under the specified object. |
| getUnusedObjectName | Get an unused object name. |
| getGlobalMatrix | Get a global matrix of the specified object. |
| getGlobalInverseMatrix | Get a global inverse matrix of the specified object. |
| addMaterial | Add a material into this document. |
| deleteMaterial | Delete a material in this document. |
| getUnusedMaterialName | Get an unused material name. |
| clearSelect | Clear the selection. |
| addSelectVertex | Add a selection of the vertex. |
| deleteSelectVertex | Delete a selection of the vertex. |
| isSelectVertex | Get a selection of the vertex. |
| addSelectLine | Add a selection of the line. |
| deleteSelectLine | Delete a selection of the line. |
| isSelectLine | Get a selection of the line. |
| addSelectFace | Add a selection of the face. |
| deleteSelectFace | Delete a selection of the face. |
| isSelectFace | Get a selection of the face. |
| addSelectUVVertex | Add a selection of the UV vertex. |
| deleteSelectUVVertex | Delete a selection of the UV vertex. |
| isSelectUVVertex | Get a selection of the UV vertex. |
| createObjectUserData | Create an user data for an object. |
| deleteObjectUserData | Delete an user data for an object. |
| findObjectUserData | Find an existing user data for an object. |
| createVertexUserData | Create an user data for vertices. |
| deleteVertexUserData | Delete an user data for vertices. |
| findVertexUserData | Find an existing user data for vertices. |
| createFaceUserData | Create an user data for faces. |
| deleteFaceUserData | Delete an user data for faces. |
| findFaceUserData | Find an existing user data for faces. |
| createMaterialUserData | Create an user data for a material. |
| deleteMaterialUserData | Delete an user data for a material. |
| findMaterialUserData | Find an existing user data for a material. |
| getUVChannelID | Get or generate an UV channel ID from a name. |
| getUVChannelName | Get an UV channel name from an UV channel ID. |
| compact | Shorten arrays in the document by removing Null. |
| save | Save to a file. |
| undo | Execute an undo operation. |
| redo | Execute an redo operation. |
| clearUndoBuffer | Clear an undo buffer. |
| getScene(index) | ||||
Get a scene in this document. | ||||
| ||||
|
| addObject(obj[, parent]) | |||
Add an object into this document. | |||
| |||
|
| insertObject(obj, brother) | |||
Insert an object into this document. | |||
| |||
|
| removeObject(object) | ||||
Remove the object from this document without deletion. | ||||
| ||||
|
| deleteObject(index) | ||||
Delete the object in this document. | ||||
| ||||
|
| getObjectIndex(obj) | ||||
Get an index of the object. | ||||
| ||||
|
| getParentObject(obj) | ||||
Get a parent object of the specified object. Return 'None' if the specified object exists in the root. | ||||
| ||||
|
| getChildObjectCount(obj) | ||||
Get a number of children objects under the specified object. | ||||
| ||||
|
| getChildObject(obj, index) | ||||||||
Get a child object under the specified object. | ||||||||
| ||||||||
|
| isAncestorObject(ancestor, descendant) | |||
Check if a child object under the specified object. | |||
|
| getUnusedObjectName([base_name]) | ||||
Get an unused object name. | ||||
| ||||
|
| getGlobalMatrix(obj) | ||||
Get a global matrix of the specified object. | ||||
| ||||
|
| getGlobalInverseMatrix(obj) | ||||
Get a global inverse matrix of the specified object. | ||||
| ||||
|
| addMaterial(mat) | ||||
Add a material into this document. | ||||
| ||||
|
| deleteMaterial(index) | ||||
Delete a material in this document. | ||||
| ||||
|
| getUnusedMaterialName([base_name]) | ||||
Get an unused material name. | ||||
| ||||
|
| clearSelect |
Clear the selection. |
| addSelectVertex(obj_index, vert_index) | ||||||||
Add a selection of the vertex. | ||||||||
|
| deleteSelectVertex(obj_index, vert_index) | ||||||||
Delete a selection of the vertex. | ||||||||
|
| addSelectLine(obj_index, face_index, line_index) | ||||||||||||
Add a selection of the line. | ||||||||||||
|
| deleteSelectLine(obj_index, face_index, line_index) | ||||||||||||
Delete a selection of the line. | ||||||||||||
|
| isSelectLine(obj_index, face_index, line_index) | ||||||||||||
Get a selection of the line. | ||||||||||||
| ||||||||||||
|
| addSelectFace(obj_index, face_index) | ||||||||
Add a selection of the face. | ||||||||
|
| deleteSelectFace(obj_index, face_index) | ||||||||
Delete a selection of the face. | ||||||||
|
| isSelectFace(obj_index, face_index) | ||||||||
Get a selection of the face. | ||||||||
| ||||||||
|
| addSelectUVVertex(obj_index, face_index, apex_index) | ||||||||||||
Add a selection of the UV vertex. | ||||||||||||
|
| deleteSelectUVVertex(obj_index, face_index, apex_index) | ||||||||||||
Delete a selection of the UV vertex. | ||||||||||||
|
| isSelectUVVertex(obj_index, face_index, apex_index) | ||||||||||||
Get a selection of the UV vertex. | ||||||||||||
| ||||||||||||
|
| createObjectUserData(productID, pluginID, identifier, bytes_per_object) | ||||||||||||||||
Create an user data for an object. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
|
| deleteObjectUserData(userdata_id) | ||||
Delete an user data for an object. | ||||
|
| findObjectUserData(productID, pluginID, identifier) | ||||||||||||
Find an existing user data for an object. | ||||||||||||
| ||||||||||||
|
| createVertexUserData(productID, pluginID, identifier, bytes_per_vertex) | ||||||||||||||||
Create an user data for vertices. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
|
| deleteVertexUserData(userdata_id) | ||||
Delete an user data for vertices. | ||||
|
| findVertexUserData(productID, pluginID, identifier) | ||||||||||||
Find an existing user data for vertices. | ||||||||||||
| ||||||||||||
|
| createFaceUserData(productID, pluginID, identifier, bytes_per_face) | ||||||||||||||||
Create an user data for faces. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
|
| deleteFaceUserData(userdata_id) | ||||
Delete an user data for faces. | ||||
|
| findFaceUserData(productID, pluginID, identifier) | ||||||||||||
Find an existing user data for faces. | ||||||||||||
| ||||||||||||
|
| createMaterialUserData(productID, pluginID, identifier, bytes_per_material) | ||||||||||||||||
Create an user data for a material. | ||||||||||||||||
| ||||||||||||||||
| ||||||||||||||||
|
| deleteMaterialUserData(userdata_id) | ||||
Delete an user data for a material. | ||||
|
| findMaterialUserData(productID, pluginID, identifier) | ||||||||||||
Find an existing user data for a material. | ||||||||||||
| ||||||||||||
|
| getUVChannelID(name) | ||||
Get or generate an UV channel ID from a name. | ||||
| ||||
| ||||
|
| getUVChannelName(channel) | ||||
Get an UV channel name from an UV channel ID. | ||||
| ||||
| ||||
|
| compact |
Shorten arrays in the document by removing Null. |
| save(filename[, productID, pluginID, index]) | ||||||||||||||||
Save to a file. | ||||||||||||||||
| ||||||||||||||||
|
| undo | |||
Execute an undo operation. | |||
|
| redo | |||
Execute an redo operation. | |||
|
| clearUndoBuffer |
Clear an undo buffer. |