Get Selected Keys?



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

    On 22/02/2011 at 08:44, xxxxxxxx wrote:

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

    ---------
    Is there any way to manipulate ONLY the currently selected keys in the time line?

    So far I can:
    - Get and Move keys by their index value.
    - Move all of the keys in a curve by looping through them and moving them one at a time.

    But the one thing I can't find is how to target only the selected keys in a given curve. Similar to how IsSelected works for points and polygons.

    -ScottA



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

    On 23/02/2011 at 02:28, xxxxxxxx wrote:

    You can check the selection state for keys for each timeline window with the NBIT_TL1_SELECT-NBIT_TL1_SELECT bits.

    For instance checking if a key is selected in timeline window 1 you do something like this:

    if (key->GetNBit(NBIT_TL1_SELECT)) //do something
    

    Remember that keys can have different selection states for each timeline window.

    cheers,
    Matthias



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

    On 23/02/2011 at 07:47, xxxxxxxx wrote:

    Thanks Matthias.
    I'll give it a try today.

    -ScottA


Log in to reply