検索 - User list
Full Version: Primitive matching patterns issue
Root » Solaris and Karma » Primitive matching patterns issue
noti
Hi all, i saw the help says:
“In a path pattern, * matches any number of characters (in a name), ** matches any number of levels of hierarchy, ”,
so i tried the expression like
/**/B* - /**/Book_2
and
/**/* - /**/Book_2
in a prune node's primitive pattern. The first expression give me desired results(match all books except Book_2), but why second expression seems like it matches all prim in usd.
Can someone point out?
Thanks!
tamte
it's probably because /**/* matches also the parent primitive of all of the books
so no matter that one of the child books is set to active, if the parent prim is not active none of the children are

you can use Exclude Primitives multiparm to exclude your Book_2 instead of subtracting it in Target Primitives pattern
Tim Crowson
Doesn't /** basically mean “everything” recursively? So /**/* is like saying “search for anything and find anything immediately inside it” which will give you literally everything in the scenegraph.
tamte
Tim Crowson
Doesn't /** basically mean “everything” recursively? So /**/* is like saying “search for anything and find anything immediately inside it” which will give you literally everything in the scenegraph.

I think the expectation was that - /**/Book_2part would remove that one book from everything
but as I mentioned to my understanding, it will be pruned just because it's parent still stays matched
but Exlude Primitives should work
noti
tamte
it's probably because /**/* matches also the parent primitive of all of the books
so no matter that one of the child books is set to active, if the parent prim is not active none of the children are

you can use Exclude Primitives multiparm to exclude your Book_2 instead of subtracting it in Target Primitives pattern
Ok, thank you, i've got that. The parent override it's children. It's not cool >_<.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB