Hi! Trying develop new script I`m stucked at beginning!
Sorry my endlish.
So, here is test part of the future script:
(
global SSTransformObjects
global recreateCallback
global ctrlObjectLastPos
global ctrlObjectLastRot
global ctrlObjectLastScale
fn SSTransformObjects = (
if selection[1].pos != ctrlObjectLastPos do (
$Box002.pos = $Box002.pos + [0,1,0]
ctrlObjectLastPos = selection[1].pos
print $Box002.pos
)
)
fn recreateCallback = (
unregisterRedrawViewsCallback SSTransformObjects
registerRedrawViewsCallback SSTransformObjects
ctrlObjectLastPos = selection[1].pos
)
recreateCallback()
)
And the result must be: while I move Box001 - Box002 must shift its position by 1 in one direction. This is just for test! But Box002 doesn`t move, print command is worked fine - showing us that function worked...
Can`t understand where is mistake :( Please, help me!