# 3dsmaxscript for lod

**URL:** <https://forums.unrealengine.com/t/3dsmaxscript-for-lod/485852>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [July 7, 2021, 3:30am UTC](https://forums.unrealengine.com/t/3dsmaxscript-for-lod/485852 "2021-07-07T03:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_2b1c0ae35200c148eb0a733ea3ffb0da](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_2b1c0ae35200c148eb0a733ea3ffb0da](https://forums.unrealengine.com/u/Anonymous_2b1c0ae35200c148eb0a733ea3ffb0da)\
**Post date:** [July 7, 2021, 3:30am UTC](https://forums.unrealengine.com/t/3dsmaxscript-for-lod/485852/1 "2021-07-07T03:30:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Anonymous\_2b1c0ae35200c148eb0a733ea3ffb0da](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_2b1c0ae35200c148eb0a733ea3ffb0da](https://forums.unrealengine.com/u/Anonymous_2b1c0ae35200c148eb0a733ea3ffb0da)\
**Post date:** [July 8, 2021, 3:30am UTC](https://forums.unrealengine.com/t/3dsmaxscript-for-lod/485852/2 "2021-07-08T03:30:21Z")

</div>

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
        )
```
