On 30/05/2016 at 16:43, xxxxxxxx wrote:
Trying to figure out a way to build a character template with python. First, create the character object, then select the character type, then build the components. An example would be to create an Advanced Biped, then build the root, spine, then arms. Can't seem to figure out how to mimic pushing the button to create the components.
obj = c4d.BaseObject(c4d.Ocharacter) # Create Character Object
doc.InsertObject(obj) # Insert object in document
obj[c4d.ID_CA_CHARACTER_TEMPLATE] = 1# Select Advanced Biped
Create Root some how ...
Create Spine some how...
Related question, does anyone know how I can make sure I am creating the right character template with [c4d.ID_CA_CHARACTER_TEMPLATE]? I guess I am asking how do I know the integer that corresponds to a template will be the same on other computers? If I have a bunch of different templates the integer corresponding to my template maybe be different on someone else(I think), I believe it is based upon how many you have saved? I want to figure out a way to make sure I build the correct template.
Thank you to anyone reading this I appreciate all the help.