On 30/05/2014 at 05:51, xxxxxxxx wrote:
Is is possible to create an Xpresso node in Python?
On 30/05/2014 at 06:19, xxxxxxxx wrote:
Hi Rui,
you can create a node with this code:
XP=c4d.BaseTag(c4d.Texpresso) # create the xpresso tag
op.InsertTag(XP) # add the xpresso tag
Node_M=XP.GetNodeMaster()
# now create the object node
Bas_Node=Node_M.CreateNode(Node_M.GetRoot(), c4d.ID_OPERATOR_OBJECT, None, 330, 200 )
you´ll find more informations here:
http://www.maxonexchange.de/sdk/CINEMA4DPYTHONSDK/help/modules/c4d.modules/graphview/GvNode/index.html?highlight=node#GvNode.SetOperatorContainer
Cheers
Martin
On 30/05/2014 at 07:18, xxxxxxxx wrote:
I don't mean creating an already existing node inside an Xpresso tag.
I mean, is it possible to create a new node, just like I can create new tags and objects plugins?
On 30/05/2014 at 08:01, xxxxxxxx wrote:
With this you have to define your ports an stuff like this by yourself than:
Bas_Node=Node_M.CreateNode(Node_M.GetRoot(), c4d.ID_GV_OPERATOR_DUMMY, None, 330, 200 )