jwson3
January 9, 2023, 8:23am
1
I’m testing the replicator, but following warning pops up when creating a simple 3D shape.
in script editor
import omni.replicator.core as rep
with rep.new_layer():
rep.create.cone(count=100, position=rep.distribution.uniform((-100, -100, -100), (100, 100, 100))
pop up warning
Overridden in multiple layers, see log for details.
in terminal
[Warning] [omni.kit.widget.layers.layer_model]/ Replicator/Cone_Xform_99.xformOp: traslate is overridden in a stronger layer (Root Layer)
What is the cause and what needs to be solved and where I can see log?
ahaidu
January 10, 2023, 4:31pm
3
Hi there,
the warning is thrown because the cones are spawned in a separate anonymous layer. It is however expected. Having the changes done in a separate layer makes sure you do not accidentally change anything in the root layer.
You can also spawn the cones in the root layer by omitting with rep.new_layer()
import omni.replicator.core as rep
rep.create.cone(count=100, position=rep.distribution.uniform((-100, -100, -100), (100, 100, 100)))
Cheers,
Andrei
system
Closed
January 26, 2023, 12:49am
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.