On 11/03/2013 at 07:36, xxxxxxxx wrote:
Hi everyone !
I did a little search here and on cgtalk but couldn't find anything about the subject, and the sdk is still cryptic for me sometimes..
Is there a way to create/delete a layer, set its name, add objects to it and so on ?
I thought I can solve with this: http://chicagoc4d.com/C4DPythonSDK/modules/c4d.documents/LayerObject/index.html#c4d.documents.LayerObject
but evidently I didn't understood how it works.
Basically what I would like to do is a script that creates a new layer, sets its name to something, and add selected objects to it. I'm ok (i think) with adding objects to the layer, but i can't figure how to add the layer itself.
Any advice, example or reference I can check would be great !