On 18/05/2015 at 05:58, xxxxxxxx wrote:
Cinema 4D Version: R16
Language(s) : C++ ;
I'm adding some xpresso nodes with ports inside my objectdata plugin.
However, I have no idea on how to add the relative pitching port.
It should be with ID_BASEOBJECT_REL_ROTATION, VECTOR_Y, I guess, but I can't get it to work.
If I look inside the SDK examples, I find nothing, because it doesn't have even one Xpresso example.
Looking at the forum also didn't gave me any solutions, so that's why I'm posting it.
Does somebody know how to do this?
The code I have now is:
GvPort* myPort = myNode->AddPort(GV_PORT_OUTPUT, (ID_BASEOBJECT_REL_ROTATION, VECTOR_Y));
Thanks in advance for your help and time!
On 18/05/2015 at 08:39, xxxxxxxx wrote:
adding a port to a Xpresso object node is not that straightforward and needs some special code. This was discussed just recently on this forum:
On 18/05/2015 at 08:59, xxxxxxxx wrote:
Thanks for your answer, my problem is fixed.
But, wouldn't it be easier to put that inside the SDK docs?
As a comment under AddPort, and everybody who wants to add a port, will definately see this, and will not have the need to search the internet or this forum.
Just my opinion.
Thanks again for your help!