So for my scene I have bottles with classes so that they can move around the scene, and the caps have classes while remaining under the bottle class(don’t want the caps coming off).
I’m wondering if there’s something I can do to make Omniverse not output the annotator data for the bottles while leaving the caps intact.
Here’s a snippet of the code
with rep.trigger.on_frame(num_frames=700, rt_subframes=32):
rep.randomizer.BG_Shuffle()
rep.randomizer.CD_Shuffle()
rep.randomizer.C_Shuffle()
rep.randomizer.CZ_Shuffle()
rep.randomizer.D_Shuffle()
rep.randomizer.DC_Shuffle()
rep.randomizer.DDP_Shuffle()
rep.randomizer.DP_Shuffle()
rep.randomizer.F_Shuffle()
rep.randomizer.MM_Shuffle()
rep.randomizer.PC_Shuffle()
rep.randomizer.PD_Shuffle()
rep.randomizer.RG_Shuffle()
rep.randomizer.S_Shuffle()
rep.randomizer.lightSwitch()
with camera:
rep.modify.pose(position=rep.distribution.sequence(choices))
writer = rep.WriterRegistry.get("BasicWriter")
writer.initialize(
output_dir="BottleVend1-18-2023",
rgb=True,
bounding_box_2d_tight=True,
distance_to_camera=True
)
writer.attach([render_product])