SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Animation / switching cameras while playing
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 23-09-2004, 06:42 AM   #1
antiant
Subscriber
 
antiant's Avatar
 
Join Date: Feb 2004
Location: Melbourne
Posts: 462
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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;
antiant is offline   Reply With Quote
Old 23-09-2004, 01:37 PM   #2
antiant
Subscriber
 
antiant's Avatar
 
Join Date: Feb 2004
Location: Melbourne
Posts: 462
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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;
}
antiant is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.