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

    Adding if statement to .res descriptions.

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 552 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 05/08/2011 at 15:10, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:   Windows  ; Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;  C++  ;  XPRESSO  ;  PYTHON  ;

      ---------
      hey! just wondering if it is "legal" to add if statements to .res descritotion files for a custom plugin. The reason i ask is because im trying to figure out the best way to make a attribute of an object plugin disappear and appear based upon what other attributes are turned on and off. (for example, a boolean switch will display and hide a menu within the plugin). if this is not a good idea, mabye someone could point me in the right direction. Thanks for the help in advance guys!
      _Alex

      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 05/08/2011 at 15:26, xxxxxxxx wrote:

        No.

        To do what you want to do involves using dynamic descriptions through the plugin's GetDDescription() method.

        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 06/08/2011 at 08:31, xxxxxxxx wrote:

          Robert,

          Do you happen to have an example of that?
          I can't picture how to do this in my head.

          -ScottA

          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 06/08/2011 at 12:56, xxxxxxxx wrote:

            I think i saw some info in the C++ API docs about dynamic descriptions. thanks for the answer! and if anyone has an example, it would definitely be helpful!

            edit:

            found something in the 
            _
            _
            lib_description.h
            _
            _
            file.

            if you look up dynamic descriptions in the API you can also find a bunch of cool stuff. thanks guys!

            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 06/08/2011 at 14:19, xxxxxxxx wrote:

              As it happens, today I did a short tut on exactly this on my site. You can find it here: http://www.microbion.co.uk/graphics/c4d/cookbook-2.htm

              Should give you all you need to make this work.

              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 06/08/2011 at 15:37, xxxxxxxx wrote:

                Thanks for the tutorial Steve.👍

                I have a tag plugin I made using a bunch of common tasks that I use as a reference for how to set up the various GUI items. And I'm going to add this to it.

                -ScottA

                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 07/08/2011 at 01:30, xxxxxxxx wrote:

                  Cheers Scott. Glad you found it useful. (I write these for my own benefit as much as anyone's - I can never remember the exact steps to take when I need to do something like this for a new plugin.)

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