Solved Add Position Velocity Port

Hi all,

I'm trying to add the position velocity port to a node with it's ID, but no luck!

POS_VEL_ID = 40000008
out_port = obj_node.AddPort(c4d.GV_PORT_OUTPUT, POS_VEL_ID )

Is anyone having the same problem or I'm missing something?

Thank you in advance! :relaxed:

Where to you get the velocity port manually?
I tried it on a cube but I couldn't find any. Is it specific to an object?

@bentraje said in Add Position Velocity Port:

Where to you get the velocity port manually?
I tried it on a cube but I couldn't find any. Is it specific to an object?

You can find it for the output of any object. I'm using R19 Studio, not sure if that makes a difference!

13cee56f-f495-4655-81f2-1ada6b471e35-image.png

Cheers! :)

Hi,

it is probably not what you were looking for, but I can remember quite a few posts in the old forum which dealt with c4d.modules.graphview and its shortcomings when it comes to the instantiation and modification of nodes. I just tested it and it does not work for me too. AddPortIsOK() returns True for your ID, but AddPort() returns then None. Apparently these bugs have not been fixed yet?

Cheers,
zipit

MAXON SDK Specialist
developers.maxon.net

@zipit said in Add Position Velocity Port:

Hi,

it is probably not what you were looking for, but I can remember quite a few posts in the old forum which dealt with c4d.modules.graphview and its shortcomings when it comes to the instantiation and modification of nodes. I just tested it and it does not work for me too. AddPortIsOK() returns True for your ID, but AddPort() returns then None. Apparently these bugs have not been fixed yet?

Cheers,
zipit

Hi Zipit,

Yeah that seems about right! I will have another look into the old forum and see if something pops up.
This was just a quick prototype for show the position velocity of the object in a user data field. Probably going to have to do it another way.

Cheers for your help! :+1:

Hello,

Sorry for the late reply.
This was a bug (with other ports also) and it's fixed for the next release.

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

@m_magalhaes said in Add Position Velocity Port:

Hello,

Sorry for the late reply.
This was a bug (with other ports also) and it's fixe for the next release.

Cheers
Manuel

@m_magalhaes Ah OK! Thanks for lettings us know! :+1: