Notifications
Clear all

[Closed] transforming doesn't seem to be working

i’ve got a maxscript recorded, that should move my simple mouth rig into an O shape, however despite having been fine before, now it won’t move things up and down. the control points ‘mouth left ctrl’, ‘mouth right ctrl’ and ‘mouth bottom ctrl’ just won’t budge, despite the listener saying they worked fine, whilst they’ll move fine along the X axis. have i somehow locked the Y axis without realising?

here’s the script;

select $'mouth right corner ctrl'
move $ [-3.71982,0,0]
select $'mouth left corner ctrl'
move $ [3.52965,0,0]
select $'mouth left ctrl'
select $'mouth right ctrl'
move $ [0,1.84512,0]
select $'mouth bottom ctrl'
move $ [0,-2.44832,0]

cheers for any help,

Martin

5 Replies

no one got any ideas? i really can’t carry on with my project properly without this working

In Max, Z is up and down, not Y. All you’re Z values are zero.

But it’s best to set the position of an object directly rather than using the Move command. So you can do something like this:

– move the object 50 units up
$‘mouth right corner ctrl’.pos += [0,0,50]

– move the object 50 units down
$‘mouth right corner ctrl’.pos += [0,0,-50]

– move the object 50 units positive X
$‘mouth right corner ctrl’.pos += [50,0,0]

etc. You get the idea.

Can you explain the $‘xxx’ notation? I can’t find anything about it in the reference

stuh505 –
the $‘XXX’ is to include special characters and spaces in names

eg… $box blah will not work for some object named “box blah”

$‘box blah’ will work

mark

aah, cheers i’ll give that a try.

thanks for the help