I read the "Primitive matching patterns" in official documentation.
use some specific syntaxes like '*','?' is very convenient. but I found that I could only use in the 'Primitives' parameter.
I want to use such convenient syntax in other parameter like the Reference Primitive Path in the Reference node, but it fail.
I wonder how I could achieve it.
thanks for help.
a question of the chapter "Primitive matching patterns"
1696 2 0-
- Cowol
- Member
- 3 posts
- Joined: Jan. 2023
- Offline
-
- Tim Crowson
- Member
- 250 posts
- Joined: Oct. 2014
- Offline
Some parms/attributes that take paths can only accept one single path. In this case a pattern syntax does not make sense, since the parm can only accept the path to one single object (perhaps a single prim, or a single node path), and pattern syntaxes are designed to capture multiple results.
- Tim Crowson
Technical/CG Supervisor
Technical/CG Supervisor
-
- Cowol
- Member
- 3 posts
- Joined: Jan. 2023
- Offline
Tim Crowsonthank you very much!
Some parms/attributes that take paths can only accept one single path. In this case a pattern syntax does not make sense, since the parm can only accept the path to one single object (perhaps a single prim, or a single node path), and pattern syntaxes are designed to capture multiple results.
I get your point that we can use pattern syntaxes to capture multiple prims instead of that I copy multiple prim's paths one by one.
but I actually want to know that what pattern syntax I could use in other parms/attributes except the Primitives, because I can only find the "Primitive matching patterns" document. is there more articles/document I can read?
Besides, I wonder that what's the difference between "pattern syntax" and "function expression". I still think they are the same.
thanks!
-
- Quick Links

