Primitive Matching Patterns Flashcards
(69 cards)
What is the purpose of the Primitives parameter in LOP nodes?
Selects which USD primitives the node applies to
How can you define a path pattern that matches any number of characters in a name?
*
What symbol matches any single character in a path pattern?
?
Fill in the blank: To match all children of /Kitchen, the pattern is _______.
/Kitchen/*
What does the syntax ** match in a path pattern?
Any number of levels of hierarchy
How do you match all primitives specified by a collection attribute?
/path_to_prim.collection:collection_name
What is the shortcut syntax to match any prims specified by the KeyLights collection on the /House/LivingRoom primitive?
%/House/LivingRoom/KeyLights
What are auto collections in USD primitive patterns?
A collection-like mechanism invoked using the collection syntax
What does the %abstract(auto_type) syntax do?
Matches all primitives that are abstract
Fill in the blank: To match all primitives that are not active, the pattern is _______.
%active:false
What does the %defined(bool) syntax match?
Primitives that are defined or not defined
What does the %children(primpattern, strict=bool) syntax do?
Matches all children of another primitive or group of primitives
True or False: The %closerthan(primpath, distance) syntax matches all primitives more than a certain distance from a primitive.
False
What is the function of the %commonroots(primpattern) auto collection?
Matches the most deeply nested primitive that contains all primitives in the supplied pattern
Fill in the blank: To match all primitives more than 10 units from /cameras/camera1, the pattern is _______.
%fartherthan:/cameras/camera1,10
What does the %foreach(primpattern, per_path_pattern) syntax do?
Matches all primitives that match the union of running the per_path_pattern for each primitive that matches the primary primpattern
What does the %instance(primpath=None) syntax do?
Matches all primitives that share an instance prototype with the supplied primitive
Fill in the blank: To keep a subset of primitives that match the supplied primpattern, the syntax is %keep(______).
primpattern, start=int, end=int, count=int, interval=int
What does the %geofrommat(primpattern, bindingpurpose) syntax match?
All primitives bound to a material
What is the default value for the count argument in the %keep(primpattern) syntax?
1
True or False: The %instanceproxy(bool) syntax matches all primitives that are instance proxies.
True
What does the %descendants(primpattern, strict=bool) syntax do?
Matches all descendants of another primitive or group of primitives
What do the optional t arguments in auto collections specify?
The time range over which the bounding box is calculated
What does the command %keeprandom do?
Keeps a subset of primitives that match the supplied primpattern in a random order, then removes until only the specified fraction remains.
The defaults value is 0.5 for fraction and 0.0 for seed.