Groups > Design > Autodesk MotionBuilder Python > Using Set Value in Relations




Using Set Value in Relations

Using Set Value in Relations
Sat, 25 Aug 2007 12:06:58 +000
Hi,

I'm trying to set a value on a divide a/b box. I have incoming animation
connection on 'a' but i want to 'hard' set the value on 'b' (as you would by rt
- click > set value in the GUI).

This is as far as i've got:

lDivideBoxZ = lConstraintRelation.CreateFunctionBox( 'Number', 'Divide (a/b)' )
lDivideBoxValueZ  = FindAnimationNode( lDivideBoxZ.AnimationNodeInGet(), 'b' )

I tried casting an integer and using fbconnect to connect lDivideBoxValueZ  and
the integer but it didn't work.

Any help appreciated, this is the only missing piece of my scripted relations
tool.

Thanks
Post Reply
about | contact