Re: Pause render updates (preview Lock button)

2012-05-21 Thread Steven Caron
hey kamen i haven't looked at the available attributes but have you tried using the 'View Attributes'? GetAttribute()/SetAttribute() with this View might allow you to set that lock. s On Fri, May 18, 2012 at 8:33 AM, Kamen Lilov kamen.li...@chaosgroup.comwrote: Hello, I'm looking for an

Re: Pause render updates (preview Lock button)

2012-05-21 Thread Stefan Kubicek
afaik the Preview Window and Render Window don't expose any View Attributes. http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/si_cmds/ViewAttributes.html# hey kamen i haven't looked at the available attributes but have you tried using the 'View Attributes'?

Pause render updates (preview Lock button)

2012-05-18 Thread Kamen Lilov
Hello, I'm looking for an undocumented feature :) - in the SI preview window, there is a Lock button that will cause SI to stop sending any further Render requests (for that preview) until the button is toggled again. Is there a way to programatically access, and change, the value of this

Re: Pause render updates (preview Lock button)

2012-05-18 Thread Nicolas Burtnyk
Hey Kamen, I tried this really quick in python and it worked to toggle the button: win32api.PostMessage(0x0001085E, win32con.WM_LBUTTONDOWN, win32con.MK_LBUTTON, 0x000A000A) win32api.PostMessage(0x0001085E, win32con.WM_LBUTTONUP, win32con.MK_LBUTTON, 0x000A000A) I used Spy++ to grab the window

Re: Pause render updates (preview Lock button)

2012-05-18 Thread Kamen Lilov
Thank you Nicolas. The thought of feeding mouse events to SI directly did cross my mind, but the approach is very hacky (mildly put :) And finding the window is extra tricky, because that window class - AfxWnd90u - changes with the version of MFC / C RTL occasionally on a new Softimage