THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/04/2011 at 10:22, xxxxxxxx wrote:
I'm not able to go to my Pc for today, so i just wrote this code from scratch on my mobile device since I can remember that code.
def MakeEditable(op) :
from c4d.documents import BaseDocument
from c4d.utils import SendModelingCommand as SMC
op = [op.GetClone()]
doc = BaseDocument()
op = SMC(command = c4d.MCOMMAND_MAKEEDITABLE, list = op, doc = doc)
def main() :
converted = MakeEditable(op)
if __name__ == '__main__':
If you convert a ClonerObject, the clones are usually grouped under a null. The same for Particle Geometry.
Executing this script does only insert the Top null, but not the children.
I do hope the code works, I'm sure it is exactly the same I used on my Pc.