Hi there,
Is it possible to add a color to the objects in the viewport ?
This would be so helpfull for crowded scenes.
Thank you
Best regards
Marc
Viewport colors for objects in Octane for Blender plugin?
That is a Blender question, which was discussed at length in this thread on the Blender Artists site:
http://blenderartists.org/forum/showthr ... -Wireframe
http://blenderartists.org/forum/showthr ... -Wireframe
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
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.
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")
Dear devs, why dont you add this by default? It's so much useful and easy to add.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group