Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Displaying object name in tag description

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 252 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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. 🙂

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post