PDA

View Full Version : API: Move object on Camera Plane?


AyaKoshigaya
06-26-2005, 04:44 PM
Hi,

does anyone know how I can move an Object on the current CameraPlane (in PerspView)???

I need the same what the MoveTool does, if you drag the manipulator in the center (not one of the three arrows)...

Does anyone know how I can do this???

Au'revoir,
Aya~

Morganism
06-26-2005, 08:41 PM
I'm sorry, I don't know if this will help with API, but if you just parent the thing to the camera and move it in local space that should work....

AyaKoshigaya
06-26-2005, 09:09 PM
Hi,

mh... ya, that would work, but... somehow there must be an easier way ;)

I think I have to calculate it somehow.... with the Camera Up/Right Vector etc... but... don't know how :sad:

Au'revoir,
Aya~

ceql
06-26-2005, 09:39 PM
I don't know about the API, but there's always pixelMove in mel that translates based on the current view: pixelMove x y (but of course this only does it in pixels values, so it probably isn't what you might be looking for...)

AyaKoshigaya
06-26-2005, 10:08 PM
Hi,

the pixelMove command works fine... :) thanks a lot!

But, if there's anywhere anyone who knows how to do this with API... would be great (right now I'm calling the MEL Command via API ^^)

Au'revoir,
Aya~

mexxmillion
06-28-2005, 04:03 AM
not sure these maths help..
http://www.ewertb.com/maya/mel/mel.php?howto=87

CGTalk Moderation
06-28-2005, 04:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.