Is creating Digital Assets Broken?

   2121   5   2
User Avatar
Member
30 posts
Joined: Sept. 2017
Offline
I assume I am doing something wrong, but I can't create a digital asset in the newer versions of Houdini. I have tried 18.5.583 & 563. Both are Python 3.
For example, I create a geometry node, inside I create a sphere and color node. I select both and create a subnet. I then right click the subnet, but instead of getting a menu, I get an error:
Error while evaluating menu item filter expression
Traceback (most recent call last):
File "<stdin>", line 5, in expression
NameError: name 'reload' is not defined

Anyone else having this issue?
Suggestions?

Brad Carvey
User Avatar
Member
1919 posts
Joined: Nov. 2006
Offline
My guess is there is some sort of custom OPmenu.xml stuff going on somewhere. Given it's happening across versions the not terribly helpful traceback indicates that something in menu generation code is failing due to not being Python 3 compatible (reload() no longer exists).
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
219 posts
Joined: Oct. 2015
Online
Don't know if that help but here with the 18.5.672 (Python 3) all is fine when I try to recreate your step.
To use reload() you may have now "import importlib" module, then use it with "importlib.reload()" line for example.
User Avatar
Member
30 posts
Joined: Sept. 2017
Offline
I send the error message to the Houdini console and now the right click menus shows up, so I can create a digital asset. If I just ignore the error everything is back to normal.

Brad Carvey
User Avatar
Member
7927 posts
Joined: Sept. 2011
Offline
graham
due to not being Python 3 compatible (reload() no longer exists).

Seriously? Throw it in the trash.

Python 2 forever
User Avatar
Member
219 posts
Joined: Oct. 2015
Online
jsmack
graham
due to not being Python 3 compatible (reload() no longer exists).

Seriously? Throw it in the trash.

Python 2 forever
It's just need now to be call like "importlib.reload" with the importlib module.
more info [stackoverflow.com]
  • Quick Links