Iterating tracks/ keys without OM selection



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

    On 03/03/2011 at 04:24, xxxxxxxx wrote:

    Can you iterate though one or more objects tracks 
    operating on active keys
    Without having to select the Objects in the OM

    Just trying to emulate the user
    opening timeline
    drag selecting a group of keys in the timeline (no object(s) selected in OM)



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

    On 03/03/2011 at 04:58, xxxxxxxx wrote:

    Of course. Just use something like doc.GetFirstObject() or something like this.

    //edit: Ah you mean just selecting the keys without selecting the Objects ?
    Would be possible to, you have to iterate through the hole hierarchy and check for selected keys



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

    On 03/03/2011 at 05:36, xxxxxxxx wrote:

    Hi Nux - don't doubt your word

    The whole hierachy!! Gulp

    If you have 5000 objects (none selected)
    and you go the the timeline
    and select a couple of keys - does Cinema do this internally?



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

    On 03/03/2011 at 05:59, xxxxxxxx wrote:

    Hm, hopefully not

    But AFAIK the only way for us to get keys is by obtaining the from Objects directly.



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

    On 03/03/2011 at 06:36, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    Hm, hopefully not

    But AFAIK the only way for us to get keys is by obtaining the from Objects directly.

    Ouch!

    Maybe Sebastian can add a more direct method - even me, a Python newbie thinks that's not very efficient


Log in to reply