Jump to content

passing arguments to pyqt_thread_helper.queueCommand


glassman3d

Recommended Posts

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!

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...