Search - User list
Full Version: unity_input_mesh_name
Root » Houdini Engine for Unity » unity_input_mesh_name
innocent
Does someone can explain to me how to use
unity_input_mesh_name
Inside my hda, I'm using an Operator Path to ‘load’ a mesh from Unity. I need to find a way to access his name from a python script.

Thanks for your help.
innocent
With the new sync Houdini feature, I can see my mesh from unity and show the primitive attribute name inside Houdini.

Inside the hda, I have an att. wrangle on prim
s@unity_input_mesh_name
after the object merge. I guess Houdini fill it when I'm on Unity.

but I don't know how to access it on my python script.
seelan
There are a bunch of different ways to access an attribute through python / hython:

https://www.sidefx.com/docs/houdini/hom/hou/Attrib.html [www.sidefx.com]

Off the top of my head, get the geometry using something like the following: hou.Node(“/obj/geo/grid1”).geometry().findGlobalAttrib(“unity_input_mesh_name”)
Then check out the documentation on it: https://www.sidefx.com/docs/houdini/hom/hou/Geometry.html [www.sidefx.com]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB