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

    Description / Grey out part of vector

    Scheduled Pinned Locked Moved SDK Help
    9 Posts 0 Posters 827 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 06/07/2009 at 13:39, xxxxxxxx wrote:

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

      ---------
      Hi there,

      After i have learned how to show/hide certain parts of a description, i am wondering if there is a way to grey out the y and z component of a VECTOR description?

      or do i need to hide the VECTOR and show a LONG element?

      thanks and cheers,
      ELlo

      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/07/2009 at 03:54, xxxxxxxx wrote:

        You have to check for the second level in GetDEnabling(). Note that it can only work with a subchannel vector description. You can do this by adding the CUSTOMGUI SUBDESCRIPTION flag to your resource file.

        > VECTOR CIRCLEOBJECT_VECTOR { UNIT REAL; MIN 0.0; CUSTOMGUI SUBDESCRIPTION; }

        > \> Bool DoubleCircleData::GetDEnabling(GeListNode \*node, const DescID &id;,const GeData &t;\_data,LONG flags,const BaseContainer \*itemdesc) \> { \>      BaseContainer &data; = \*((BaseObject\* )node)->GetDataInstance(); \> \>      if (id[0].id == CIRCLEOBJECT_VECTOR) \>      { \>           if (id.GetDepth() > 1 && id[1].id == VECTOR_X) \>           { \>                return FALSE; \>           } \>      } \> \>      return TRUE; \> } \>

        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 07/07/2009 at 04:36, xxxxxxxx wrote:

          thank you very much!

          cheers,
          ello

          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 08/07/2009 at 09:27, xxxxxxxx wrote:

            hi there,,
            i am just wondering.. there really is no way to get this working without visually expanding the vector?

            thanks and cheers,
            ello

            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 09/07/2009 at 01:33, xxxxxxxx wrote:

              Unfortunatly not.

              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 11/07/2009 at 03:01, xxxxxxxx wrote:

                another question i came across.. how can i hide those vector components totally? i know how i can hide complete description elements, but not how to hide for example the y and z component of a vector?

                thanks in advance,
                ello

                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/07/2009 at 01:54, xxxxxxxx wrote:

                  You can't hide the subchannels of a vector description. If you want full control you have to write your own vector data type and custom gui. There is an example in the SDK examples.

                  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/07/2009 at 11:50, xxxxxxxx wrote:

                    i was afraid of that. since this means no previous files will work after that change (due to different description ID's).. or am i missing something?

                    cheers,
                    ello

                    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/07/2009 at 12:57, xxxxxxxx wrote:

                      a custom datatype will not result in a different resource ID. You can still use the same ID for your own data type (of course the plugin id will be different but that shouldn´t affect loading of old files). And vector values from the container can be easily converted to the new data type. Should work imo.

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