THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/09/2007 at 15:42, xxxxxxxx wrote:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
I want to color a null object and a spline that the user links into my expression. I tried like this (for the null object) :
Real Target_Radius = 25.0;
BaseObject *SC_TargetObj = tag->GetData().GetObjectLink(TARGET_OBJ, doc);
Setting NULLOBJECT_DISPLAY and NULLOBJECT_RADIUS works fine. The null object gets a cirle with the appropriate radius. But with ID_BASEOBJECT_USECOLOR and ID_BASEOBJECT_COLOR, nothing happens. No error message, but also no color.
What's my mistake? Thanks for any help.
On 11/09/2007 at 06:01, xxxxxxxx wrote:
Is this the right way to put data into ID_BASEOBJECT_COLOR, anyway? How would you do this? Is there any example code in one of the example plugins?
On 11/09/2007 at 08:17, xxxxxxxx wrote:
Try this instead for the last two values:
On 11/09/2007 at 10:25, xxxxxxxx wrote:
And that's totally correct.
Thanks again for a very helpful post!