Good night
I'm having trouble making a setdriven key in python.
Well out, what I'm wanting is something very much like this:


addAttr -ln "Roll"  -at double  -min 0 -max 10 -dv 0 |nurbsCircle1;
setAttr -e-keyable true |nurbsCircle1.Roll;
setDrivenKeyframe -currentDriver nurbsCircle1.Roll pCube1.rotateX;
setAttr "nurbsCircle1.Roll" 10;
rotate -r -os 90 ;
setDrivenKeyframe -currentDriver nurbsCircle1.Roll pCube1.rotateX;

python would that be?

Are 2 objects. A circle and a cube.
In the circle, I create an attribute value to float default 0, min 0,
max 10. Therefore, I create a key Setdriven between the circle and the
cube. where the value 10, the cube rotates in the X axis 90 degrees.

I'm having a little difficulty in building the code.




-- 
http://groups.google.com/group/python_inside_maya

Reply via email to