Hi gals and guys, there is a problem that confuse me three days. I want to find help from here. Thanks a lot at first.
Question: When I use MaxScript Utilities Panel(level of detail) ,I want to make new set & remove from set
I use code like this:
max Utility mode
UtilityPanel.OpenUtility Level_of_Detail
CreateNewSetButton = (windows.getChildHWND #max “Create New Set”)
UIAccessor.PressButton CreateNewSetButton[1]
1.it doesn’t work well on max2014
2.I can’t use this way to get items in LOD-set list window,so that I can’t click Remove from set button.
Is there a better way to solve these question?
have solved by myself. Mark it
panelHWND = (windows.getChildHWND #max “Remove From Set”)[1]
ParentPanelHWND = (windows.getParentHWND panelHWND)
for hwnd in (windows.getChildrenHWND ParentPanelHWND) where hwnd[4] == "ListBox" do
(
WM_LBUTTONDOWN = 0x0201
WM_LBUTTONUP = 0x0202
uiaccessor.sendmessage hwnd[1] WM_LBUTTONDOWN 0 0
uiaccessor.sendmessage hwnd[1] WM_LBUTTONUP 0 0
)