GetClone without hierarchy

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 01/11/2002 at 08:24, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.012 
Platform:      
Language(s) :   C.O.F.F.E.E  ;

---------
Hi,
I´m trying to get a clone of an Object without getting any children of this object. Using obj->GetClone(0) doesn´t work. (1,2,3 doesn´t work either. Why aren´t the flags documented anyway? )
How does it work then?
Thanks

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 01/11/2002 at 12:54, xxxxxxxx wrote:

Hi,
the flags are documented, just not at the place where you would expect it. You can find the available flags on the doc page for the CopyTo method.
I just tried it with the following code and it seems to work with the same tags, that are listed there: http://www.plugincafe.com/sdk_detail.asp?ID=39069
>

\>     
\>     
\>               
\>     >   // Aktuelles Objekt bestimmen  
\>     >   var currentObject = GetActiveObject(doc);
\>     
\>     
\>     
\>     
\>       var clone;  
\>     >   clone = currentObject->GetClone(CL_NO_HIERARCHY);  
\>     >   
\>     >   GetActiveDocument()->InsertObject(clone, NULL, NULL);
\>     
\>     
\>     
\>     
\>       // C4D mitteilen, dass sich das aktuelle Dokument geändert hat  
\>     >   GeEventAdd(DOCUMENT_CHANGED);  
\>     > 
\> 
\> 

CIAO
Daniel

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 01/11/2002 at 13:00, xxxxxxxx wrote:

Ahhh! Thanks very much. Wouldn´t have expected it there. Thanks! 🙂