Hey guys,
is it possible to specify which variant to use in the YAML file?
I have a USD file with 2 variant set in and would like to wedge both of them
Thanks!
Hey guys,
is it possible to specify which variant to use in the YAML file?
I have a USD file with 2 variant set in and would like to wedge both of them
Thanks!
I do it like this in the trigger for two variantsets (person and pallet_jack)
# create and scatter palletjackscooter
palletjackscooter_instance:
create.from_usd:
count: 20
semantics: [[class, preson_scooter_jack]]
usd: omniverse://localhost/Library/Assets/person_pallet_scooter_payload.usd
with.palletjackscooter_instance:
modify.pose:
rotation:
distribution.uniform:
lower: [0, 0, -180]
upper: [0, 0, 180]
modify.variant:
name: pallet_jack
value:
distribution.choice:
choices:
- standard
- heavy
- low
randomizer.scatter_2d:
seed: 21
surface_prims: floor
check_for_collisions: True
palletjackscooter_instance_person:
with.palletjackscooter_instance:
modify.variant:
name: person
value:
distribution.choice:
choices:
- business_m_bb_0001
- business_m_bb_0003
- casual_f_bb_0001
- casual_f_bb_0002
- casual_m_bb_0002
- uniform_f_0002
- uniform_f_0003
- uniform_f_0004
- uniform_f_0015
- uniform_f_0016
- uniform_f_0017
- uniform_m_0004
- uniform_m_0005
- uniform_m_0006
- uniform_m_0021
- uniform_m_0022
- uniform_m_0023
- uniform_m_0024
- uniform_m_0025
- uniform_m_0026
- uniform_m_0027
The trick is to use a new named group (palletjackscooter_instance_person) to encapsulate the second modify.variant
fab @Turowicz !
thank you trying it out !