Add Object Output Parameter of a Node
Adding output parameters in an expresso node that are present in the attribute manager such as
Filletare straightforward since you can just drag it to the console. The resulting code is like:
AddPort(c4d.GV_PORT_OUTPUT, c4d.ID_BASEOBJECT_POSITION) AddPort(c4d.GV_PORT_OUTPUT, c4d.PRIM_CUBE_DOFILLET)
My problem is on the upper hierarchy parameter of an xpresso node such as
Object, Global Matrix, Local Matrixsince you can't drag them into the console.
You can see an illustration of the problem here:
I tried retrieving the ID using this code:
It returns an ID for the Object Parameter as
but when I tried running this script:
It does nothing
Is there a way around this?
Thank you for looking at my problem
I also tried the
The ID was from the
gvobject.resfile but for some reason, it has no effect (i.e. no port added).
It also does not error out.
I checked on this 2014 thread "https://plugincafe.maxon.net/topic/7744/9824_object-node-object-port" and it says
"The object port is broken in python."
Is this still applicable in 2019?
m_adam last edited by
Yes, unfortunately, this is still applicable in 2019 (aka up to R20SP2) but it will be fixed in the next build available.
Thanks for the confirmation! Looking forward to the next release.
Will close this thread for now and just update it when the release comes.
m_adam last edited by m_adam
This issue is now fixed in R21.