Displaying object name in tag description



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

    On 17/10/2006 at 08:29, xxxxxxxx wrote:

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

    ---------
    Hi,

    I am trying to set up a Tag Plugin with a description for the attribute manager. In this tag I also want to allow the user to change the name of the object the tag is attached to.
    adding a string-field to the description and initialising it with

    data->SetString(STATION_NAME,tag->GetObject()->GetName())  
    

    crashes Cinema4D every time. even initialising the box with a string from

    GeLoadString(IDS_STATION_NAME)
    

    crashes the program.

    Any ideas? Thanks,
    Juergen



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

    On 17/10/2006 at 11:25, xxxxxxxx wrote:

    Need more information. Is the ID for this description valid? What does the .res file look like? Can you post the entire TagData class methods (or at least the method where this is being done)? Hard to discern the cause of the problem without some clues. :)



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

    On 18/10/2006 at 00:28, xxxxxxxx wrote:

    From where do you call

      
    data->SetString(STATION_NAME,tag->GetObject()->GetName())  
    

    ?

    AFAIK you can't call it from within Init because the tag is not attached to the object yet.

    cheers,
    Matthias



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

    On 18/10/2006 at 03:36, xxxxxxxx wrote:

    thanks Matthias, I tried to call in

    Init
    

    , so I'll have a look at that ...

    Juergen


Log in to reply