Jump to content
Sign in to follow this  

Weird behavior when scripting a second button

Recommended Posts

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:


The second one has the parameter:


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? :(



Share this post

Link to post
Share on other sites

Maybe you forgot to change the Callback script language to Python for the second button? This has got me a few times as well. Is it still set to hScript?

Edited by Atom

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
Sign in to follow this