PDA

View Full Version : Camera transformations (Urgent)


marcelo.muniz
04-12-2005, 08:56 PM
Hello People,


I'm a beginner with maxscript and I need to make the following task. Before I render a scene I need to use a pre render script file.

In this pre render script file, I need:
- to create a Target camera,
- to put this camera at the position [0,0,4]
- set the target to the position [0,0,0]
- set the camera pivot to rotate in [0,0,0]
- rotate n degree on the axi X (the pivot must be 0,0,0)
- rotate n degree on the axi Y (the pivot must be 0,0,0)
- rotate n degree on the axi Z (the pivot must be 0,0,0)

Do you know how to make it?

Thanks a lot!
Marcelo Muniz

erilaz
04-12-2005, 11:51 PM
So you want to animate the camera as well, or just set it to a certain rotation before render?

marcelo.muniz
04-13-2005, 12:14 AM
One application will write the pre render script and it will call 3ds max to render the image. The position of the camera will be generated dynamically, that's why I need this script.. I need to set the postion it on the fly.

erilaz
04-13-2005, 01:20 AM
This part will make the camera and position the target. If I have time, I'll continue!


rollout makeCamera "Pre Render Cam" width:163 height:79
(
button btn1 "Button" pos:[19,18] width:113 height:39
on btn1 pressed do
(
cam = targetCamera position:[0,0,4] target:(TargetObject position: [0,0,0])

)
)


createDialog makeCamera

CGTalk Moderation
04-13-2005, 01:20 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.