Jump to content

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


MikeRhone

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

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...