Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Search the Community: Showing results for tags 'callback'.



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 6 results

  1. There are various event handlers you can use with HDA's (like onCreated, onInputChanged etc.) but I can't seem to find one that can be used as a callback for when the output connection of the HDA changes.. Basically i'm trying to create a custom version of the gas disturbance, part of which has the option to visualise the block size of the disturbance (just with coloured points on a grid). So I was thinking I would use an event handler on the HDA to know when it was connected and then in python traverse down the children to find the solver then traverse back up to find the smoke object so I can get the size and center to position the grid correctly. Is this possible? Is this a stupid idea?
  2. Heya peoples, I'm going round in circles on this one and it might just be down to my poor understanding of python and/or houdini. I've managed to get 90% of what I want for this tool complete but the final piece evades me. I've got a python tempfile.TemporaryFile being created when 456.py is triggered - it works perfectly - i.e. created upon opening a hip and deleted once the hip is closed I think what I want to do is trigger the 456.py from within a shelf tool (which is a custom saver script) I mean this is essentially the age-old quest for an "onSave" callback but sadly I have no understanding of C++ or the HDK so this solution is totally lost on me. Any pointers appreciated Cheers
  3. Hi guys. I want to create an asset for copystamping which will allow to connect or disconnect SOP inputs. Would be nice if asset allow to use different input numbers of instance at a time (connect/disconnect necessary objects) and switch between instances. I can manually create a CopyStamping asset if I have a static number of inputs and if I know a number of input objects which switch operator will use (basic copystamping technic). I've dug out some info and looks like it's best way to create the asset with a callback scripts. But I'm not familiar with callback scripts and python enough. May be some body can help me with that or have a links for similar solution. Thank you.
  4. I know basic python scripting in houdini so this question is easy one. I have a shelf tool, when clicked runs a python code. I want that tool to ask for a number when clicked and use it in the script. basically, I want to select a node and click that shelf tool to ask for a number, when given that code should copy and paste (duplicate) that node the number of times which is entered. i know i will have to use copyNodeTo function in python, just want to know about getting user input. Thanks!
  5. Please forgive the x-post from the sideFX forums, maybe the ODForce scripting gurus can help me out - Im having trouble using python in an HDA that I'm sending over to Maya. I've attached a simple example HDA to set parameters using a callback script (button). Works like a charm in Houdini, but on the Maya side I need to hit my 'Execute' button, reset simulation, reload asset, sync asset until eventually the field updates to the correct value. Sometimes it works, other times it bugs out, and other times still it seems like it works but has a refresh issue. Any thoughts? Maya 2014 Houdini Engine 14.0.430 Callback Script: hou.pwd().hdaModule().setInitFrame() Script: import hou def setInitFrame(): me = hou.pwd() me.setParms({"initFrame": 736}) mrhoneSetparmExample.hda
  6. I want to have possibility to list point or primitive attributes in my menu according to type user will pick. Lets say that my operator default state for attribute type is Point attrbute which I got covered by PRM_Template(PRM_STRING, 1, &attributeParm_Name, PRMzeroDefaults, &SOP_Mantragora::pointAttribMenu); and user switched type to Primitive. Should I update the menu with PRM_Template::setChoiceListPtr(&SOP_Mantragora::primAttribMenu) ? If so, where I should do this? Putting it in cook() method didn't worked. EDIT: The same case is for groups. There is SOP_Mantragora::groupMenu But it lists all group types at once. And I want to have listed only those specified by user and switch between SOP_Mantragora::pointGroupMenu and SOP_Mantragora::primGroupMenu Thanks