Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    AddPort Relative Rotation, Vector Y [SOLVED]

    SDK Help
    0
    3
    283
    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.
    • H
      Helper
      last edited by

      On 18/05/2015 at 05:58, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R16 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi,

      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!
      Greetings,
      Casimir Smets

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 18/05/2015 at 08:39, xxxxxxxx wrote:

        Hello,

        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:

        • Setting up Xpresso Nodes

        best wishes,
        Sebastian

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 18/05/2015 at 08:59, xxxxxxxx wrote:

          Hi,

          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!
          Greetings,
          Casimir Smets

          1 Reply Last reply Reply Quote 0
          • First post
            Last post