THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/06/2004 at 16:04, xxxxxxxx wrote:
Cinema 4D Version: 8.206
Language(s) : C++ ;
I created a null object through code, I would like that object hidden in editor and render.
Most obvious is this.
BaseContainer *bcNull = onull->GetDataInstance();
But that doesnt work, the null object still shows
On 08/06/2004 at 04:24, xxxxxxxx wrote:
This seems to work:
BaseObject* obj = doc->GetFirstObject();
obj->SetParameter(DescID(ID_BASEOBJECT_VISIBILITY_EDITOR), OBJECT_OFF, 0);
obj->SetParameter(DescID(ID_BASEOBJECT_VISIBILITY_RENDER), OBJECT_OFF, 0);
On 08/06/2004 at 10:29, xxxxxxxx wrote:
SetEditorMode() and SetRenderMode() are probably even easier. Just for completeness.
On 08/06/2004 at 14:39, xxxxxxxx wrote:
Thank you kind sir's
Didn't notice the two functions to do this directly