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
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
personbarigazyschedule15.03.2015
comment
В понедельник попробую и сообщу. Спасибо чувак!!
- personNateW; 21.03.2015
comment
Ага! Работал отлично. :)
- personNateW; 28.03.2015