Timeline

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

On 10/09/2009 at 05:01, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R 11 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
Hello,

i have to know at which frame on timeline i am. I need this information because my node only shall calculate if the frame change.
For example from frame 0 to 7.

Is there a message i can get or is there an other trick? I searched the docu without success.

Thanks,
Oli

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

On 10/09/2009 at 05:16, xxxxxxxx wrote:

Do you want to know the current frame? That would be BaseDocument::GetTime().

cheers,
Matthias

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

On 10/09/2009 at 06:54, xxxxxxxx wrote:

Thanks for the advice.

Now i get the information i need.

> \> BaseDocument\* doc = bn->GetDocument(); \> BaseTime time = doc->GetTime(); \> LONG fps = doc->GetFps(); \> LONG frame = time.GetFrame(fps); \>

cheers,
Oli