Creating Variables
I am new to python but I am been following CY Python for couple of months now. I see in the Blender Python for artist course in part one video number 3 shows how to create Variables.
bpy.data.material.new ('py_material') basicaly mean create a new material with a name py_material
when we create a variable my_red_material = bpy.data.material.new ('py_material')
doesnt that variable always means create a new material with a name py_material
and for the next comment when we call my_red_material.diffuse_color shouldnt that create a new material again instead it refer to the same material and work on top of it.
if my question make sense to anyone?
2
2 comments
Abdul Fahim Munaf
2
Creating Variables
CG Python Academy
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by