Jump to content

Stalkerx777

Members
  • Content count

    374
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

  • Days Won

    10

Stalkerx777 last won the day on July 16 2018

Stalkerx777 had the most liked content!

Community Reputation

111 Excellent

About Stalkerx777

Contact Methods

  • Skype
    alexx_houdini

Personal Information

  • Name
    Alex Rusev
  • Location
    Vancouver, Canada

Recent Profile Visitors

8,607 profile views
  1. python panel pyside2 dropevent

    Yes, unfortunately, d&d in Python panels is very buggy. over the course of several years, I've seen all sorts of issues including this. First, make sure in your dragEnterEvent you store the mime data somewhere and then the next time you enter the widget, check if such data exists and reject the event if it does. See if it works for you, you might need to do the same trick with the dropEvent
  2. Do you mean the parameter panel? Didn't hou.Node.setSelected(True, True) work for you?
  3. Stretch UI

    Because in your .ui file you have the width and height attributes are fixed values.?
  4. H17 Introduced a new Python API for the viewport (Python states), this is a way to go if you need viewport interaction. If you want to catch an event in the whole Houdini app, then the trick I posted above should work, however, keep in mind, it must run in the main thread. Pretty much every place from which you can start Python code in Houdini will put it in the main thread, EXCEPT the Python shell - it runs in its own thread.
  5. I've done something similar recently. You've picked the right way - by implementing an HScript command. The UI part is much simpler to implement with Qt though.
  6. Detecting incomplete node definitions in python

    Try to get a definition instance (node.type().definition()) and call some methods of it. I'm pretty sure you'll get an exception somewhere and so try-except would be your answer. As for auto detect, see 456.py startup file, where you could iterate over all node types and check their definitions (see hou.hda.loadedFiles() example in the docs).
  7. [PYTHON] Getting current frame over network using rpyc

    I work with hrpyc every day and haven't seen such a problem before. Consider this as a bug and report to SideFx. As a workaround try hou.hscript("fcur").
  8. Beginner's problem in compiling

    If you don't have skills and experience in c++ compilation and build systems such as Make or Cmake, just stick to hcustom, it's there for a reason.
  9. Seems like what you want is a semi-dynamic menu, which gets updated on request. You can do something along those lines: In the menu script: return hou.phm().my_menu_values(kwargs['node']) In your PythonModule: LIST_DIR = False def my_menu_values(node): if not node.cachedUserData('menu_values'): node.setCachedUserData('menu_values', read_dir_or_something()) if LIST_DIR: node.setCachedUserData('menu_values', read_dir_or_something()) return node.cachedUserData('menu_values') Then in your button callback: kwargs['node'].phm().LIST_DIR = True # force menu to cook kwargs['node'].parm('my_menu').menuItems() kwargs['node'].phm().LIST_DIR = False P.S. Untested
  10. Without looking into that classes, I would assume that UT_JSONValueMap->append() takes ownership of its contents and deleting rootMap also deletes the floatV data, and so you're getting a "double free" error. See if UT_JSONValueMap owns the values and if so, you don't need to delete floatV yourself.
  11. Force python sop NOT to cook

    How about just adding a control parm to the node and set it to True when you want it to cook. Or use hou.Node.userData for that matter. if node.evalParm('cook?'): # Yes please
  12. HOM from shell in macOS

    Don't complicate life, just use the Hython interpreter unless you absolutely must stick to system's Python.
  13. access menu item

    No there is no way to do that unless you build XML files with Python before Houdini initialize.
  14. Creating ALIAS for launching houdini

    alias houdini_run='cd /opt/hfs16.5.595; source houdini_setup >> /dev/null; cd - >> /dev/null; env PATH=/home/jim/yt-conda/bin:/home/jim/yt-conda/sbin:$PATH houdini'
  15. PySide to PySyde2 UI

    It's true that official release does not provide Python2.7 binaries for windows: https://download.qt.io/official_releases/QtForPython/pyside2/
×