i recently switched to xsi . while trying to figure out scripting in xsi , i wrote a small test script.
this script rotates a bone depending upon another bone's rotation .
my basic doubt is whether we can use
vbscript & jscript in expression editor ?
now i explain it more specifically .
dim a,b
a = GetValue ( "bone1.kine.global.rotz")
b = a- 40
SetValue "bone1.kine.global.rotz",b
this works fine from script editor. but
once i put this in expression editor, it shows error
" variable not defined or empty "
are variables ,loop constructs not
available for expressions ?
what do i do if i wish to run this
code everyframe ,so that the "b" value will be updated every frame ?
( say , i wish to add secondary motion to tails or ears based on main character movement
can i do it through expressions .because i can do it in maya in this way.
thanx in advance .