I got the following error message when trying the use randonmizer
Empty typeName for </World/RubixCube/Cubies_11/RedStickers_Mat.xformOpOrder>
The script is as follow
import omni.replicator.core as rep
with rep.new_layer():
def randomPose(prim:str, positionFrom: tuple, positionTo: tuple, rotationFrom: tuple, rotationTo: tuple, scaleFrom: float, scaleTo: float):
can = rep.get.prims(path_pattern=prim)
with can:
rep.modify.pose(
position=rep.distribution.uniform(positionFrom, positionTo),
rotation=rep.distribution.uniform(rotationFrom, rotationTo),
scale=rep.distribution.uniform(scaleFrom, scaleTo),
)
return can.node
rep.randomizer.register(randomPose)
with rep.trigger.on_frame(num_frames=3):
rep.randomizer.randomPose('/World/AlarmClock_Retro', (-80, -40, 40), (70, 25, 40), (-90, 0, -180), (-90, 0, 180), 0.8, 1.2)
error message
/Replicator/SDGPipeline/OgnWritePrimAttribute_15: OmniGraph Error: WritePrimAttribute Error:
Error in 'pxrInternal_v0_20__pxrReserved__::UsdStage::_SetValueImpl' at line 6028 in file /buildAgent/work/ca6c508eae419cf8/USD/pxr/usd/usd/stage.cpp : 'Empty typeName for </World/RubixCube/Cubies_11/RedStickers_Mat.xformOpOrder>'