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

    Descriptions: Set Parameters to Readonly?

    SDK Help
    0
    6
    555
    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
      Helper
      last edited by

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

      On 03/08/2003 at 09:21, xxxxxxxx wrote:

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

      ---------
      Hi,

      still wrestling with descriptions ... But this here is most probably the last problem.

      I'm adding parameters to a description via something like:

        
      BaseContainer bc = GetCustomDataTypeDefault(DTYPE_REAL);  
      bc.SetBool(DESC_ANIMATE, DESC_ANIMATE_ON); // works!  
      bc.SetString(DESC_SHORT_NAME, "foobar"); // works!  
      bc.SetBool(DESC_EDITABLE, FALSE); // ????????  
      bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REALSLIDER); // works!  
      isOK = description->SetParameter(DescLevel(20000, DTYPE_REAL, 0), bc, DescLevel(ID_MY_GROUP));  
      

      I hoped that setting DESC_EDITABLE to FALSE switches the parameter to readonly, but it can still be edited.

      Any ideas?

      Thanks in advance,
      jl

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

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

        On 04/08/2003 at 17:15, xxxxxxxx wrote:

        Hi lovi,
        hmm, it works fine for me here. It´s not editable. You know that when it´s "not editable" it does only mean that "Edit Entry" is ghosted in the popupmenu don´t you?
        Best
        Samir

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

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

          On 05/08/2003 at 00:22, xxxxxxxx wrote:

          Hi Samir:

          Arrrrrgh!! Actually I've hoped that DESC_EDITABLE makes a parameter non-editable in _every_ way. Seems I have to rethink my approach.

          Thank you nonetheless!

          Regards,
          jl

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

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

            On 05/08/2003 at 02:41, xxxxxxxx wrote:

            Hi,
            no that´s not possible for an Attributes Manager element always needs to have a popup that ensures for example that the element can be animated (keyframed) which is done via this popup.

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

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

              On 05/08/2003 at 02:51, xxxxxxxx wrote:

              Hi,

              no, I'm not worrying much about the popup menu. I rather want the displayed number/color/string/whatever of the parameter not to be editable by direct clicking/dragging/typing. Maybe the parameter should in addition be shown in gray instead of black.

              Regards,
              jl

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

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

                On 05/08/2003 at 02:56, xxxxxxxx wrote:

                Hi,
                well the name itself cannot be greyed out independantly. You would need to grey out the whole element (so name and the slider for example). You can do so by overloading GetDEnabling and return either TRUE or FALSE.
                Best
                Samir

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