PDA

View Full Version : disconnecting rigid body and cube (python)


bendingiscool
03-15-2009, 06:30 PM
Hey, I am having syntax troubles.

Basically I make a cube, make it a rigid body, but now want to disconnect its rotates so I can have them effected by other inputs, so far I have this...


cube = mc.polyCube()
rigidBody = mc.rigidBody(mass=1, bounciness=0, damping=20, impulse=[0,0,0])
mc.setAttr(rigidBody + '.allowDisconnection', 1)

#### problem here:
mc.disconnectAttr('%s.sz' % cube,'%s.impulseZ' % rb)
####



but am now unsure of the disconnectAttr syntax when its between the variables of a rigid body and it's parent.

Thanks, Chris

CGTalk Moderation
03-15-2009, 06:30 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.