Search the Community
Showing results for tags 'python'.
Found 4 results
Hello- Does anyone have a good resource for a list of object ID's in C4D? I'm digging into scripting and need to be able to look up different object's IDs. I would have assumed Maxon would have provided a list somewhere, but they don't seem to and no amount of Googling has turned anything up. Any leads would be appreciated. Thanks!
Hello, I've been messing around with Python in Cinema 4D for a bit, and was looking for a resource that listed all the object IDs in C4D. I found this image, but thought it might be handy to have a list I could copy/paste from, so I made it and posted it to my blog: http://blog.adamfarnsworth.com/2013/09/26/c4d-python-object-id-list/ I thought someone else might find it helpful, so I thought I'd share it. Like I mention in the post, if anyone has an ID I didn't include and would like it added or has changes, please post them in the comments on the post, and I'll make the changes. Thanks, Adam
PyBend is a FREE Python script for Cinema 4D that automates the process of adding a Bend deformer to your objects. Automatically adds the Bend as a child of your object Automatically positions and re-sizes the deformer so you don't have to! Select your object, click the button and the Bend is ready to use! Check it out on Vimeo : http://vimeo.com/35846372 Or on my site: http://www.footprint-productions.co...d-for-cinema-4d
I am currently writing a script that creates an Xpresso tag on a Cube, and then creates a node, of the Cube, on the Xpresso graph view. I would like to access the Object Properties > Size.Y port. I can get to this point, but whenever I create the Cube node with Size.Y port the node turns yellow. I'm not sure why it does this exactly. When I try to create the setup manually everything works fine. Can anyone here give me some advice? Here is my code. import c4d def main(): null = c4d.BaseObject(c4d.Onull) doc.InsertObject(null) cube = c4d.BaseObject(c4d.Ocube) doc.InsertObject(cube,null) xtag = c4d.BaseTag(c4d.Texpresso) null.InsertTag(xtag) nodemaster = xtag.GetNodeMaster() print nodemaster.GetOwner().GetName() node1 = nodemaster.CreateNode(nodemaster.GetRoot(),c4d.ID_OPERATOR_OBJECT,None,100,100) node1[c4d.GV_OBJECT_OBJECT_ID] = cube node2 = nodemaster.CreateNode(nodemaster.GetRoot(),c4d.ID_OPERATOR_OBJECT,None,300,100) node2[c4d.GV_OBJECT_OBJECT_ID] = cube node1out = node1.AddPort(c4d.GV_PORT_OUTPUT, (c4d.PRIM_CUBE_LEN, c4d.VECTOR_Y)) print node1.GetOperatorContainer()[c4d.GV_OBJECT_OBJECT_ID].GetName() node2in = node2.AddPort(c4d.GV_PORT_INPUT, (c4d.ID_BASEOBJECT_REL_POSITION, c4d.VECTOR_Y)) print node2.GetOperatorContainer()[c4d.GV_OBJECT_OBJECT_ID].GetName() c4d.modules.graphview.RedrawMaster(nodemaster) node1out.Connect(node2in) c4d.EventAdd() if __name__=='__main__': main()