Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get WorldModifier material (3dsmax 2017)

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
547 Views, 5 Replies

Get WorldModifier material (3dsmax 2017)

Hello,

 

I'm working on exporter for 3dsmax2017, I want to be able to export Hair & Fur modifier.

But I can't find a way to get the Root color material map (if exsits) 

 

color.png

 

Tomer

Tags (2)
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Hey,

 

did you try 'show $.modifiers[1]' ? You should be able to see a property named similar to this map-slot. Otherwise check the mxs-docs if you find an interface for this modifier. These offer more options on changing things in max.

 

 

Best,

Martin

Message 3 of 6
Anonymous
in reply to: Anonymous

Which language is "show $.modifiers[1]"? were using C# to build the exporter.

I would love to use the documentation but can't find the right place, any guidance will be deeply appreciated.

 

Thank again 🙂

Message 4 of 6
Anonymous
in reply to: Anonymous

This is MaxScript ... I was not aware that you are using C-Sharp. Too bad, I am not familiar with this language and the only advise I can give is to check 3ds Max SDK dokumentations, but I am sure, you already did this 🙂

 

Best,

Martin

Message 5 of 6
Swordslayer
in reply to: Anonymous

I'd look in the ParamBlock (get paramblock by index with the GetParamBlock method and see if you find it there; you can have a look here for one example of finding a property by name). If it's not there, I don't know what else to try.

Message 6 of 6
denisT.MaxDoctor
in reply to: Anonymous

you have to check .map and .mapEnables properties of the Hair&Fur modifier... the list of map by index is:

 

1 - Density Map
2 - Cut Map
3 - Scale Map
4 - Rand. Scale Map
5 - Root Thickness Map
6 - Tip Thickness Map
7 - Self Shadow Map
8 - Geom.Shadow Map
9 - Specular Map
10 - Glossiness Map
11 - Occluded Amb. Map
12 - Tip Color Map
13 - Hue Variation Map
14 - Value Variation Map
15 - Root Color Map
16 - Mutant Color Map
17 - Mutant Percentage Map
18 - Frizz Root Map
19 - Frizz Tip Map
20 - Frizz X Frequency Map
21 - Frizz Y Frequency Map
22 - Frizz Z Frequency Map
23 - Frizz Anim Map
24 - Anim Speed Map
25 - Kink Root Map
26 - Kink Tip Map
27 - Kink X Frequency Map
28 - Kink Y Frequency Map
29 - Kink Z Frequency Map
30 - Multi Strand Count Map
31 - Multi Strand Root Splay Map
32 - Multi Strand Tip Splay Map
33 - Multi Strand Randomize Map
34 - Dynamic Stiffness Map
35 - Dynamic Root Hold Map
36 - Dynamic Dampen Map
37 - Displacement Map

 

yours are 12 and 15

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report