Hi List,
I've got a simple thing I'm trying to accomplish with scops, but I can't seem to piece the pieces together. I've got a script where the distance of 2 nulls define the bone length. Script works. Now, I want this to work as a SCOP so I can move the nulls and have the bone length update. The examples in the docs make little sense to me. The scene only needs 2 nulls and a joint.
Here's the script in python:
>>
nv1 = XSIMath.CreateVector3()
nv2 = XSIMath.CreateVector3()
nvsum = XSIMath.CreateVector3()
nvlength = XSIMath.CreateVector3()
oNull.Kinematics.Global.Transform.GetTranslation
(nv1)
oNull1.Kinematics.Global.Transform.GetTranslation(nv2)
nvsum.Sub( nv1, nv2 )
bLength = nvsum.Length()
Application.SetValue("bone.length", bLength)
Thanks in advance,
-Lu