View Full Version : move node callbacks?

01 January 2009, 12:41 AM
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?

01 January 2009, 12:49 AM
and i found it under
"Change Handlers and When Constructs"

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

01 January 2009, 02:00 AM
and ive hacked my way around it :)

01 January 2009, 01: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:

getting the camera immovable after that is simple enough :)

CGTalk Moderation
01 January 2009, 01: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.