Simple SCOP Question...

Date : Fri, 2 Feb 2007 11:39:16 -0800
To : xsi(at)Softimage.COM
From : "Meng-Yang Lu" <ntmonkey(at)gmail.com>
Subject : Simple SCOP Question...
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

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.