C.O.F.F.E.E | Getting Play/Stop state of scene

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  11 November 2005
C.O.F.F.E.E | Getting Play/Stop state of scene

Hi.
Is there now a way to get the state of the scene if it is playing or is stopped?
I'd like to turn off some functions when the scene is stopped and turn them on again
as soon as it plays again.

Cheers
Lennart
__________________
MSA | OSX | xfiles ...Cinema4D Tools
 
  11 November 2005
hmm, well in C++ you can test this a number of ways, or make your own test by listening for messages. Perhaps in COFFEE you could do it via the document "GetTime" routine, comapre this to the last time stored in a variable, and if it's changed then you know the playhead is moving, if it's not changed, then you know the playhead isn't moving.
__________________
The Third Party | Homepage | My Reel
"You need to know what you're doing before you start, and to start because you need what you're doing."
 
  11 November 2005
Thanks. Yes I think the GetTime routine might be the only (coffee)way.
At Plugincafe I got the tip of "CheckIsRunning(LONG type) which has this type to check, CHECKISRUNNING_ANIMATIONRUNNING". It is from the C++ SDK thou so Ihaven't got COFFEE to "see" it yet.

The GetTime way might (pure speculation) lead to one frame slip.

What I have is a object position moved by (old+((new-old)*real)).
So when I stop the scene and do anything else(move a slider on another object etc), the object will continue moving to the
destination and thus "slip". For now it is solved by baking it but it would be nice to not have to bake it.

Cheers
Lennart
__________________
MSA | OSX | xfiles ...Cinema4D Tools
 
  11 November 2005
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



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 10:07 PM.


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