Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Add Position Velocity Port

    Cinema 4D SDK
    r19 python
    4
    7
    970
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AndreAnjos
      last edited by AndreAnjos

      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! ☺

      1 Reply Last reply Reply Quote 0
      • B
        bentraje
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • A
          AndreAnjos
          last edited by AndreAnjos

          @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! πŸ™‚

          1 Reply Last reply Reply Quote 0
          • ferdinandF
            ferdinand
            last edited by

            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

            1 Reply Last reply Reply Quote 1
            • A
              AndreAnjos
              last edited by

              @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 Reply Last reply Reply Quote 0
              • ManuelM
                Manuel
                last edited by Manuel

                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

                1 Reply Last reply Reply Quote 1
                • A
                  AndreAnjos
                  last edited by

                  @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 Reply Last reply Reply Quote 0
                  • First post
                    Last post