Jump to content

Search the Community

Showing results for tags 'button'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 3 results

  1. How do I create a button for the undo command?

    Hello Everyone. How do I create a button for the undo command? Using a Python Script and hou.undos.performUndo() Note: On Python Source Editor the code work, but on Script Shelf not. error msg <Cannot undo within an undo group> How use hou.UndosGroup https://www.sidefx.com/docs/houdini/hom/hou/undos.html VideoCase https://drive.google.com/file/d/1-m38aiA50QPuSs75Pe9kiVOs7nMbg3XY/view
  2. Hello dear community, I am having trouble scripting a second button on my hda. Both functions for the two buttons have been defined in the OnCreate callback in the scripts tab. While the first one is working fine, clicking the second one throws an error, saying the function or attribute defined in the parameter settings is not available. The callback-parameter for the first button has the value: kwargs["node"].hdaModule().OnCreateCurveButtonPressed() The second one has the parameter: kwargs["node"].hdaModule().OnCreateSectorsButtonPressed() And this is the error message that the console throws: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.607/houdini/python2.7libs\hou.py", line 23413, in __getattr__ def _SIDEEF_getattr__(*args): return _hou.HDAModule___getattr__(*args) AttributeError: 'module' object has no attribute 'OnCreateSectorsButtonPressed' Does anybody know whats causing this?
  3. I am writing a node that will output some data that I am calculating as a mapped PNG file. The file takes a minute to execute, and it will only be getting worse as I increase its complexity, so I am wanting to set up the node so that I can trigger the code when I want it to run. I tried calling the function in the callback on the button, which is how I would expect it to work, but it doesn't apparently. I have looked around and found several people talking about hitting buttons automatically in the script, which is really not what I am looking for. So what am I missing in using a button in a UI?
×