How to create Python Node via Python Script?
On 03/01/2016 at 15:20, xxxxxxxx wrote:
How do I create a Python Node via a script in Python? I do not seem to see an ID for the node ala ID_OPERATOR_OBJECT but I was looking through the symbols and I didn't see one in Python in there.
Is it possible to create a Python node via a python script?
On 03/01/2016 at 18:01, xxxxxxxx wrote:
import c4d def main() : obj = doc.GetActiveObject() xTag = obj.GetTag(c4d.Texpresso) #Get the first xpresso tag on the object nm = xTag.GetNodeMaster() #Creates a python node PyNode = nm.CreateNode(nm.GetRoot(), 1022471, insert=None, x=200, y=200) c4d.EventAdd() if __name__=='__main__': main()
On 04/01/2016 at 00:31, xxxxxxxx wrote:
the Python Node ID is defined as 1022471 in the gvpython.h header file.
See also "python node".
On 15/01/2016 at 09:21, xxxxxxxx wrote:
was your question answered?