a maxscript about oFusionpass

source1117

24-04-2007 04:28:51


meditMaterials[2].mtl_mat1.mtl_mat1.cull hardware = 1
-- No ""="" function for ((prop cull (prop mtl_mat1 (prop mtl_mat1 (Global:meditMaterials[2])))) Global:hardware)
meditMaterials[2].mtl_mat1.mtl_mat1.cull_hardware = 1
-- Unknown property: "cull_hardware" in pass_0:oFusion_Pass


Why?

source1117

24-04-2007 04:31:20

I use max7.0

Lioric

24-04-2007 06:19:27

Use the "showProperties" method to display the correct names of the material properties

source1117

24-04-2007 06:28:29


showProperties meditMaterials[2].mtl_mat1.mtl_mat1
[color=red] .ambient (Spin) : point3
.diffuse (Spin) : point3
.specular (Spin) : point3
.emissive (Spin) : point3
.ambientVC (MaterialState) : boolean
.diffuseVC (MaterialState) : boolean
.specularVC (MaterialState) : boolean
.vertex color (MaterialState) : boolean
.glossiness (Spin) : float
.blend type (MaterialState) : integer
.shading (MaterialState) : integer
.depth func (MaterialState) : integer
.depth check (MaterialState) : boolean
.depth write (MaterialState) : boolean
.depth bias (Spin) : integer
.alpha func (MaterialState) : integer
.alpha value (Spin) : integer
.lighting (MaterialState) : boolean
.color write (MaterialState) : boolean
.cull hardware (MaterialState) : integer
.cull software (MaterialState) : integer
.max lights (Spin) : integer
.once per light (MaterialState) : boolean
.light type (MaterialState) : integer
.fog type (MaterialState) : integer
.fog color (Spin) : point3
.fog start (Spin) : float
.fog end (Spin) : float
.fog density (Spin) : float
.mtl_mat1 (Material) : material
.mtl_mat1_on (MaterialState) : boolean
.mtl_mat2 (Material) : material
.mtl_mat2_on (MaterialState) : boolean
.mtl_mat3 (Material) : material
.mtl_mat3_on (MaterialState) : boolean
.mtl_mat4 (Material) : material
.mtl_mat4_on (MaterialState) : boolean
.mtl_vp (MaterialState) : string
.mtl_fp (MaterialState) : string
.mtl_vp_on (MaterialState) : boolean
.mtl_fp_on (MaterialState) : boolean
.blendSrc (MaterialState) : integer
.blendDst (MaterialState) : integer
.alpha (MaterialState) : integer[/color]

meditMaterials[2].mtl_mat1.mtl_mat1.cull hardware = 1
don`t use for max7.0

Lioric

01-05-2007 02:03:10

For properties with space, use quoted text for the property name, in your example it will be:


meditMaterials[2].mtl_mat1.mtl_mat1.'cull hardware' = 1


This will be modified in version 2, material property names will be standarized (i.e. cull_hardware or cullHardware)

source1117

01-05-2007 16:38:02

Thank You!!!! :lol: :lol: :lol: