Jump to content
Drughi

operator list in vex

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×