mat class decide problme

always thank you
i wonder some ~~ that code is error
in code , isKindOf matxx is right ?
i would like to get material matxx's class

ml2 = loadTempMaterialLibrary "c:\\eamsple.mat"
matxx= ml2[1]

case isKindOf matxx of

(
Standardmaterial :
(

)

VRayMtl :
(
)

)

Comments

Comment viewing options

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

could be like this

could be like this

thisMat =  selection[1].mat
 
case of 
(
  (isKindOf thisMat vrayMtl) : (messageBox "This is VrayMaterial")
  (isKindOf thisMat Standard) : (messageBox "This is Standard")
)
dussla's picture

thank you for good anwser

really really thank youy ~~

miauu's picture

.

(
	ml2 = loadTempMaterialLibrary "c:\\eamsple.mat"
	matxx= ml2[1]
 
	classOfMat = classOf matxx
	format "classOfMat: % \n" classOfMat
 
	case classOfMat of
 
	(
		Standardmaterial :
		(
 
		)
 
		VRayMtl :
		(
 
		)
 
	)
)
dussla's picture

thank you

thank you thank you always~

Comment viewing options

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