Standard to Ink 'n Paint Material Convertor

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.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
01levent01's picture

not work

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.

kimarotta's picture

Hi

I wrote this script helps you to see.

AttachmentSize
standarttoinkpaint.ms 1.05 KB

kimarotta.com.br
3d Artist  

barigazy's picture

Very nice kimarotta. Works

Very nice kimarotta. Works exelent.
I don't want to interfere, but you want to suggest something about optimization if you do not mind

bga

kimarotta's picture

Yeah

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

kimarotta.com.br
3d Artist  

barigazy's picture

Yes fn. This is all that you

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

bga

kimarotta's picture

yeah.

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?

AttachmentSize
standarttoinkpaint2.ms 1.08 KB

kimarotta.com.br
3d Artist  

barigazy's picture

Attempt to improve this

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.

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.