Classof(类别)
在查找可以与其他类交换的类对象时,请使用classof。在这个例子中,我们将漫反射:颜色校正与棋盘格贴图交换。
if classof $.material.diffuseMap == Color_Correction then
(
$.material.diffuseMap = Checker()
)
例子:
classof有很多用途,这只是一个例子。访问classof的其他有用方法:
showClass "box*" -- all 3ds max classes starting "box"
showClass "box.*" -- all the accessible properties of the box class
showClass "*:mod*" -- all the modifier classes
showClass "*.*rad*" -- all the classes with a property name containing "rad"
isKindOf
与cl