PDA

View Full Version : Animation: change camera


3dsoft
01-15-2003, 06:16 PM
hi,
how do I change my camera view during an animation. For example, I want that camera1 is showing 5 sec of a motion and then I want camera2 in action.

How do I switch between cameras during an animation?

thanks

dmcgrath
01-15-2003, 07:30 PM
You can't, really. But the best way to do what you want is to make the file, with the time length you want. Then to split it up into a couple of smaller time length files. Make one play from frame 1 to 124 (ex:) and then the next file from 125 to 250.
Then name them that way so you have no confusion as to what you are working on.
animation01_124.mb
animation125_250.mb

Then of course make sure you have the appropriate camera setup in the Render Globals.

That's all.


:beer:

3dsoft
01-16-2003, 08:50 AM
thanks for your help

playmesumch00ns
01-16-2003, 09:45 AM
I've been toying with the idea of doing this from a script for a while now. Maybe I'll try it out when I've got some more time on my hands. Basic idea was:

You set up each of your cameras, making sure that each camera's first keyframe is the frame that you want to cut to it.

Then it should be fairly simple to create another camera in MEL and just give it all the keyframes of the seperate cameras put together (you would obviously step it for the cut). Hmmmm shouldn't take toolong actually maybe i'll try it out soon...it would certainly make that "push-the-button-and-walk-away" rendering a lot easier...

3dsoft
01-16-2003, 10:18 AM
this would be really great. Don't forget to tell us when you are finished :bounce:

FBMachine
01-16-2003, 11:42 AM
These tutorials from A/W might help:

http://www.aliaswavefront.com/en/Community/Learn/how_tos/rendering/camera_cuts_camera/index.html
http://www.aliaswavefront.com/en/Community/Learn/how_tos/rendering/camera_cuts/index.html

Dan

fxjeane
01-16-2003, 03:11 PM
Or you could just animate the camera...
for example:

animate camera 1 from frame 0 to 99

then on frame 100 place the camera where you would like camera 2 to be placed and set a keyframe.

since the change is so quick (one frame) it will look like a jump cut.


note that you must set the right interploation between the CUT keyframes (either linear or steped). This is a quick and drity way to it.. there are many other ways (using weighted point constraints)

The problem with this approach is that you WILL run into problems when you throw in motion blur to your renders.

the best option is to go ahead and create several cameras. render each camera to a separate image sequence and then edit them together.

Cheers
Fxjeane

alexx
01-16-2003, 04:17 PM
there are some scripts on highend3d that do what you are looking for.

if you want to render you will have to add some lines of mel or render in 2 seperate passes..
(see the "render" switches in the command line)
when starting the render from the command line, you can specify which camera to use for the rendering.. so you will only need one scene.

to change the renderable camera during rendering you can create a script like that:

(presumed cam0 is the one first to use and cam1 the second one and the switch is at frame 150)

$mytime = `currentTime -q`;
if ($myTime < 150)
{
setAttr cam0.renderable 1;
setAttr cam1.renderable 0;
}
else
{
setAttr cam0.renderable 0;
setAttr cam1.renderable 1;
}

hope it helps

cheers

alexx

dynafx
01-16-2003, 04:45 PM
i agree with fxjane, and thats how i do it, animate the cameras, but a nice method is through scripts, i've read a script its christened as cameracut,but it doubt it is in www.highend3d.com or www.aliaswavefront.com, it servers your purpose

gladiator
01-28-2003, 07:56 AM
there is a script called camera manager in www.highend3d.com.I've tried it out it's very useful for creating camera cuts.

CGTalk Moderation
01-14-2006, 04:02 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.