Jump to content

operator list in vex


Drughi

Recommended Posts

Hi,

I have a parameter on my wrangle (operator list) with a realtive path e.g. "../Geo_*" .

How to get an array of absolute pathes with all nodes matching ("obj/Geo_1", "obj/Geo_2", "obj/Geo_3", ...)

Edited by Drughi
Link to comment
Share on other sites

Your best bet would be to add an extra parameter (can be hidden) with Python expression which would expand that relative path for you and then in you can read this string back in vex.

 

" ".join([n.path() for n in hou.pwd().glob(hou.pwd().evalParm('relative'))])

 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...