hi,
I added a view lines of code to the octane ui.py a while ago to get colered objects
in the Viewport. You can even have transparency in object mode.
The Viewport Color is independent from the Material Color.
The Color will be visible in Viewport Shading Mode Solid and Textured.
It's best to set the Type to solid as shown in the picture.
I wasn't able to upload the changed script.
You have to manually change the script in the folder: 2.75 / scripts / addons / octane / ui.py
Place the lines beneath as shown in the picture and save the changed script.
- Code: Select all
class OctaneMaterial_PT_settings(OctaneButtonsPanel, Panel):
bl_label = "Viewport Material Color"
bl_context = "material"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
return context.material and OctaneButtonsPanel.poll(context)
def draw(self, context):
layout = self.layout
mat = context.material
obj = context.object
obj_type = obj.type
split = layout.split()
col = split.column()
col.prop(obj, "draw_type", text="Type")
if obj_type == 'MESH' or (obj_type == 'EMPTY' and obj.empty_draw_type == 'IMAGE'):
col.prop(obj, "show_transparent", text="Transparency")
col = split.column()
col.prop(mat, "diffuse_color", text="")
if context.object.show_transparent:
col.prop(mat, "alpha")