unity_input_mesh_name

   2642   2   0
User Avatar
Member
35 posts
Joined: Feb. 2017
Offline
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.
User Avatar
Member
35 posts
Joined: Feb. 2017
Offline
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.
User Avatar
Member
571 posts
Joined: May 2017
Offline
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]
Edited by seelan - July 16, 2020 17:19:17
  • Quick Links