Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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!
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:
You can find it for the output of any object. I'm using R19 Studio, not sure if that makes a difference!
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?
c4d.modules.graphview
AddPortIsOK()
True
AddPort()
None
Cheers, zipit
@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!
Hello,
Sorry for the late reply. This was a bug (with other ports also) and it's fixed for the next release.
Cheers Manuel
@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
Sorry for the late reply. This was a bug (with other ports also) and it's fixe for the next release.
@m_magalhaes Ah OK! Thanks for lettings us know!