Tag Allocation



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

    On 31/03/2006 at 01:21, xxxxxxxx wrote:

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

    ---------
    Hi there,

    how the hell does this alloctag() work? when I try to allocate new tags to an object, all I get is:
    "Variable or Function expected"!

    For example:

    main(doc,op)  
    {  
    var tag = alloctag(Texpresso);  
    op->InsertTag(tag)  
    }
    

    should insert a simple Xpresso-Tag, but produces the above message on compile. My cinema does not seem to know any of the possible parameters of the alloctag() function. What's the problem?

    Juergen



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

    On 31/03/2006 at 02:05, xxxxxxxx wrote:

    Does 'op' exist? Before calling op->InsertTag(tag); try checking for a valid object:

    main(doc,op)  
    {  
    if (op)  
    {  
    var tag = AllocTag(Texpresso);  
    op->InsertTag(tag);  
    }  
    else println("No object for tag");  
    }
    

    Make sure you have a selected object (?)



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

    On 31/03/2006 at 07:03, xxxxxxxx wrote:

    Found my error ... just the usual typing stuff with capital and small letters ...
    thanks for the help, the checking still is a good idea!

    Juergen



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

    On 31/03/2006 at 11:56, xxxxxxxx wrote:

    It wasn't clear if 'alloctag' was just quick typing or the actual code. :) Glad that you resolved the problem.

    Have a good weekend,


Log in to reply