[Closed] Accessing the Hide By Categories List
The hidebyCategories interface allows us script the superclass categories that we want to show/hide. But below this there is a UI item which allows us to choose individual classes to hide. I can’t seem to find any way to modify this list programmatically. Have I missed something obvious?
Interacting with the 3ds Max User Interface > Filters > Selection Filter
for i=1 to GetNumberDisplayFilters() do
(
format "%: %\n" (GetDisplayFilterName i) (GetDisplayFilter i)
)
you can’t modify Display List via either mxs or sdk. Unfortunatly it’s a black-box. You can add/remove your own filters to the system using SDK, but you can’t get and manage the list of currently registered filters.
Yeah that’s pretty frustrating…
I was trying to work out if registerDisplayFilterCallback() would work but I can’t seem to get it to do anything.
Interacting with the 3ds Max User Interface > Filters > class id filter
fn dispfilter node =
(
isKindOf node Cylinder or isKindOf node Box
)
registerDisplayFilterCallback dispfilter "CylinderOrBox"
-- unregisterDisplayFilterCallback dispfilter
filter_index = findItem (for i = 1 to GetNumberDisplayFilters() collect GetDisplayFilterName i) "CylinderOrBox"
if filter_index > 0 do SetDisplayFilter filter_index true