Replicator headless example: ... is overridden in a stronger layer (Root Layer)

I am running the example described here:
https://docs.omniverse.nvidia.com/prod_extensions/prod_extensions/ext_replicator/headless_example.html#modifying-hello-world-script-for-running-headlessly

I am getting a lot of messages like

2023-04-03 14:30:12  [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Torus_Xform.xformOp:translate is overridden in a stronger layer (Root Layer).

It already happens after only part of the code is executed:
import omni.replicator.core as rep

with rep.new_layer():

    camera = rep.create.camera(position=(10, 0, 0))

-> 2023-04-04 07:07:18  [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Camera_Xform.xformOp:translate is overridden in a stronger layer (Root Layer).

I assume this is no big issue, because the example works fine, but I would like to understand why this happens. It looks like the camera xform is created in the replicator sublayer, and there is an “over” setting the translation in the root layer.

In my opinion we should not see this kind of warnings when we create objects using the replicator.

Thanks for any comment
Bruno

1 Like

Hello @bruno.vetter,

Apologies for the long delay in getting back to you. You are correct on both counts - the warning can largely be ignored, and indeed this is not something that should be raised when using Replicator. It comes from the fact that certain operations can often happen asynchronously over more than one frame. In such cases, the node execution occurs after the authoring layer has been switch back to “Root”. We are working on a better solution. Thank you!

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