Several objects selected, whats the last one?



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

    On 22/04/2010 at 02:06, xxxxxxxx wrote:

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

    ---------
    In coffe, How can i know whats the last selected object? If i have several objects selected.

    Thankss



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

    On 22/04/2010 at 03:11, xxxxxxxx wrote:

    Not possible in COFFEE. Even in C++ this would require a scenehook that watches selection changes.

    EDIT: Btw. do you just want to access all selected objects or do you want to know the selection order? The first is possible in COFFEE by checking GetBit(BIT_AOBJ).

    cheers,
    Matthias



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

    On 22/04/2010 at 04:19, xxxxxxxx wrote:

    Thanks Matt, but yes.. I wanted the second one :P  
    The workflow i had in mind for my plugin was: Select all objectets and the last one is the affected by all the rest selected. But I guess i'll have to think another workflow or find some dirty workaround (?) :P

    Thanks for the fast answer Matthias :)


Log in to reply