creating nodes in expresso

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  01 January 2013
creating nodes in expresso

How would i go about using a script to create and set up nodes in an XPresso tag? For example: create an object node connect it to a point node do that again with another object then attach one point to the other to follow. I need to do this with hundreds of vertices all in one go.

  01 January 2013
GvNode.AddPort() is still broken in python and you will have to create output and input
ports for this. use the the search function on plugin cafe, addport is broken since maxon
added the graphview class to python and they never fixed it. however that is how it would
be done if it would work :

tag = c4d.BaseTag(c4d.Texpresso)
nm = tag.GetNodeMaster()
objNode = nm.CreateNode(nm.GetRoot(), c4d.ID_OPERATOR_OBJECT)
# broken
objPort = objNode.AddPort(c4d.GV_PORT_OUTPUT, c4d.GV_SOME_ID)

i also do not understand why you do not use an iterartor node in xpresso, at least by your
description i do not really see a reason to use python at all.
  01 January 2013
Is it broken in COFFEE? The reason for scripting this is because there's going to be hundreds of nodes created and hand attaching them will take days and be very inefficient.

And being new to Cinema how would the iteration node work? Im having a hard time finding documentation on anything.


Last edited by ShawnFrueh : 01 January 2013 at 05:47 PM.
  01 January 2013
i am not so much into coffe, i haven't red the coffee sdk for ages, but i do not
think that the GraphView namespace is ported/wrapped in coffeee. you could
say : coffee (low access), python (medium acccess), cpp (full access). i also
do not know, if the AddPort method works properly in cpp itself.

for your second question :

there is also not really a documentation on xpresso for c4d. all you can do is read
the node descriptions in the help one by one, but this will only be a starting point.
you are pretty much on your own.

Last edited by littledevil : 01 January 2013 at 07:31 PM.
  01 January 2013
Thanks for the help, I really appreciate it.
  01 January 2013
i am glad i could help. if you still run into problems i might be able to offer a
direct plugin / script solution for the problem. contact me per pm for details
with a more extensive description what you actually want to do.
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:48 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.