THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/12/2010 at 05:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform:
Language(s) : PYTHON ;
---------
Appreciate a nudge (first steps with python)
I can create and set a materials colour and check to see if a duplicate exists
mat_op = c4d.BaseMaterial(c4d.Mmaterial) #create a standard material
mat_op[c4d.ID_BASELIST_NAME] = "mynewmatname"
doc.InsertMaterial(mat_op,pred=None,checknames=True)
mat_op[c4d.MATERIAL_COLOR_COLOR] = c4d.Vector(.4,.3,.8)
and texture from a bitmap using a file path
but cant see how to insert a procedural shader
p = C4DNoise(1234)
p.InitFbm(21, 2.1, 0.5)
mat_op[c4d.MATERIAL_COLOR_SHADER] = p
or change the mixing method - multiply, add, subtract etc
any help appreciated