Get a TOP attribute expand in a parameter

   1194   0   0
User Avatar
Member
948 posts
Joined: April 2008
Offline
I have a string attribute that is created inside TOPs as:

my_path="$HIP/geo/my_geo.$F4.bgeo.sc"

If I reference it in any file output parameter as `@my_path` I get exactly:

$HIP/geo/my_geo.$F4.bgeo.sc

It reads like a pure string I need the variables "$HIP" and "$F4" expand at cook time to have the correct path I've tried to use the hou.expandString() expression but I couldn't make it work, I hope I am making sense.
What I am missing?


Thanks.
Edited by mzigaib - Jan. 25, 2021 23:50:30
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links