THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/08/2012 at 06:08, xxxxxxxx wrote:
Sorry for this basic question. Where can I find the python contacts and possible imports.
E.g. I'm looking for the Mbase constant to create a material.
Python can not find this one. Looking for it, using the console I can see it is 5703, but I rather use the constant.
Here the code for creating a material:
def main() :
mymat = c4d.BaseMaterial(5703)
mymat[c4d.ID_BASELIST_NAME] = "my material"
doc.InsertMaterial(mymat)
c4d.EventAdd()