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

    Change Bodypaint Active Channel Color

    Cinema 4D SDK
    python
    2
    3
    446
    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.
    • A
      aturtur
      last edited by

      Hi, is it possible to change Bodypaint Active Channel Color with Python code?

      bodypaint_color.jpg

      Cheers,
      Arttu

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

        Hi @aturtur unfortunately the next methods GetChannelColorSettings are not exposed in Python, therefor it is not possible to access/change them.

        Moreover it's most likely that they will never get ported to python due to the limited number of requests we have for these functions.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        A 1 Reply Last reply Reply Quote 0
        • A
          aturtur @m_adam
          last edited by

          Hi @m_adam. Thanks for the information!

          I needed this feature to generate UV texture, where polygon selection tags colorizes the texture with different colors. And since "Fill Layer, Fill Polygons and Outline Polygons" commands uses color from current "Channel Color" I needed option to change the color with a script.

          G89cotIeVO.png

          c4d.CallCommand(170150) # Fill Layer
          c4d.CallCommand(170151) # Fill Polygons
          c4d.CallCommand(170152) # Outline Polygons

          But if this is not possible, one workaround that come to mind is to use "UV to Mesh" Scene Nodes Deformer/Capsule and render actual mesh with aligned camera.

          Cheers,
          Arttu

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