Notifications
Clear all

[Closed] move node callbacks?

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?

3 Replies

and i found it under
“[b][color=white][b]Change Handlers and When Constructs”

[/b][/color][/b]Edit:
Ok that doesnt save with the max scene. Is there a callback I can use?

and ive hacked my way around it

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