Python resolve asset path

   382   1   1
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Hi guys,

I have a python script returning an asset path, but it's the relative path. Is there a way to resolve it? Sorry, I'm not finding docs to read about that
User Avatar
Member
59 posts
Joined: Nov. 2017
Offline
Nevermind, some autocomplete digging did it:

>>> mynode = hou.node('/obj/lopnet1/asset')
>>> stage = mynode.stage()
>>> attrib = stage.GetAttributeAtPath('/tribal1/skin.skeleton_fbx')
>>> path = attrib.Get(0)
>>> resolvedpath = path.resolvedPath
  • Quick Links