how to make objects editable
-
On 04/02/2017 at 07:35, xxxxxxxx wrote:
hello ,
I am trying to use SendModelingCommand to make an object editable ,
but I don't seem to make it work ,and I don't want to use call commands , because my code is more complex than the sample below , and call commands would be a problem
here is the sample :import c4d from c4d import utils def main() : obj = doc.GetActiveObject() bc = c4d.BaseContainer() res = c4d.utils.SendModelingCommand( command = c4d.MCOMMAND_MAKEEDITABLE, list = [obj] , mode = MODELINGCOMMANDMODE_ALL, bc = bc , doc = doc ) c4d.EventAdd() if __name__=='__main__': main()
-
On 04/02/2017 at 07:41, xxxxxxxx wrote:
If i'm right res[0] hold the new polygonObject. So you have to insert it
-
On 04/02/2017 at 07:45, xxxxxxxx wrote:
Yes , it worked !
thanks you very much