a question of the chapter "Primitive matching patterns"

   1696   2   0
User Avatar
Member
3 posts
Joined: Jan. 2023
Offline
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.
User Avatar
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
User Avatar
Member
3 posts
Joined: Jan. 2023
Offline
Tim Crowson
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.
thank you very much!

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