pymel.core.nodetypes.RigidBody¶
digraph inheritance3b61405042 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "ContainerBase" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.ContainerBase.html#pymel.core.nodetypes.ContainerBase",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNode" -> "ContainerBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DagNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DagNode.html#pymel.core.nodetypes.DagNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "Entity" -> "DagNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DependNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DependNode.html#pymel.core.nodetypes.DependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" -> "DependNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Entity" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.Entity.html#pymel.core.nodetypes.Entity",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "ContainerBase" -> "Entity" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ProxyUnicode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.ProxyUnicode.html#pymel.util.utilitytypes.ProxyUnicode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.core.general/pymel.core.general.PyNode.html#pymel.core.general.PyNode",style="setlinewidth(0.5)",tooltip="Abstract class that is base for all pymel nodes classes.",height=0.25,shape=box,fontsize=8]; "ProxyUnicode" -> "PyNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "RigidBody" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.nodetypes.RigidBody",style="setlinewidth(0.5)",tooltip="class counterpart of mel function `rigidBody`",height=0.25,shape=box,fontsize=8]; "Shape" -> "RigidBody" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Shape" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.Shape.html#pymel.core.nodetypes.Shape",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DagNode" -> "Shape" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
- class RigidBody(*args, **kwargs)¶
class counterpart of mel function rigidBody
This command creates a rigid body from a polygonal or nurbs surface.
- MObjectColorType = Enum( EnumValue('MObjectColorType', 0, 'defaultColor'), EnumValue('MObjectColorType', 1, 'indexColor'), EnumValue('MObjectColorType', 2, 'RGBColor'))¶
- deleteCache(val=True, **kwargs)¶
Deletes the cache (if one exists) of the rigid body.
Derived from mel command maya.cmds.rigidBody
- getActive(**kwargs)¶
Creates a rigid body that is active. An active rigid body accepts and causes collisions and is effected by dynamic fields. This is the default.
Derived from mel command maya.cmds.rigidBody
- getAngularVelocity(**kwargs)¶
Current angular velocity of rigid body.
Derived from mel command maya.cmds.rigidBody
- getApplyForceAt(**kwargs)¶
Determines how forces are applied to the rigid body. The choices are centerOfMass | boundingBox | verticesOrCVs. Default: boundingBox
Derived from mel command maya.cmds.rigidBody
- getBounciness(**kwargs)¶
Sets the restitution (or bounciness) of the rigid body. Range: 0.0 - 2.0 Default: 0.6
Derived from mel command maya.cmds.rigidBody
- getCache(**kwargs)¶
Turns caching on (1) or off (0) for the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- getCenterOfMass(**kwargs)¶
Sets the center of mass (x,y,z) of the rigid body. Default: actual center of mass.
Derived from mel command maya.cmds.rigidBody
- getCollisions(**kwargs)¶
Truns collisions on/off for the rigid body. If the collisions are turned of the rigid body will not collide with any other rigid body. Default: on.
Derived from mel command maya.cmds.rigidBody
- getContactCount(**kwargs)¶
returns the current contact count for the rigid body.
Derived from mel command maya.cmds.rigidBody
- getContactName(**kwargs)¶
returns all the rigid body names which are in contact with this shape. One name for each contact will be returned.
Derived from mel command maya.cmds.rigidBody
- getContactPosition(**kwargs)¶
returns all the contact position. One position for each contact will be returned.
Derived from mel command maya.cmds.rigidBody
- getDamping(**kwargs)¶
Sets the damping value of the rigid body. Range: -2.0 - 2.0 Default: 0.0
Derived from mel command maya.cmds.rigidBody
- getDynamicFriction(**kwargs)¶
Sets the dynamic friction for the rigid body. Range: 0.0 - 1.0 Default: 0.2
Derived from mel command maya.cmds.rigidBody
- getForce(**kwargs)¶
Current force on the rigid body.
Derived from mel command maya.cmds.rigidBody
- getIgnore(**kwargs)¶
Causes the rigid body to be ignored in the rigid solver. Default: off
Derived from mel command maya.cmds.rigidBody
- getInitialAngularVelocity(**kwargs)¶
Sets the initial angular velocity of the rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody
- getInitialVelocity(**kwargs)¶
Sets the initial velocity of the rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody
- getLayer(**kwargs)¶
Sets the collision layer of the rigid body. Only rigid bodies in the same collision layer can collide with each other. Range: = 0 Default: 0.
Derived from mel command maya.cmds.rigidBody
- getLockCenterOfMass(**kwargs)¶
Locks the center of mass for the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- getMass(**kwargs)¶
Sets the mass of the rigid body. Range: 0 Default: 1.0
Derived from mel command maya.cmds.rigidBody
- getOrientation(**kwargs)¶
Sets the initial orientation (x,y,z) of the rigid body. Default: current orientation.
Derived from mel command maya.cmds.rigidBody
- getParticleCollision(**kwargs)¶
Turns the ability for a rigid body to collide with particles on and off. The particles will exert a force on the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- getPassive(**kwargs)¶
Creates a rigid body that is passive. A passive rigid body does not react to collisions but active rigid bodies can collide with it. Dynamic Fields will not effect a passive rigid body. Only passive rigid bodies can be keyframed.
Derived from mel command maya.cmds.rigidBody
- getPosition(**kwargs)¶
Sets the initial position (x,y,z) of the rigid body. Default: current position.
Derived from mel command maya.cmds.rigidBody
- getRemoveShape(**kwargs)¶
Remove the named shape.
Derived from mel command maya.cmds.rigidBody
- getSolver(**kwargs)¶
The name of the solver which this rigid node is to resided. If the solver does not exists then the rigid body will not be created. If the edit flag is thrown add the solver exists, the rigid body will be moved to that solver.
Derived from mel command maya.cmds.rigidBody
- getStandInObject(**kwargs)¶
Causes the simulator to use a stand in object for the simulation. The choices are none | cube | sphere. The default is none. Default: none
Derived from mel command maya.cmds.rigidBody
- getStaticFriction(**kwargs)¶
Sets the static friction for the rigid body. Range: 0.0 - 1.0 Default: 0.2
Derived from mel command maya.cmds.rigidBody
- getTesselationFactor(**kwargs)¶
Sets the tesselation factor for a rigid body surface. Range: = 10 Default: 200.
Derived from mel command maya.cmds.rigidBody
- getVelocity(**kwargs)¶
Current velocity of rigid body. Flag can have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.rigidBody
- impulse(val=True, **kwargs)¶
Applies an impulse (instantaneous) force on a rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody
- impulsePosition(val=True, **kwargs)¶
The position at which the impulse is applied. Default: the bodies center of mass.
Derived from mel command maya.cmds.rigidBody
- setActive(val=True, **kwargs)¶
Creates a rigid body that is active. An active rigid body accepts and causes collisions and is effected by dynamic fields. This is the default.
Derived from mel command maya.cmds.rigidBody
- setApplyForceAt(val=True, **kwargs)¶
Determines how forces are applied to the rigid body. The choices are centerOfMass | boundingBox | verticesOrCVs. Default: boundingBox
Derived from mel command maya.cmds.rigidBody
- setBounciness(val=True, **kwargs)¶
Sets the restitution (or bounciness) of the rigid body. Range: 0.0 - 2.0 Default: 0.6
Derived from mel command maya.cmds.rigidBody
- setCache(val=True, **kwargs)¶
Turns caching on (1) or off (0) for the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- setCenterOfMass(val=True, **kwargs)¶
Sets the center of mass (x,y,z) of the rigid body. Default: actual center of mass.
Derived from mel command maya.cmds.rigidBody
- setCollisions(val=True, **kwargs)¶
Truns collisions on/off for the rigid body. If the collisions are turned of the rigid body will not collide with any other rigid body. Default: on.
Derived from mel command maya.cmds.rigidBody
- setDamping(val=True, **kwargs)¶
Sets the damping value of the rigid body. Range: -2.0 - 2.0 Default: 0.0
Derived from mel command maya.cmds.rigidBody
- setDynamicFriction(val=True, **kwargs)¶
Sets the dynamic friction for the rigid body. Range: 0.0 - 1.0 Default: 0.2
Derived from mel command maya.cmds.rigidBody
- setIgnore(val=True, **kwargs)¶
Causes the rigid body to be ignored in the rigid solver. Default: off
Derived from mel command maya.cmds.rigidBody
- setInitialAngularVelocity(val=True, **kwargs)¶
Sets the initial angular velocity of the rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody
- setInitialVelocity(val=True, **kwargs)¶
Sets the initial velocity of the rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody
- setLayer(val=True, **kwargs)¶
Sets the collision layer of the rigid body. Only rigid bodies in the same collision layer can collide with each other. Range: = 0 Default: 0.
Derived from mel command maya.cmds.rigidBody
- setLockCenterOfMass(val=True, **kwargs)¶
Locks the center of mass for the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- setMass(val=True, **kwargs)¶
Sets the mass of the rigid body. Range: 0 Default: 1.0
Derived from mel command maya.cmds.rigidBody
- setOrientation(val=True, **kwargs)¶
Sets the initial orientation (x,y,z) of the rigid body. Default: current orientation.
Derived from mel command maya.cmds.rigidBody
- setParticleCollision(val=True, **kwargs)¶
Turns the ability for a rigid body to collide with particles on and off. The particles will exert a force on the rigid body. Default: off
Derived from mel command maya.cmds.rigidBody
- setPassive(val=True, **kwargs)¶
Creates a rigid body that is passive. A passive rigid body does not react to collisions but active rigid bodies can collide with it. Dynamic Fields will not effect a passive rigid body. Only passive rigid bodies can be keyframed.
Derived from mel command maya.cmds.rigidBody
- setPosition(val=True, **kwargs)¶
Sets the initial position (x,y,z) of the rigid body. Default: current position.
Derived from mel command maya.cmds.rigidBody
- setRemoveShape(val=True, **kwargs)¶
Remove the named shape.
Derived from mel command maya.cmds.rigidBody
- setSolver(val=True, **kwargs)¶
The name of the solver which this rigid node is to resided. If the solver does not exists then the rigid body will not be created. If the edit flag is thrown add the solver exists, the rigid body will be moved to that solver.
Derived from mel command maya.cmds.rigidBody
- setStandInObject(val=True, **kwargs)¶
Causes the simulator to use a stand in object for the simulation. The choices are none | cube | sphere. The default is none. Default: none
Derived from mel command maya.cmds.rigidBody
- setStaticFriction(val=True, **kwargs)¶
Sets the static friction for the rigid body. Range: 0.0 - 1.0 Default: 0.2
Derived from mel command maya.cmds.rigidBody
- spinImpulse(val=True, **kwargs)¶
Applies an spin impulse (instantaneous rotational) force on a rigid body. Default: 0.0 0.0 0.0
Derived from mel command maya.cmds.rigidBody