How to get all selected tags



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

    On 27/05/2011 at 07:01, xxxxxxxx wrote:

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

    ---------
    Hello,

    Is there a way to get all the selected tags from a document? Or to find out if a tag is selected or not?



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

    On 27/05/2011 at 07:14, xxxxxxxx wrote:

    Yup, you use the tag() function and iterate it.

      
    var i;   
    for(i=0;tag(i);i++)   
    {   
    println(tag(i)->GetName());   
    }   
    

    Cheers
    Lennart



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

    On 27/05/2011 at 07:41, xxxxxxxx wrote:

    Now, that was easy. I must have missed that in the SDK. Thank you!



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

    On 27/05/2011 at 08:44, xxxxxxxx wrote:

    It's a very good thing done by the Maxon dev's:)
    You have the same functionality for selected Object using object(),
    selected Materials is: material().
    Active render setting is renderdata().

    Cheers
    Lennart


Log in to reply