On 26/11/2015 at 22:05, xxxxxxxx wrote:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
It seems like MAXON is recommending the use of SetParameter() && GetParameter() over the usual way of doing things with GetDataIntsance() and the resulting BaseContainer.
I'd like to bring some of my own code up to date (since a few plugins are still using the legacy API, which obviously won't fly with the R17 SDK). What I can't seem to figure out is the following things:
What is the replacement for Get/SetUInt32() and Get/SetUInt64()? Both Get/SetParameter() seem to expect a GeData object as the second argument, but GeData doesn't seem to handle the unsigned versions of Int32/Int64?
How do I handle object links through Get/SetParameter()? With the old method of going through the BaseContainer object, there was a SetLink() and GetLink() function that you could call which handled all of that. I see some reference to a BaseLink class in c4d_gedata.h, but there's no examples of how to use this.
Come to think of it, there's almost zero examples anywhere of how to use Set/GetParameter(), even though one of the stickies on this forum quite literally says "Please use GetParameter/SetParameter"... I've gone through the C++ SDK examples on github, and a lot of them are still using GetDataInstance(), and the few things that do use Get/SetParameter() don't actually show me what the equivalents are if I'm trying to migrate away from using GetDataInstance()...