Hey guys, i'm on R23, Windows, C++ and I have an issue setting ID_BASEOBJECT_USECOLOR.
Basically I have a spline object as a sub-object of my ObjectData plugin which I want to have a solid color.
In GetVirtualObjects() before inserting this spline under my cache root, I use the following:
splineObject->SetParameter(DescID(ID_BASEOBJECT_USECOLOR), ID_BASEOBJECT_USECOLOR_ALWAYS, DESCFLAGS_SET::NONE); splineObject->SetParameter(DescID(ID_BASEOBJECT_COLOR), Vector(1,0,1), DESCFLAGS_SET::NONE);
But this doesn't work...
Also tried setting with the ObjectColorProperties struct but no luck:
ObjectColorProperties props; props.color = Vector(1, 0, 1); props.usecolor = ID_BASEOBJECT_USECOLOR_ALWAYS; splineObject->SetColorProperties(&props);
Any ideas what I'm doing wrong?
EDIT: In edit mode I manage to do set them separately for each of my objects, so I assume it's possible.
Thank you for the attention!