Press Radio button with Maxscript in Command Panel
I want to press a radio button in the command panel. Someone asked how to press a checkbox in a 3dsmax menu (I have included the link). I am trying to press a radio button in the Command Panel: Proboolean --> (sub-object Operations) --> (Remove or Copy or Inst). These settings are not exposed in maxscript unfortunately. I tried your solution for the checkbox but it does not seem to work for radio button. Can someone help me?
Link to ScriptSpot Thread: Pressing a Checkbox with maxscript
miauu solution for Checkbox:
local RollOutHandle = (windows.getChildHWND 0 "access test" )[1] local checkHandle =(windows.getChildHWND RollOutHandle "Check")[1] local VK_RETURN = 0x000D local WM_SETFOCUS = 0x007 local WM_CHAR = 0x0102 UIAccessor.sendMessage checkHandle WM_SETFOCUS 0 0 windows.sendMessage checkHandle WM_CHAR VK_RETURN 0
Comments
Can someone help me?
I don't know how to get this working in 3dsmax 2017. Could someone please help. I build a lot of code that is now useless in 3dsmax 2017 because I can't select Remove/Copy/Inst in the Proboolean menu.
.
This works:
But it have one issue - the Remove Display Filter dialog will appear several times. Try to solve it.
Tools and Scripts for Autodesk 3dsMax
Thanks
Thanks! You are amazing :-)
When I tested it quickly I did not get a "Remove Display Filter dialog" popping up. But I still have to test more.
.
Every time I have 20-30 dialogs to close, but the radiobuttons are changed.
Tools and Scripts for Autodesk 3dsMax
It does not work for 3dsmax 2018
It does not work for 3dsmax 2018 (since they introduced a new interface):
"Remove/Copy/Inst Radiobuttons in a Proboolean object in the modifier pannel. These settings are not exposed in maxscript.
The problem starts with this line (there no longer is a "ModifyTask"):
This was the old working code (working up to 3DSMax 2017)
Called with function:
Called with:
Does not work anymore in 3dsmax 2017
Please can anyone help? This used to work in 3dsmax 2016 to select the "Remove/Copy/Inst Radiobuttons in a Proboolean object in the modifier pannel. These settings are not exposed in maxscript.
The problem starts with this line (there no longer is a "ModifyTask"):
This was the old working code (working up to 3DSMax 2016)
Called with function:
Called with:
Does not work anymore in 3dsmax 2017
Double Post
Does not work anymore in 3dsmax 2017
Double Post
This method works for me
I just got this working on my example (changing a radiobutton in the '3ds import' dialog).
But it should work for other UI elements also :)
If you want to filter out the correct controls from the controls array using wildcards (in this example I am using the wildcard "*Selected*only*" to find the 'selected only' option in the 3ds import dialog) use this piece of code:
I hope this also works for you guys.
Also check out this page, I got a lot of useful info there:
http://forums.cgsociety.org/showthread.php?f=98&t=639812&page=1&pp=15&hi...
-Maarten
Also this
And if you want to get the correct ID's for the controls in a certain dialog use this piece of code:
it will return something like this:
The 'i' value is the item number of each control in the dialog, the array behind each 'i' value contains info on that control. The first item in this 'control array' is the Window Handle which is used for identification. So when I am sending a message to a certain control I am using this handle example:
I do recommend using wildcards in combination with Matchpattern as the control ID's do change between differnt max versions.
-Maarten