switch SOP based in if file is loaded (my wrong script)

   853   0   1
User Avatar
Member
658 posts
Joined: 8月 2013
Offline
Hi all.

I am trying to build a LOP HDA to bring in render, proxie and guide usd files. If the user loads a usd file into the guide option in the HDA I am trying to get the switch to move to input 1 rather than 0. The switch remains stuck though. I know something is wrong with my expression, but I am stuck on what. Any help would be most appreciated!

Best

Mark

EDIT: I have it working. If anyone else is trying to do this sort of thing the expression should be:

abs(1-strmatch("",chs("../guide")))
Edited by Mark Wallman - 2021年8月27日 09:17:08

Attachments:
usd_importer.hdanc (4.3 KB)
Capture.JPG (46.9 KB)
Capture2.JPG (41.7 KB)

  • Quick Links