using ls to do selections with wildcards issue

using ls to do selections with wildcards issue

mostly_human
Advocate Advocate
1,508 Views
1 Reply
Message 1 of 2

using ls to do selections with wildcards issue

mostly_human
Advocate
Advocate

I have a lot of nodes whos names end in _TransBind

 

I am using this command:  ls "*TransBind*";    with the intention of having it select any nodes that have "TransBind" in the name.

 

And then in the node editor hitting  "Add selected nodes to graph" but it ends up just adding a single node called "wristL_BindPlusInvTrans" which of course doesn't even include "TransBind" in the name.

 

What am I doing wrong? Thank you for any help!

0 Likes
Accepted solutions (1)
1,509 Views
1 Reply
Reply (1)
Message 2 of 2

mcw0
Advisor
Advisor
Accepted solution

Maybe you're not giving all the details.  But if all you did was run the "ls" command without the "select" command, then the node editor would only add what is currently selected.  Try the following:

 

select -r `ls "*TransBind*"`;