InstanceObjects and MakeEditable()

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,

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.

:)