ZaPPZion
08-22-2008, 05:58 PM
Hi everyone,
This is my first post on these forums, but I've been following a lot of threads over the whole forum already. Let me introduce myself a little bit before asking my questions (feel free to skip this part :P). I'm a C# programmer who's looking into max for a bit. I'm still in the learning process of Maxscript, but it's not so different from other languages i think. Anyway, my question:
I'm writing a script to export my designed level from 3ds max to be used with the 3D engine i'm using. I'm exporting all geometry as custom formats, that's no problem, but now i've come to a fairly new part. I'm trying to export the settings of the directX shaders that i'm using (HLSL shaders). So lets say there's a box in my scene, it has a directX shader material on it. How would i go about processing the data ? I mean, when it has a couple variables that you'd expect, it's not a big deal, but when i'm creating new shaders, i still want to be able to save the settings. For example a simple float with a non default name, lets say ZaPP. How would i get the value from the material? I know i can call $.material.ZaPP, but that's not what i want. I want to be able to get the 2nd property of the shader, and it's name. Is this possible in Maxscript?
Thanks in advantage,
Greetings,
ZaPP
This is my first post on these forums, but I've been following a lot of threads over the whole forum already. Let me introduce myself a little bit before asking my questions (feel free to skip this part :P). I'm a C# programmer who's looking into max for a bit. I'm still in the learning process of Maxscript, but it's not so different from other languages i think. Anyway, my question:
I'm writing a script to export my designed level from 3ds max to be used with the 3D engine i'm using. I'm exporting all geometry as custom formats, that's no problem, but now i've come to a fairly new part. I'm trying to export the settings of the directX shaders that i'm using (HLSL shaders). So lets say there's a box in my scene, it has a directX shader material on it. How would i go about processing the data ? I mean, when it has a couple variables that you'd expect, it's not a big deal, but when i'm creating new shaders, i still want to be able to save the settings. For example a simple float with a non default name, lets say ZaPP. How would i get the value from the material? I know i can call $.material.ZaPP, but that's not what i want. I want to be able to get the 2nd property of the shader, and it's name. Is this possible in Maxscript?
Thanks in advantage,
Greetings,
ZaPP
