Search the Community
Showing results for tags 'Nodes'.
Found 2 results
Nodes 2 is the result of a complete rewrite of the original plugin from the ground up. Low-level coding has been used in order to provide a rendering engine that can support 50,000 particles and unique font acceleration. The plugin runs in Final Cut Pro X and Premiere Pro, alongside Motion and After Effects. Point clouds are now created from primitives, footage, and 3D models, allowing for infinite possibilities. After Effects Camera is now supported. http://www.yanobox.com/Nodes/
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()