houdiniAsset doesn't work with python sometime

   3848   2   1
User Avatar
Member
23 posts
Joined: 6月 2010
Offline
Hello,

I am wondering why mel works but python doesn't work.
I mean this works - houdiniAsset -loadAsset “foo.otl” “Object/your_obj_asset”

But this doesn't work sometime -
import maya.cmds as cmds
cmds.houdiniAsset(loadAsset

I'm using maya 2015 and houdini H13.(sorry don't remeber exact build) at work.
I tested with really simple OTL,
Put sphere and converted to volume using fluid source sop.
Also tested with open vdb from polygon & isooffset. but same result.

And using python to load OTL in maya never finish. just keep initializing forever.

If there is any update or I'm missing something,
I really wanna know how.

Thanks
User Avatar
Member
1799 posts
Joined: 10月 2010
Offline
do check what version of Houdini you are on. In a recent build, there was a fix to a deadlock in the python GIL where maya python and houdini python ran in the same thread. I am on 13.0.582 and using python works fine (but several versions before that, I had to use mel)
-G
User Avatar
Member
23 posts
Joined: 6月 2010
Offline
Thank you for the info.
We r using older version.
So we r gonna do it with mel.

Thanks again
  • Quick Links