PDA

View Full Version : move node callbacks?


Gibbz
01-04-2009, 11:41 PM
Ive had a look through the callbacks. Which would be the best one for when I move an object in the viewport?

What I want to do is to have the user select the camera target and drag this around inside a box (ie the target cannot leave this box).
This will then affect the cameras position. The user should not be able to move the camera, only the target.


So im looking for a callback for when the user moves a node or some other way to do this? Possibly using constraints?

Gibbz
01-04-2009, 11:49 PM
and i found it under
"Change Handlers and When Constructs"

Edit:
Ok that doesnt save with the max scene. Is there a callback I can use?

Gibbz
01-05-2009, 01:00 AM
and ive hacked my way around it :)

ZeBoxx2
01-05-2009, 12:53 PM
you could set up a callback (that can be set persistent and thus saves with the scene) that re-establishes the change handler once the file is loaded.. :)

this thread may be of interest to you as well - it discusses limiting an object's position within a given circle.. making it limited within a given square should be easier:
http://forums.cgsociety.org/showthread.php?f=98&t=607541&highlight=circle+move

getting the camera immovable after that is simple enough :)

CGTalk Moderation
01-05-2009, 12:53 PM
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.