Hi
prehabitat - yes. I'll add more features in the future so they would go underneath the current icons (or cascade icon/menu when it gets crowded)
I have it like this:
If you guys have any suggestions for the toolbar post them in this thread
Add materials with one click - toolbar
Moderator: face_off
- neiwei845458454
- Posts: 86
- Joined: Fri Jan 23, 2015 3:32 am
Code: Select all
# This Python file uses the following encoding: utf-8
import rhinoscriptsyntax as rs
import scriptcontext
rs.Command("_RenderLoadMaterialFromFile C:\\glass.rmtl")
def FindMaterialByName(mat_name):
# find a material by name
mat_table = scriptcontext.doc.Materials
mat_index = mat_table.Find(mat_name, True)
if mat_index >= 0:
print("{0} found at index {1}").format(mat_name, mat_index)
else:
print("material named {} not found in table").format(mat_name)
if __name__=="__main__":
FindMaterialByName("glass")
obj = rs.GetObject()
if obj:
index = rs.ObjectMaterialIndex(obj)
if index==-1: index = rs.AddMaterialToObject(obj)
Hi guys.
I just added toolbar for octane for rhino 3.x.x .
Download link is in the first post of this thread.
Regards,
Mac
I just added toolbar for octane for rhino 3.x.x .
Download link is in the first post of this thread.
Regards,
Mac
- fabrizio_s
- Posts: 345
- Joined: Fri Feb 03, 2017 12:14 pm
Hi formatio,
your toolbar is great.
Unfortunately materials don't work. Rhino says: Unknow Command
I' seem like "RenderLoadMaterialFromFile" isn't recognised...
Bye
your toolbar is great.
Unfortunately materials don't work. Rhino says: Unknow Command
I' seem like "RenderLoadMaterialFromFile" isn't recognised...
Bye
Hi Fabrizio.
This command comes from rdk - do you have it installed/up to date?
This command (and many others starting with Render...) do not autocomplete.
Regards,
Mac
This command comes from rdk - do you have it installed/up to date?
This command (and many others starting with Render...) do not autocomplete.
Regards,
Mac
- fabrizio_s
- Posts: 345
- Joined: Fri Feb 03, 2017 12:14 pm
Hi,
I have solved...my Rhino is in the Italian version...so I have to insert an underscore before the commands.
_RenderLoadMaterialFromFile
Now everything works fine
thanx a lot
I have solved...my Rhino is in the Italian version...so I have to insert an underscore before the commands.
_RenderLoadMaterialFromFile
Now everything works fine
thanx a lot
Hi, Thank you for the info - I changed the toolbar so it works in every language now
(see first post in this thread)
Hey Guys - if you have any suggestions or need another feature - let me know here and I try to implement it.
Regards,
Mac

Hey Guys - if you have any suggestions or need another feature - let me know here and I try to implement it.
Regards,
Mac