I am looking for Standard to Ink 'n Paint Material Convertor - maybe exist, yet, If so I will glad to hear about it. Or some advice how conver complex scenes with Standard Materials into Ink 'n Paint Materials. Important are only take same textures and colors from original Standard Materials. It is enough for my needs in complex scenes. Thank you very much.
Forum topic · Scripts Wanted
Standard to Ink 'n Paint Material Convertor
By remark3d · 2012-05-24
Description
Comments (7)
not work
01levent01 · 2017-09-26
hi.
menu is opened. but buttons is not working. What is the problem. What can i do? i try to max 2016-2017-2018
Thanks.
Hi
kimarotta · 2012-05-25
I wrote this script helps you to see.
Attachments
- standarttoinkpaint.ms — standarttoinkpaint.ms1.0 KB
barigazy · 2012-05-25
Very nice kimarotta. Works exelent.
I don't want to interfere, but you want to suggest something about optimization if you do not mind
Yeah
kimarotta · 2012-05-25
sure, I would like to use a function to control the loop, but do not have much experience with the functions ... please send your suggestion ... thanks
barigazy · 2012-05-25
Yes fn.
This is all that you need
--convert Std_material to Ink_N_Paint
fn convertToInkPaint obj mtl =
(
obj.material = InkNPaint paint_color:mtl.diffuse paint_map:mtl.diffusemap paint_map_on:(mtl.diffusemap != undefined)
)
--process only on the geometry obj with assigned Std_material
fn filterGeoMat obj = isKindOf obj geometryClass and not isKindOf obj TargetObject and isKindOf obj.material standardmaterial
-- first button action
for o in selection where filterGeoMat o do convertToInkPaint o o.material
-- second button action
for o in objects where filterGeoMat o do convertToInkPaint o o.material
Tell me what you think
yeah.
kimarotta · 2012-05-25
Is a very good, much cleaner and direct ... I need to work better with functions and IsKindOf... very thanks.
Adapted the old script with what you wrote ... okay?
Attachments
- standarttoinkpaint2.ms — standarttoinkpaint2.ms1.1 KB
barigazy · 2012-05-25
Attempt to improve this script with some other options (vray, mentalray supports, custom color adjusments for pain, light etc)
and then post it at script section.
This will be nice tool.
If you have some questions then open new thread and we talk there about improvements of this tool.