Hey guys!
I was looking for a way to basically check the state of, for example, the chamfer tool. I have been looking for a bit and can't seem to find anything but how to toggle them with
$.EditablePoly.ToggleCommandMode
#ExtrudeEdge
Any point in a direction would be greatly appreciated!

JJB
Replies
if settingslaunch == true then ( $.EditablePoly.PopupDialog #Chamfer settingslaunch = false ) else ( $.EditablePoly.ToggleCommandMode #chamferEdge settingslaunch = true )I just want to be able to get to the settings for a tool by hitting the same key twice, whether that is chamfer, extrude, inset, whatever.( local desktopHWND = windows.getDesktopHWND() local desktopChildren = windows.getChildrenHWND desktopHWND local chamferUIisActive = false stopLoop = false for child in desktopChildren while stopLoop == false where (child[5] == "Chamfer Edges") do ( chamferUIisActive = true stopLoop = true ) format "chamferUIisActive: % \n" chamferUIisActive )You can use the same code for other rollouts. Just use the proper name of the desired dialog.Script works backwards.
local desktopHWND = windows.getDesktopHWND() local desktopChildren = windows.getChildrenHWND desktopHWND local chamferUIisActive = false stopLoop = false for child in desktopChildren while stopLoop == false where (child[5] == "Chamfer Edges") do ( chamferUIisActive = true stopLoop = true ) if chamferUIisActive == false then ( $.EditablePoly.PopupDialog #Chamfer chamferUIisActive == true ) else ( $.EditablePoly.ToggleCommandMode #chamferEdge )( local hwndVC = (windows.getChildHWND #max "chamfer")[5] UIAccessor.PressButton (windows.getChildHWND #max "chamfer")[1] )