frame change

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/03/2008 at 09:58, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:      
Language(s) :   C.O.F.F.E.E  ;

---------how can I call a hook or get a message every time the frame is advanced one position?  using COFFEE

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/03/2008 at 18:01, xxxxxxxx wrote:

Maybe there is a better method but I had to do something similar
and then stored the current frame and then compare it with the next cycle
(any action) and it seems to work fine.

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/03/2008 at 12:22, xxxxxxxx wrote:

Thanks Lennart,  I am currently using the Timer() which works for my application if I am playing the animation in hte editor, but if I walk through frames individualy my time change will be different then the system time change.  So for this scenario I am backing the time out of the Frame value.  I am going to use your work around and manually call the function and look at the Frame values, but it isn't as cool or useful as getting that value every time a frame is advanced.  And it seems like this would be useful in other situations.  I'm thinking that the system must use this message to redraw every time a frame is advanced.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/03/2008 at 13:48, xxxxxxxx wrote:

I can't say I fully understand what you need. I can only say that the way I'm
doing it is not manually.
I have a const var ID that I store the initial frame. I then compare that
initial frame with the current and restore it again ( former current or current,
whichever is true.)
If both are the same I don't call my (other)function(s), if they differ I call my function(s) and restore the current frame.

Most likely I do miss what you are looking for......

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/03/2008 at 14:00, xxxxxxxx wrote:

Thanks Again Lennart,  I'm going to use your method, it isn't exactly what I'm looking for but close enough.  Thanks