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
    • Recent
    • Tags
    • Users
    • Login

    Changing Desciption of Attributes

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 455 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 13/12/2010 at 08:18, xxxxxxxx wrote:

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

      ---------
      Hi,

      i've written an Plugin which creates its Descriptions from Ressourcefile.
      My Problem is:
      Is it possible to change the visibility of an attribute (in Ressourcefile "HIDDEN") on runtime?
      I want to show or hide it in dependence of another attribute!

      Is this possible and if how?

      Greetings

      Ralf

      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 13/12/2010 at 08:28, xxxxxxxx wrote:

        NodeData plugins (ObjectData, TagData etc.) can overload GetDEnabling to enable/disable description elements. Basically it's called for every description element and depending if you return TRUE or FALSE it's enabled or disabled. Please check the SDK examples to see how it's used.

        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 14/12/2010 at 00:31, xxxxxxxx wrote:

          Hi,

          yes i thought of that, but my problem is: this function isn't called!
          My Syntax:

            
          Bool MyCameraTag::GetDEnabling(GeListNode* node, const DescID& id, GeData& t_data, LONG flags, const BaseContainer* itemdesc)  
          {  
             // My Code  
            return TRUE;  
          }  
          

          (in Header its virtual)
          I couldn't find any difference between this function and the SDK function.

          I use Visual Studio C++ 2005

          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 14/12/2010 at 03:07, xxxxxxxx wrote:

            Your declaration is wrong.

            It must be:

            virtual Bool GetDEnabling(GeListNode* node, const DescID& id, const GeData& t_data, LONG flags, const BaseContainer* itemdesc)
            

            t_data must be const.

            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 14/12/2010 at 04:04, xxxxxxxx wrote:

              AHHH thanks,

              i have looked in the SDK Documentation for R11 ==> were is no const
              for R11.5 no .zip Documentation is available
              and in R12 i see: const is needed.

              Ok that helps a lot.

              Thanks for the fast help!

              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 14/12/2010 at 06:51, xxxxxxxx wrote:

                Is were any Chance to change the shown Name of the Attribute dynamical (not only on GetDDesciption?

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