On 20/08/2014 at 05:21, xxxxxxxx wrote:
I am using a Object plugin to create some object.
I like to give these objects a color using below code.
However, in a Object Plugin this is not working. Just the standard grey color and Use Color is Off.
In a tag plugin it is working.
Is it because I use a Object Plugin?
def GetVirtualObjects(self, node, hierarchyhelp) : cube = c4d.BaseObject(c4d.Ocube) cube.SetName("Cube with color") cube[c4d.ID_BASEOBJECT_USECOLOR] = 2 #2 = On cube[c4d.ID_BASEOBJECT_COLOR] = c4d.Vector(1,0,0) return cube