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

    Description String field without label

    Cinema 4D SDK
    c++
    2
    4
    387
    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.
    • C4DSC
      C4DS
      last edited by

      Hi again,

      I am working on a DescriptionToolData derived plugin and would like to have an editable string field, but without its label. I can leave the label string empty, but that still uses up space, as can be seen in the screenshot below.

      DescriptionString.png
      In this example I had used different content for the string labels to visualize the different behaviour when a string is left empty or provided as a blank space.
      I have tried leaving all labels empty, but still space is left for the empty label.

      I might need to switch to a STATICTEXT instead, but that leaves out the possibility for the user to edit the identification field.

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by ferdinand

        Hi,

        a STATICTEXT in a description has also a label beside the label that it is itself. There is no way to circumvent the behavior described by you, since it is basically the whole point of a description to describe each parameter. At least I am not aware of a way.

        edit: If you want to minimize the ... thing you should put your element into its own group, which would cause Cinema 4D not to try to align it with the other paramaters in the layout. But I think you will get at least three dots with an empty string here either.

        Cheers,
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        C4DSC 1 Reply Last reply Reply Quote 0
        • C4DSC
          C4DS @ferdinand
          last edited by

          @zipit
          Sorry, I don't agree about the statictext thing. Replacing all the STRING entries into STATICTEXT yield the following result:

          DescriptionStaticText.png

          When the label of a STATICTEXT is left empty, the label is actually not present.

          ferdinandF 1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand @C4DS
            last edited by ferdinand

            @C4DS

            Hi,

            no need to be sorry. Actually I am sorry for the (sort of) misinformation. But I have had the same problem and this was my conclusion for other node types (I just quickly reconfirmed it with a user data static text). Maybe DescriptionTooldata behave differently? Anyways, good luck 😉

            Cheers,
            zipit

            MAXON SDK Specialist
            developers.maxon.net

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