FindAllMatches Method

I was working with the findAllMaches() method and noticed it works as planned when using an exact name.

KK = self.Lv_1.findAllMatches("**/ter_structV");
KK.hide();
print "All Matches: "+str(KK[0])

Is there a way to find a node path by referencing part of the string name (instead of whole name)?

like:

KK = self.Lv_1.findAllMatches("**/ter_");
KK.hide();
print "All Matches: "+str(KK[0])

Of course that code would not work (tried it already).

I wonder… if I were to use a “*” at the end of the “_” … Probably not.

Ok… I tried the “*” and it worked. :smiley:

I should have known.