Custom Data Port
-
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??
-
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. -
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.