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)
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)
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)