On 03/03/2013 at 04:37, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
Hi everyone,
I'm making an ObjectData plugin to use as a deformer, and I'm trying to implement a falloff tab (in a similar way to the falloff tab that appears in the 'displacer' and 'surface' deformers).
I've been getting there by using the 'C4D_Falloff' class - following the instructions in the SDK and calling the C4D_Falloff functions from the appropriate places in my ObjectData's code. However I'm still having a couple of stumbling blocks, and hopefully someone here knows some more about it and can offer me some advice.
Here are my issues:
-
The SDK says that the C4D_Falloff is able to get and set its own parameters from the object's container. I haven't been able to get this to work, I can manually get the data from the BaseContainer and then call SetMode() and SetData(), but this isn't ideal as those functions don't seem to allow me to pass the full range of settings from every falloff type.
-
The SDK suggests that I call the C4D_Falloff's CopyTo() function within my ObjectData's CopyTo() function to ensure that the handles work - however I'm not sure where to get the 'C4D_Falloff*' dest variable this function needs, as it isn't passed in the NodeData CopyTo() function (that gets passed a 'NodeData*' dest, can the 'C4D_Falloff*' be found from there somehow? Or maybe one of the GeListNode pointers?)
Thanks,
Dan