|
Where does it say that exactly? The correct definition is:
move <node> <point3>
Where node is a reference to the actual node, not its name.
point3 is a Point3 value - essentially an array of 3 values [x, y, z]
If you reset Max then create a Box, its name will be “Box001”
To move that box via Maxscript you would have to either
move $Box001 [10,10,10]
or
move (getNodeByName "Box001") [10,10,10]
Important - move is a Relative move - not an absolute position in the world. Use:-
<node>.pos = [10,10,10]
to move it to a specific world location.
If you intend move on to more generalised scripts, avoid the “$” method as it restricts the script to working with objects with specific names. Even better, avoid the getNodeByName if you can for the same reason, although that method does allow, for example, a user to enter the name of the object they want to use. Better to make them select the object before running the script, or to remove the user from the equation entirely and iterate over all the Box objects in the scene.
Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.
|