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

    How to set Reflectance Channel layer order

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 559 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

      On 24/01/2017 at 13:45, xxxxxxxx wrote:

      Hi,

      Quick question as I'm new to the Python SDK: When I add a new layer to the Reflectance Channel using material.AddReflectionLayer(), it gets inserted at the top of the stack. How would I go about moving this layer to the bottom (or an arbitrary position) of the layer stack?

      Couldn't find anything helpful in the docs, unfortunately.

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

        On 25/01/2017 at 06:20, xxxxxxxx wrote:

        Hi,

        welcome to the Plugin Cafe forums 🙂

        Unfortunately no good news for you. Neither the C++ nor the Python SDK provide means to achieve this. Sorry!

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

          On 25/01/2017 at 06:30, xxxxxxxx wrote:

          Thanks for the quick reply.

          That's an unfortunate oversight. Would be a nice addition to the API.

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

            On 25/01/2017 at 07:09, xxxxxxxx wrote:

            I forgot to mention, I'll forward this as an idea to our development.

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

              On 27/01/2017 at 13:41, xxxxxxxx wrote:

              Seems like you could pop out all layers, order them as you like, and then reinsert them?

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

                On 29/01/2017 at 23:54, xxxxxxxx wrote:

                Yeah, as far as I can tell that's the only option for now. I don't want to destroy the user's existing layer setup, so it means keeping track of whatever layers the user has already has in each Reflectance Channel. Quite a pain.

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