View Single Post
# 4 21-09-2013 , 09:27 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
You'll have to use the "setAttr" command in this case and specify what kind of data. This attribute takes three float values, it's easy to find out just enter this into the command line:

Code:
getAttr -type bulletRigidBodyShape1.initialVelocity;
and the result will be:

Code:
// Result: float3 //

Using the type flag ensures Maya won't misinterpret the code and throw a syntax error

Code:
if(frame<100)

	setAttr bulletRigidBodyShape1.initialVelocity -type float3 1.000 2.000 3.000;
else 
	setAttr bulletRigidBodyShape1.initialVelocity -type float3 0.000 0.000 0.000;

Hope that helped.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::