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

    Custom FIELDLAYER_CHANNELFLAG

    Cinema 4D SDK
    r20 c++ classic api maxon api r21
    4
    7
    1.2k
    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.
    • mikeudinM
      mikeudin
      last edited by

      Hello guys!
      We are looking for a way to change several plugin parameters using fields.
      The FieldsList documentation mentions FIELDLAYER_CHANNELFLAG, indicating that the user can enable/disable the effect of fields on certain aspects of the object (color, value, direction, rotation).

      5cba1724-9eb4-4fad-9798-63f28a1ada20-image.png
      Is it possible to use the Cinema 4D C ++ API to change these flags, adding your own? If not, how else can this issue be resolved?
      Thank you!

      Checkout my python tutorials, plugins, scripts, xpresso presets and more
      https://mikeudin.net

      1 Reply Last reply Reply Quote 1
      • P
        PluginStudent
        last edited by PluginStudent

        A field doesn't do anything. It is only a field.

        Some other thingy samples that field. And based on the sample result, it does something, like e.g. a MoGraph effector.

        What kind of plugin do you create? Why can't you simply add a FieldList parameter, sample that FieldList, and use the value to set your parameter(s)?

        mikeudinM 1 Reply Last reply Reply Quote 1
        • mikeudinM
          mikeudin @PluginStudent
          last edited by

          @PluginStudent said in Custom FIELDLAYER_CHANNELFLAG:

          A field doesn't do anything. It is only a field.
          Some other thingy samples that field. And based on the sample result, it does something, like e.g. a MoGraph effector.

          Thanks, I know very well how the Cinema 4D Fields system works.

          @PluginStudent said in Custom FIELDLAYER_CHANNELFLAG:

          ...and use the value to set your parameter(s)?

          We need use different values, which user can disable/enable as color, value, direction and rotation native field flags.
          In other words, we need to change several plugin parameters using only one FieldList. So instead color, value, direction and rotation flags we need something like value1, value2, value3 flags.

          Checkout my python tutorials, plugins, scripts, xpresso presets and more
          https://mikeudin.net

          ferdinandF M 2 Replies Last reply Reply Quote 0
          • P
            PluginStudent
            last edited by

            @mikeudin said in Custom FIELDLAYER_CHANNELFLAG:

            So instead color, value, direction and rotation flags

            These things aren't flags. These properties are hard-coded in the FieldOutput struct.

            1 Reply Last reply Reply Quote 2
            • ferdinandF
              ferdinand @mikeudin
              last edited by ferdinand

              @mikeudin said in Custom FIELDLAYER_CHANNELFLAG:

              Thanks, I know very well how the Cinema 4D Fields system works.

              Hi,

              at least for me it is also not quite clear what you are trying to do. The flags (or whatever you want to call them) you are referring to, are linked to the public attributes of the same name in the struct FieldOutput and are part of the whole layer sampling logic. Not to mention all that GUI stuff that piles onto that.

              Unclear to me is also if you are implementing your own FieldData or not. If you do, the description of that FieldData would be the obvious place to expose any flags that change the sampling behavior of your field.

              Cheers,
              zipit

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • M
                m_adam @mikeudin
                last edited by m_adam

                @mikeudin said in Custom FIELDLAYER_CHANNELFLAG:

                We need use different values, which user can disable/enable as color, value, direction and rotation native field flags.
                In other words, we need to change several plugin parameters using only one FieldList. So instead color, value, direction and rotation flags we need something like value1, value2, value3 flags.

                Hi @mikeudin
                Unfortunately, there is no way to add additional channels to the overall field system, only the pre-build one can be used.
                So if you have 3 values, you will need 3 fieldList.

                MAXON SDK Specialist

                Development Blog, MAXON Registered Developer

                mikeudinM 1 Reply Last reply Reply Quote 1
                • mikeudinM
                  mikeudin @m_adam
                  last edited by

                  @m_adam @zipit @PluginStudent
                  OK, thank you guys!

                  Checkout my python tutorials, plugins, scripts, xpresso presets and more
                  https://mikeudin.net

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