Replicator YAML generation renders grids randomly

Happy to use your internal version @pcallender

This is very annoying. Literally every other generation is broken.

Is there a carb setting for this?

@Turowicz Its a kit command, which aren’t accessible in yaml.

Ordinarily the python would be:

import omni.kit.viewport
omni.kit.viewport.actions.actions.toggle_global_visibility(visible=False)

I’ll direct message you with some extra details that could help, but I think you’re using a container, if I recall, so a container update itself would be needed for a complete fix.

There is a wacky idea I had. You could load in a blank usd, that has an action script inside, with a script node that executes the above python once.

I can edit the container in the dockerfile, I just need to know which files :)

can I load a usd template via command line argument to the isaac.sh or should I just load a usd in the yaml and somehow call the action?

I shot you a DM for editing the extension directly.

For my wacky idea, I would use the yaml to load the usd. The usd would have something like this inside.

Totally untested, but this may also have other uses for workarounds where yaml needs to run some extra python setup.

The patch to the isaac script worked for me so I will not be trying the usd loading

Solution:

FROM nvcr.io/nvidia/isaac-sim:2023.1.1

# Install tools
RUN apt update && apt install git vim -y

# Remove ROS/2 Bridge
RUN sed -i 's/ros_bridge_extension = "omni.isaac.ros2_bridge"/ros_bridge_extension = ""/g' /isaac-sim/apps/omni.isaac.sim.base.kit

# Toggle Grid Off
RUN sed -i '17i import omni.kit.viewport' /isaac-sim/extscache/omni.replicator.replicator_yaml-2.0.4+lx64/omni/replicator/replicator_yaml/scripts/replicator_yaml_extension.py
RUN sed -i '100i \ \ \ \ \ \ \ \ omni.kit.viewport.actions.actions.toggle_global_visibility(visible=False)' /isaac-sim/extscache/omni.replicator.replicator_yaml-2.0.4+lx64/omni/replicator/replicator_yaml/scripts/replicator_yaml_extension.py

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.