Example #1
0
 def color(self, r=0.1, g=0.1, b=0.1):
     if not self._bpy_object.active_material:
         self._bpy_object.active_material = bpymorse.create_new_material()
     self._bpy_object.active_material.diffuse_color = (r, g, b)
Example #2
0
 def color(self, r=0.1, g=0.1, b=0.1):
     if not self._bpy_object.active_material:
         self._bpy_object.active_material = bpymorse.create_new_material()
     self._bpy_object.active_material.diffuse_color = (r, g, b)
Example #3
0
 def __init__(self, type):
     Cube.__init__(self, 'xxx')
     # Need to create a new material before calling make_transparent
     self._bpy_object.active_material = bpymorse.create_new_material()
     self._make_transparent(self._bpy_object, 1e-6)
     self.properties(Zone_Tag=True, Type=type)
Example #4
0
 def __init__(self, type):
     Cube.__init__(self, "xxx")
     # Need to create a new material before calling make_transparent
     self._bpy_object.active_material = bpymorse.create_new_material()
     self._make_transparent(self._bpy_object, 1e-6)
     self.properties(Zone_Tag=True, Type=type)