我正在寻找在显示属性中切换对象的“按对象”/“按层”属性的功能,特别是“按对象”。我无法在http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_78B79975_7BA5_4A03_8FEF_27E78D14B575_htm获得任何功能来完成我想要的任务。
提前致谢!
答案 0 :(得分:1)
希望这可以提供帮助
fn Display_ByObject_ByLayer node state: =
(
if isValidNode node do node.displaybylayer = state
)
-- define first some object
cube = Box()
--try to display by object
Display_ByObject_ByLayer cube state:on
--try to display by layer
Display_ByObject_ByLayer cube state:off
答案 1 :(得分:1)
或者您可以使用下一个进行选择
mapped fn Display_ByObject_ByLayer nodes state: =
(
if isValidNode nodes do node.displaybylayer = state
)
--now you can test it
if selection.count > 0 do Display_ByObject_ByLayer (selection as array) state:off