Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 23-09-2004 , 06:42 AM
antiant's Avatar
Subscriber
Join Date: Feb 2004
Location: Melbourne
Posts: 462

switching cameras while playing

Hi there.

What i would like to do, is to be able to press play, on the time line, and for my camera to change automatically it goes through the time line.
Ive written a script for it, but i cant quite get it too work. anyone got any ideas? is should really be quite simple, but im afraid my scripting knowledge is poor.. Thanks


play -state off;
lookThroughModelPanel rubbishCam modelPanel4;
playbackOptions -minTime 0 -maxTime 100;
play -forward true;
lookThroughModelPanel faceCam1 modelPanel4;
playbackOptions -minTime 100 -maxTime 200;
play -forward true;

# 2 23-09-2004 , 01:37 PM
antiant's Avatar
Subscriber
Join Date: Feb 2004
Location: Melbourne
Posts: 462
Hi guys.. well heres the solution to the problem

first create a dummy camera
Then with that selected go to the expression editor and put this expression is
I have Four cameras setup in the scene. "Dummy" - just used for viewing, "Rubbish" "Face" and "Woman" are all cams set into position.
Then just adjust your currentTime to match when you want the camera to change. And you have real time, camera changes to get more feeling of how your animation will look.
P.S.. i didnt find the solution to this, my friend Jeff did..


if (`currentTime -q` <= 100) {
Dummy.translateX = rubbish.translateX;
Dummy.translateY = rubbish.translateY;
Dummy.translateZ = rubbish.translateZ;
Dummy.rotateX = rubbish.rotateX;
Dummy.rotateY = rubbish.rotateY;
Dummy.rotateZ = rubbish.rotateZ;
} else if (`currentTime -q` > 200 && `currentTime -q` <=300) {
Dummy.translateX = face.translateX;
Dummy.translateY = face.translateY;
Dummy.translateZ = face.translateZ;
Dummy.rotateX = face.rotateX;
Dummy.rotateY = face.rotateY;
Dummy.rotateZ = face.rotateZ;
} else {
Dummy.translateX = woman.translateX;
Dummy.translateY = woman.translateY;
Dummy.translateZ = woman.translateZ;
Dummy.rotateX = woman.rotateX;
Dummy.rotateY = woman.rotateY;
Dummy.rotateZ = woman.rotateZ;
}

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads