registerTimeCallback and animation playback

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  4 Weeks Ago
registerTimeCallback and animation playback

Can't play animation while camSwitcher function is registered. Any ideas?
max 2014


delete objects
cam1 = Freecamera()
cam2 = Freecamera()
cam1.pos = [100,100,100]
cam2.pos = [-20,-100,150]
cam1.dir = normalize cam1.pos
cam2.dir = normalize cam2.pos
Teapot()

unRegisterTimeCallback camSwitcher

fn camSwitcher = (
 
 if currenttime > 50 then (
  
  viewport.SetCamera cam2
  
 ) else (
  
  viewport.SetCamera cam1
  
 )

)

registerTimeCallback camSwitcher
 
  4 Weeks Ago
playback stops when you're changing cams. I'm the dev op ProSequencer and it did require some tricks to make switching while playing work. (PS is opensouce, just unzip the mzp and find the 'timeChange' function. it's some magic combination of stop/redraw/setcam/start animimation.) And in your function you are setting the cam @ every timechange, you might want to check it the viewport already had the right cam before switching. (that's the reason why you can't play animation, it's at every timechange due to cam switch)

But by the looks of it you could just use ProSequencer to do it all

http://www.jdbgraphics.nl/prosequencer

(here is a newer version:https://www.dropbox.com/s/eb2fafad0...1.991b.mzp?dl=1 )
__________________
The GPU revolution will not be rasterized! - http://www.jdbgraphics.nl
 
  4 Weeks Ago
thanks, I'll check it out.
I've never used proSequencer myself, so the only question i have is whether proSequencer allow multiple ranges on single track for a particular cam? Like in AE
 
  4 Weeks Ago
In a way, you can assign the same camera to multiple tracks. That way you can have multiple ranges of the same cam.
__________________
The GPU revolution will not be rasterized! - http://www.jdbgraphics.nl
 
reply share thread



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 12:28 PM.


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