CGTalk > Techniques > Animation
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 10-21-2013, 02:05 PM   #1
journeymenarts
New Member
portfolio
USA
 
Join Date: Sep 2013
Posts: 4
Linking 2 objects in the middle of an animation

Hello there. This is from a forum on the old CGTALK site. Im trying to set a Vray camera to follow an object in the middle of an animation. I have a object going around a sphere and I want to the camera to follw the object as it passes by the camera into another par of the scene.

Im able to do it with a link constraint using a normal camera, but foe some reason, it wont work with a vRay camera.

I would really appreciate any assistance that I get.

Thank you guys.
 
Old 10-29-2013, 10:15 AM   #2
Zhalktis
Workaround dept.
portfolio
Julius Gerulaitis
rigging & animation
Kaunas, Lithuania
 
Join Date: Jul 2002
Posts: 341
Maybe a bit late, but anyways...

The simplest workaround would be to just key the camera's position/rotation at every frame, to the rotation/position of an object that moves the way you want. Using align tool at every frame would be a bit tedious, so you could use a simple script instead (assuming you're in max):

Code:
undo on ( followingobj = $[1] -- use first selected object as the object that will be keyed objtofollow = $[2] -- use second selected object as the object that the first selected object will be keyed to tfrom = 0f -- from frame... tto = 100f -- to frame... for i = tfrom to tto do animate on at time i ( try followingobj.rotation = objtofollow.rotation catch print "Failed to set rotation." try followingobj.pos = objtofollow.position catch print "Failed to set position." -- if plant_sca.state then try obj.scale = objtofollow.scale catch print "Failed to set scale." -- remove the starting "--" if you also need to key the scale ) )
 
Old 10-29-2013, 11:45 AM   #3
scrimski
antieverything
portfolio
J. Schreyer
head->wall
ARRI Berlin
Berlin, Germany
 
Join Date: Aug 2003
Posts: 7,979
Did you try to link the VrayCam to a dummy and apply a Link Constraint to taht dummy?
 
Old 10-29-2013, 11:45 AM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:49 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.