Animation



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

    On 22/03/2011 at 05:27, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11.5 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hello,

    I'm searching for a command, to get the information if the animation is running or not.
    And maybe, if a command exist to start or stop the animation !

    thanks
    Marky



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

    On 23/03/2011 at 06:37, xxxxxxxx wrote:

    Howdy,

    To check if the animation is running you can use:

    if(CheckIsRunning(CHECKISRUNNING_ANIMATIONRUNNING))
    

    ... and these should control the animation play:

    CallCommand(12411); // Play Backwards
    CallCommand(12412); // Play Forwards
    CallCommand(12002); // Stop Play
    

    Adios,
    Cactus Dan



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

    On 23/03/2011 at 07:06, xxxxxxxx wrote:

    grandiose, it works

    thanks a lot



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

    On 24/03/2011 at 08:10, xxxxxxxx wrote:

    Howdy,

    You're welcome.

    You can also use this global function from c4d_basedocument:

    void RunAnimation([BaseDocument](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10%20SDK/pages/c4d_basedocument/class_BaseDocument47.html)* doc, Bool forward, Bool stop)_<_h4_>_

    Controls the animation in the active document  doc. <_<_h5_>_h5> _Paramet_ <_h5_>_i>
    > [BaseDocument](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10%20SDK/pages/c4d_basedocument/class_BaseDocument47.html)* doc
    >
    >> The document to control. Usually [_tivevoid">GetActiveDocument()](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10%20SDK/pages/c4d_basedocument/global_c4d_basedocum120.html#getactivedocument0 " c4d_::getactivevoid"). The caller owns the pointed object.
    >
    > Bool forward
    >
    >> If this is [TRUE](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10%20SDK/pages/ge_math/enum_BoolConstants96.html#TRUE1) the direction is set to forward, otherwise it's set to backward.
    >
    > Bool stop
    >
    >> If this is [TRUE](file:///Users/danlibisch/Documentation/C4D%20Manuals/R10%20SDK/pages/ge_math/enum_BoolConstants96.html#TRUE1) the animation is stopped, otherwise it's running.

    Adios,
    Cactus Dan


Log in to reply