OTL PythonModule Error

   1796   2   0
User Avatar
Member
14 posts
Joined: March 2014
Offline
Hi,

I have a weird issue I can't solve.

I made an asset, with a python script in the otl (pythonmodule), containing some functions, called by buttons.

Everythings worked fine.

But when I drop a fresh node (tab > digital asset > myOtl), and I press a button, I get “AttributeError: ‘module’ object has no attribute ‘StartApp’ ” (StartApp being a function defined in the pythonModule).

But when I allow the editing of content, and click on “apply” once in the type properties window, everythings work fine. As if when I create my node, houdini isn't evaluating/reading the script inside the otl.

Does anyone have an idea what's going on? It's driving me crazy ><

Thanks in advance,


Ryuji
User Avatar
Member
14 posts
Joined: March 2014
Offline
No one?
User Avatar
Member
678 posts
Joined: July 2005
Offline
If we can't see the code, how we can debug it? You need person which had similar problem recently. I myself don't remember when was the last time I had problem when accessing Python module. Probably some freshmen problems. Upload asset if you can, or at least stripped enough version so we could test.
  • Quick Links