Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
User Information: Cinema 4D Version: 8.206 Platform: Language(s) : C++ ;
--------- Quick question, 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(); bcNull->SetLong(ID_BASEOBJECT_VISIBILITY_EDITOR,OBJECT_OFF); bcNull->SetLong(ID_BASEOBJECT_VISIBILITY_RENDER,OBJECT_OFF);
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); EventAdd();
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