glassman3d Posted October 10, 2013 Share Posted October 10, 2013 Hi All I am running the example file from: http://www.sidefx.com/docs/houdini12.5/hom/cookbook/pyqt/part2/ I am hacking it around to suit my needs but I have run into a problem where I need to pass through args when I run: pyqt_thread_helper.queueCommand(myguicommand) I want to pass a string through but am finding this a bit mystifying any body had any experience with this? many thanks! Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted October 11, 2013 Share Posted October 11, 2013 Houdini has it's own event loop, so you don't need to run your QT Gui in separate thread. This is recommended way to run QT in houdini. Doing this way, you don't need to use pyqt_thread_helper.queueCommand Quote Link to comment Share on other sites More sharing options...
glassman3d Posted October 15, 2013 Author Share Posted October 15, 2013 hi Stalkerx77 - thanks fro your reply I was only using example 2 as I couldn't get example 1 up tp execute without hanging I got it all working within houdini's event loop in the end the trick was not to call my gui script from the python shell as that has it's own thread, this makes the pyqt_houdini script hang. In the end I had to register the function as a callback on a button to get it to work correctly - they should put a disclaimer in the docs about that! cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.