Materials Browser in Ruby?
-
I'd like to give the user access to set the current material to a material not yet in the model. Something like:
mats.current = 'Wood_Cherry_Original'
Is this possible? It fails with a "Could not find..." message except for materials already in the model.
-
You can't [yet] import skm files.
If you could thenmaterial.import(pathname)
would be there...
You can make a new material based on the name of an image file and even colorize it from that etc...
However, it'd means splitting out the parts of the material's 'skm' file [which is really a 'zip' file] and taking the image file part, then making that as your new material's texture [with appropriate scaling] etc etc...
Nothing is easy -
@tig said:
splitting out the parts of the material's 'skm' file [which is really a 'zip' file] and taking the image file part, then making that as your new material's texture [with appropriate scaling] etc etc...
Thanks. I was afraid of that.
Advertisement