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

    Custom Data Port

    SDK Help
    0
    3
    758
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/11/2002 at 13:15, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;  XPRESSO  ;

      ---------
      How do I retrieve a custom data structure through a port?

      I tried using the code posted by Mikael to retrieve a baselink but GvGetPortGeData() fails and returns an empty GeData in the line:

      if (!port->GetData(data.data, data.info->value_handler->value_id, run)) return GeData();

      I was just trying to get the Example Datatype in the sdk to pass from one node to another (inserted as a userdata in left node).

      Any ideas??

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/11/2002 at 09:29, xxxxxxxx wrote:

        This worked fine for me. The only trick was to make sure that I really *had* an ExampleDataType to pass in. At first I tried to pass a String and rely on the auto-conversion in ExampleDataTypeClass::ConvertFromGv(), but that function seems a bit screwed up since it doesn't expect ID_GV_VALUE_TYPE_STRING. But passing a Spline data worked fine, and then my GvGetPortGeData() function returned the correct data.
        So please make sure that nothing bad happens in ExampleDataTypeClass::ConvertFromGv() if you use the example data type as a test case.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 27/11/2002 at 12:46, xxxxxxxx wrote:

          Thanks... it seems to be working now.

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