Change Bodypaint Active Channel Color
-
Hi, is it possible to change Bodypaint Active Channel Color with Python code?
Cheers,
Arttu -
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. -
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.
c4d.CallCommand(170150) # Fill Layer
c4d.CallCommand(170151) # Fill Polygons
c4d.CallCommand(170152) # Outline PolygonsBut 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