On 23/06/2015 at 07:59, xxxxxxxx wrote:
# Add cube
xnode_cube = nodemaster2.CreateNode(nodemaster2.GetRoot(),c4d.ID_OPERATOR_OBJECT,None,200,0)
xnode_cube[c4d.GV_OBJECT_OBJECT_ID] = cube
#Transmogrofy cube
xport_cube_IN_SizeX = xnode_cube.AddPort(c4d.GV_PORT_INPUT, \n c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN), c4d.DescLevel(c4d.VECTOR_X)))
xport_cube_IN_SizeY = xnode_cube.AddPort(c4d.GV_PORT_INPUT, \n c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN), c4d.DescLevel(c4d.VECTOR_Y)))
xport_cube_IN_SizeZ = xnode_cube.AddPort(c4d.GV_PORT_INPUT, \n c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN), c4d.DescLevel(c4d.VECTOR_Z)))
#xport_cube_OUT_SizeX = xnode_cube.AddPort(c4d.GV_PORT_OUTPUT, \n# c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN), c4d.DescLevel(c4d.VECTOR_X)), message=True)
#xport_cube_OUT_SizeY = xnode_cube.AddPort(c4d.GV_PORT_OUTPUT, \n# c4d.DescID(c4d.DescLevel(c4d.PRIM_CUBE_LEN), c4d.DescLevel(c4d.VECTOR_Y)), message=True)
# Size . X : 10000001 : 1000
If I uncomment any of the above code that adds the output Ports, then the node goes yellow :[
In fact, even if I don't add the output ports from Python, there is still something wrong, because if I add the output ports on this node created from Python, and then toggle back to the main view, then the node will yellow again..
But if I create the node from Xpresso/C4D GUI, then it never yellows.. :[