Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    InstanceObjects and MakeEditable()

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 241 Views
    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 Offline
      Helper
      last edited by

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

      On 20/02/2005 at 17:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   6.3-9.0 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I have a user rightfully complaining that he cannot use my "Drop It!" plugin with InstanceObjects. If the object is not a PointObject, I call MakeEditable(doc, object) so that the points can be used in the calculation. This doesn't work with InstanceObjects it appears.

      Here is my function:

        
      // Input: BaseDocument doc, BaseObject op  
      FloorDialog::MakeEditable(doc, op)  
      {  
           var bc = new(BaseContainer);  
           doc->AddUndo(UNDO_OBJECT_REC, op);  
           SendModelingCommand(MCOMMAND_MAKEEDITABLE, doc, op, bc, MODIFY_ALL);  
      }  
      

      Is there something different that needs to be done when using InstanceObjects (and what is it)?

      Thanks,

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

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

        On 20/02/2005 at 22:53, xxxxxxxx wrote:

        Got it working. Just involved checking whether or not the made-editable InstanceObject itself needed to be made-editable.

        🙂

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