Simple script to select cameras and moving ther target up.

I am new to maxscript. I would like to write a simple script which shows all the available cameras in the scene and let me select the ones that I need from a rollout menu and let me move their target x units up in z direction.
I would really appreciate your help.
Thanks.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

You would then first have to

You would then first have to collect all cameras in the scene and list them somehow. So for each object in the scene, test if it is a camera (by using "classOf" or "isKindOf" and testing the corresponding classes e.g. "Free_Camera", "Target_Camera", "Target") and then collect it into an array. You can use a listbox to show the results and pick any of them.
For moving the target, try enabling the macro recorder inside the listener, move something and look what code it spits out.
Maybe that can get you started, cheers

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.