Another solution, no timers and no "dirty" UIAccessor. I used a checkbutton instead of a pickbutton, "outsource" the picking to a function. This way you can call the function from anywhere. I added another button to demonstrate. "mybutton" is optional parameter, so you can imitate the pressed button state. The filter…
Ok, I have to excuse, you are right it doesn't work if it's called from within the pickbutton picked function. *Whoops* I guess it's one of those things where you have to use a dirty workaround, in this case a timer. Don't set the timer interval too low or it won't work properly. I call this dirty because timers can be…
You can use the PressButton function in the UIAccesor interface: UIAccessor.PressButton <hwnd> In your case: UIAccessor.PressButton pbtn_pick.hwnd[1] The [1] is needed since .hwnd returns the window pointer in an array.
Hey folks, could someone please tell me how to activate a maxscript pickbutton via a function? Like, I dont want to start it by having the user click on the button (well, at least not at the time the line of code appears in my script), but rather by a line of code.…