Position script controller

Position script controller

Anonymous
Not applicable
418 Views
1 Reply
Message 1 of 2

Position script controller

Anonymous
Not applicable
I'm trying to make an animation from a prop with a piston There for i have a postionscript controller to make form a rotational moment a vertical movement. but when i start to rotate the whole rig the movement is getting smaller because there isn't referring to the world access.
can I make this script working on a local base.

Script example:

dependsOn $Point01 $Point_Anchor

posX = $Point_Anchor.position
posY = $Point_Anchor.position
posZ = $Point01.position



--


Max 2010 X64 - Vray 1.50 SP4 - Dual Quad Xeon E5410 - 4GB - Quadro FX 1700
0 Likes
419 Views
1 Reply
Reply (1)
Message 2 of 2

Steve_Curley
Mentor
Mentor
Firstly - what version of Max? "dependsOn" has been deprecated (shouldn't be used) for quite a few versions.

Rotations are, I believe, local (but a pain to get right in script), positions are relative to the world by default - just as if you had moved it in the viewport.

Look up "coordsys" in the help for changing those.

2 Tips.
Put your Max version (and brief system specs) in your sig - saves us asking.
Always put code in CODE tags - the forum display messes with it if you don't.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes