The PhyContextExport class is an interface into the physique vertex data. It can be used to retrieve vertex data of the modifier. Currently it only supports rigid vertices (blended and non-blended). You can use convertToRigid() to convert all vertices into rigid.
Constructor
getPhyContextExport <node> <physique_modifier>
Returns an instance of PhyContextExport class.
Properties
<GetPhyContextExport>.numVerts
Returns the number vertices in the object. This property is read-only.
Methods
convertToRigid <PhyContextExport> <boolean>
Converts all vertices into rigid vertices. If a true value is passed then getVertexInterface() converts a deformable vertex into a rigid vertex and returns the vertex. If a false value is passed then getVertexInterface() returns undefined for a deformable vertex.
allowBlending <PhyContextExport> <boolean>
If a true value is passed then getVertexInterface() returns a PhyBlendingRigidVertex, if a vertex is blended, otherwise undefined.
getVertexInterface <PhyContextExport> <index_integer>
Returns the vertex given the vertex index. The vertex can be either PhyRigidVertex or PhyBlendingRigidVertex.
See also