Viewport colors for objects in Octane for Blender plugin?

Forums: Viewport colors for objects in Octane for Blender plugin?
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Viewport colors for objects in Octane for Blender plugin?

Postby Nennig » Sun Aug 02, 2015 1:30 pm

Nennig Sun Aug 02, 2015 1:30 pm
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
Nennig
Licensed Customer
Licensed Customer
 
Posts: 16
Joined: Wed Jun 02, 2010 1:40 pm

Re: Viewport colors for objects in Octane for Blender plugin?

Postby grimm » Sun Aug 02, 2015 5:51 pm

grimm Sun Aug 02, 2015 5:51 pm
That is a Blender question, which was discussed at length in this thread on the Blender Artists site:

http://blenderartists.org/forum/showthr ... -Wireframe
Linux Mint 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Re: Viewport colors for objects in Octane for Blender plugin?

Postby aufwind » Mon Aug 03, 2015 7:48 am

aufwind Mon Aug 03, 2015 7:48 am
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.


Viewport-Color.png


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

Script.png


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")
aufwind
Licensed Customer
Licensed Customer
 
Posts: 122
Joined: Sun Mar 31, 2013 4:47 pm

Re: Viewport colors for objects in Octane for Blender plugin?

Postby Nennig » Mon Aug 03, 2015 8:24 am

Nennig Mon Aug 03, 2015 8:24 am
Hi aufwind,

This is awesome!
Many thanks for sharing your script. I will try it out tonight after work.

Have a great day.
Marc
Nennig
Licensed Customer
Licensed Customer
 
Posts: 16
Joined: Wed Jun 02, 2010 1:40 pm

Re: Viewport colors for objects in Octane for Blender plugin?

Postby Nennig » Mon Aug 03, 2015 5:09 pm

Nennig Mon Aug 03, 2015 5:09 pm
Hi aufwind,

Your script works like a charm! Many thanks for sharing !!!!
This is a really cool feature, awesome job.

Marc
Nennig
Licensed Customer
Licensed Customer
 
Posts: 16
Joined: Wed Jun 02, 2010 1:40 pm

Re: Viewport colors for objects in Octane for Blender plugin?

Postby J.C » Mon Feb 11, 2019 9:11 am

J.C Mon Feb 11, 2019 9:11 am
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1712
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Return to Blender


Who is online

Users browsing this forum: No registered users and 12 guests

Fri Mar 29, 2024 6:14 am [ UTC ]