Jump to content
MikeRhone

Cannot set parms via callback in Houdini Engine (Maya), works in Houdi

Recommended Posts

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×