Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    GetClone without hierarchy

    SDK Help
    0
    3
    538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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: <[URL-REMOVED]>
        >

        \>     
        \>     
        \>               
        \>     >   // 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


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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! 🙂

          1 Reply Last reply Reply Quote 0
          • First post
            Last post