Ian Hsieh
ianhsieh
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
UI plugin non-blocking window April 21, 2022, 12:54 p.m.
Just answering my own question. Looks like getting rid of the EXCLUSIVE attribute in the .ui file fixed my problem.
UI plugin non-blocking window April 20, 2022, 12:42 p.m.
Is there a way to have the window for a UI plugin not be blocking? I can see that AP_Interface has a setAppForeground() method, but I'm not sure if that's what I should use or how/where it should be called:
https://www.sidefx.com/docs/hdk/_a_p___interface_8h_source.html [www.sidefx.com]
The comment says it has to be called before main is run, but I'm not sure what that means for a plugin. Can someone explain where I'm supposed to call it or am I barking up the wrong tree?
Thanks!
Ian
https://www.sidefx.com/docs/hdk/_a_p___interface_8h_source.html [www.sidefx.com]
The comment says it has to be called before main is run, but I'm not sure what that means for a plugin. Can someone explain where I'm supposed to call it or am I barking up the wrong tree?
Thanks!
Ian
Set Toggle Button selected in a UI plugin April 5, 2022, 10:24 a.m.
Hi,
I'm trying to create a UI plugin following the Native UI Programming documentation, and using the ui/cmd_ui.C as a guide:
https://www.sidefx.com/docs/hdk/_h_d_k__u_i_native.html [www.sidefx.com]
One thing I can't seem to figure out is how to set a toggle button to be selected before the window opens. I can set strings and int gadgets, but not toggle buttons.
Using cmd_ui.C as an example, if I put this in the open() method:
getValueSymbol("geometry.val")->setValue(1);
The "geometry" toggle is never selected. Am I doing this incorrectly? I'm trying this on linux, with Houdini 19.0.561 (python 3).
Thanks!
Ian
I'm trying to create a UI plugin following the Native UI Programming documentation, and using the ui/cmd_ui.C as a guide:
https://www.sidefx.com/docs/hdk/_h_d_k__u_i_native.html [www.sidefx.com]
One thing I can't seem to figure out is how to set a toggle button to be selected before the window opens. I can set strings and int gadgets, but not toggle buttons.
Using cmd_ui.C as an example, if I put this in the open() method:
getValueSymbol("geometry.val")->setValue(1);
The "geometry" toggle is never selected. Am I doing this incorrectly? I'm trying this on linux, with Houdini 19.0.561 (python 3).
Thanks!
Ian