Page 1 of 1
Material Assign Preset
Posted: Tue Mar 16, 2010 5:03 am
by roodyj
In the Material Editor, the Assign Preset button brings up a new window with preset picture icons for several different presets. I have downloaded materials from the Indigo library and would like to include these in the available preset icons. How do I do that?
Thank you,
Jim
Re: Material Assign Preset
Posted: Sat Mar 20, 2010 2:06 am
by Whaat
roodyj wrote:In the Material Editor, the Assign Preset button brings up a new window with preset picture icons for several different presets. I have downloaded materials from the Indigo library and would like to include these in the available preset icons. How do I do that?
Thank you,
Jim
Hi roodyj,
This can't be done at the moment. This has been requested before so I will see if I can add it to a future release.
Re: Material Assign Preset
Posted: Sat Aug 28, 2010 12:51 am
by tarikb
It would be wery usefull to do that

Also, it would be great to add name next by material. Thanks
Re: Material Assign Preset
Posted: Sat Aug 28, 2010 1:24 am
by snorky
Whaat wrote:roodyj wrote:In the Material Editor, the Assign Preset button brings up a new window with preset picture icons for several different presets. I have downloaded materials from the Indigo library and would like to include these in the available preset icons. How do I do that?
Thank you,
Jim
Hi roodyj,
This can't be done at the moment. This has been requested before so I will see if I can add it to a future release.
manual method....
on ...\Plugins\skindigo directory
open presets.html
add a line like
Code: Select all
<img id="fluor34wwarm" src="fluor34wwarm.jpg" onclick="tellSU(this.id)" title="34W Fluorescent Tube (warm)">
id is material's internal name, src is a preview thumb (jpg, 250x250), title is the name that will appear when mouse go over the picture.
on \Plugins directory
open skindigo.rb
(sorry Whaat... if you don't like it, I will remove all immediately)
look for a string like
Code: Select all
when "fluor34wwarm"
apply_34WTFW(sm)
add another string like
Code: Select all
when "material's internal name"
apply_NAME(sm)
looking for a string like
Code: Select all
def apply_34WTFW(material)
...
...
end
add another string like
Code: Select all
def apply_NAME(material)
'insert the material settings'
end
that's all....
isn't simple... but works!

Re: Material Assign Preset
Posted: Sat Aug 28, 2010 6:29 am
by Whaat
no problem...I doubt very many are brave enough to start tweaking the code anyway.

Re: Material Assign Preset
Posted: Sat Aug 28, 2010 7:45 pm
by Pibuz
Hi Snorky! Smart workflow you have built here! Interesting topic!
Why don't you make a complete tut?
(and post it at indigo-italia too?)
Re: Material Assign Preset
Posted: Mon Aug 30, 2010 9:59 pm
by snorky
Pibuz wrote:Hi Snorky! Smart workflow you have built here! Interesting topic!
Why don't you make a complete tut?
(and post it at indigo-italia too?)
a full tutorial? hehehhe no for 2 reasons
- little free time
- I hope in a future version of skindigo

Re: Material Assign Preset
Posted: Mon Aug 30, 2010 10:07 pm
by Pibuz
C'MOOOOOOOOOON MAAAAAAAN!
Re: Material Assign Preset
Posted: Wed Oct 19, 2011 9:21 pm
by Coen Naninck
Or better yet, someone should just download the entire Indigo Materials library, then fetch all the info using above's method, and finally add some custom code (headers and clearfix's) to separate the different materials. Then post it here. It can be further customized by creating an HTML <option></option> list which shows the materials by category. Or even better, using
DataTables to sort in any way you like (i.e. by material, material property (Glossy, Oren Nayar, Etc.), etc.).
I would be able to do this with the HTML skills I have. I imagine it's not all that difficult. Just don't have time to do it now. But, I will wait for Whaat's next release and see if I can cook something up in the meantime. Those steps above sure will save a lot of time though. I've been looking for a way to start giving back here so this might be it.
EDIT: I forgot to add, once this is posted here (the HTML file plus any linked files) it can be given a version which says "All Indigo materials up to such and such date.". And then update it periodically when new materials come out.
EDIT 2: I wish I had time to do this, this seems like a fun project to me! I've already got a bunch of ideas to make this a really cool toy.