IC8 Python API:RLPy RIMesh

From Reallusion Wiki!
Jump to: navigation, search

Description

This class provides access to scene mesh geometry and materials, and supports mesh editing operations.

Constructor & Destructor

__init__ (self, *args, **kwargs)

Initializes a new mesh instance.

Parameters

  • args
  • kwargs

Member Functions

ConvertToAccessory (self, bCurrentShape=True)

Converts mesh to accessory.

Parameters

  • bCurrentShape (default: True)

DeleteFaces (self, kFaceIndexs)

Deletes faces.

Parameters

  • kFaceIndexs

GetFace (self, nFaceIdx)

Gets the index of vertices that make up the face.

Parameters

  • nFaceIdx

GetFacesCount (self)

Gets face count of the mesh.

GetID (self)

Gets unique id of the mesh.

GetName (self)

Gets name of the mesh.

GetSelectedFaceIndices (self)

Gets the selected face indices of this mesh.

GetSelectedVertexIndices (self)

Gets the selected vertex XYZ indices of this mesh.

GetStdMaterials (self)

Returns the std materials.

GetVertex (self, nIndex, bWorld=False)

Gets position of the vertex.

Parameters

  • nIndex
  • bWorld (default: False)

GetVertices (self, bWorld=False)

Returns the vertices.

Parameters

  • bWorld (default: False)

GetVerticesCount (self)

Gets vertex count of the mesh.

ReplaceMesh (self, strPath, eOption, bReplaceUv, bSplitObjects=False)

Replaces mesh with fbx or obj, no used for standard Note: standard series characters are not supported for this operation.

Parameters

  • strPath
  • eOption
  • bReplaceUv
  • bSplitObjects (default: False)

SetSelectedFaceIndices (self, kIndices)

Replaces the selected face indices of this mesh.

Parameters

  • kIndices

SetSelectedVertexIndices (self, kIndices)

Replaces the selected vertex XYZ indices of this mesh.

Parameters

  • kIndices

SetWorldVertices (self, kWorldVertices)

Sets all vertex positions of the mesh in world space.

Parameters

  • kWorldVertices

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.