Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Enable/Disable drop down (LONG) elements

    Cinema 4D SDK
    r20 c++ sdk
    2
    3
    560
    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.
    • O
      Ogers
      last edited by Ogers

      Hello.
      I want to disable elements of a drop down (LONG as I am using from resource description) but using the function below won't do the work for me. I can disable the drop down as a whole but not it's elements. Is there any way I can do this.

          Bool RenderSettings::GetDEnabling(GeListNode* node, const DescID& id, const GeData&  t_data, DESCFLAGS_ENABLE flags, const BaseContainer* itemdesc){
       	case ELEMNTTODISABLE: 
              {
              return dldata->GetBool(DL_CHECKBOX) == false; break; 
              }
           	return true;
            }
      

      Thank you.

      1 Reply Last reply Reply Quote 0
      • a_blockA
        a_block
        last edited by

        Hi,

        unfortunately that's not possible.
        But instead you could implement GetDDescription() and change the content of the drop down as needed.

        Cheers,
        Andreas

        1 Reply Last reply Reply Quote 2
        • O
          Ogers
          last edited by

          Hi @a_block
          Thank you for your answer.

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