Hiya,
I'm trying to develop an asset to be used in Maya with the Houdini engine.
I did a simple test where I compute the velocity (from an alembic file) with a trail sop and pass the fitted length of the result
to the Cd attribute of my input geo. It looks like I cannot get any velocity with the trail sop (under Maya, works perfectly in Houdini of course).
Is there something that I set form the Maya side ? I've very little experience with it
Thanks, cheers!
Trail sop in houdini engine
4149 2 2- carlov
- Member
- 5 posts
- Joined: June 2009
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
You're hitting a limitation of Houdini Engine. The trail SOP requires input geometries from different time samples. This is currently not possible through Houdini Engine. When nodes cook inside Houdini Engine, they only have access to input parameters and geometries at a single time. So any nodes that involve getting data *outside the asset* at a different time won't work.
In your case, since “Compute Velocity” only requires geometries from previous frames, you might be able to workaround the limitation by using the Cache SOP. The idea is to have the Cache SOP store the geometries from the previous frames. So that when subsequent nodes require a earlier frame, the previous frames are available inside the Cache SOP, and the node doesn't need to get geometries from the Maya side.
See the attached asset on how to use the Cache SOP to workaround this limitation. This workaround isn't great though, because whenever your input geometry changes you'd have to clear the cache on the Cache SOP, otherwise the rest of the asset won't see the updated input geometry.
In your case, since “Compute Velocity” only requires geometries from previous frames, you might be able to workaround the limitation by using the Cache SOP. The idea is to have the Cache SOP store the geometries from the previous frames. So that when subsequent nodes require a earlier frame, the previous frames are available inside the Cache SOP, and the node doesn't need to get geometries from the Maya side.
See the attached asset on how to use the Cache SOP to workaround this limitation. This workaround isn't great though, because whenever your input geometry changes you'd have to clear the cache on the Cache SOP, otherwise the rest of the asset won't see the updated input geometry.
Andrew / アンドリュー
- carlov
- Member
- 5 posts
- Joined: June 2009
- Offline
Hi thanks Andrew. That explains it.
I've encapsulated the alembic file into the otl as this post suggests
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=41689 [sidefx.com]
and it looks like this approach it's working.
I'll try the Cache sop approach too..
Cheers!
I've encapsulated the alembic file into the otl as this post suggests
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=41689 [sidefx.com]
and it looks like this approach it's working.
I'll try the Cache sop approach too..
Cheers!
-
- Quick Links