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 Tools Search this Thread Display Modes
Old 11 November 2005   #1
C.O.F.F.E.E | Getting Play/Stop state of scene

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.

MSA | OSX | xfiles ...Cinema4D Tools
Old 11 November 2005   #2
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."
Old 11 November 2005   #3
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.

MSA | OSX | xfiles ...Cinema4D Tools
Old 11 November 2005   #4
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
Society of Digital Artists

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

All times are GMT. The time now is 02:28 PM.

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