AttributeError: Module 'omni.replicator.core.scripts.create' has no attribute 'projection_material'

I am trying to reproduce the tutorial of Defect Detection Model: Playlist | SERIES - Replicator 1.10 Workflow Tutorial | NVIDIA On-Demand

It uses the kit-extension-sample-defectsgen found on: GitHub - NVIDIA-Omniverse/kit-extension-sample-defectsgen: Reference Extension to apply defects for synthetic data generation

I follow all the steps but when I recreate the graph and then clic on preview nothing shows up. In the console I observe 4 logs:

2024-06-12 18:52:57 [Warning] [omni.example.defects.utils] No valid prim at path given: /Replicator
2024-06-12 18:52:57 [Warning] [omni.replicator.core.scripts.utils.utils] module ‘omni.replicator.core.scripts.create’ has no attribute ‘projection_material’
2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:translate is overridden in a stronger layer (Root Layer).
2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:scale is overridden in a stronger layer (Root Layer).
2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:rotateXYZ is overridden in a stronger layer (Root Layer).

While if I try to run for 1 time to generate an output image I see in the console:

2024-06-12 18:53:13 [Warning] [omni.example.defects.utils] No valid prim at path given: /World/Looks/ProjectPBRMaterial
2024-06-12 18:53:13 [Warning] [omni.example.defects.utils] No valid prim at path given: /World/Body_Panels/Good/Mesh_704/Projection
2024-06-12 18:53:14 [Warning] [omni.replicator.core.scripts.utils.utils] module ‘omni.replicator.core.scripts.create’ has no attribute ‘projection_material’
2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:translate is overridden in a stronger layer (Root Layer).
2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:scale is overridden in a stronger layer (Root Layer).
2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:rotateXYZ is overridden in a stronger layer (Root Layer).

Setup:

  • Windows 11
  • Ryzen 7 7000X
  • RTX 4070 12GB VRAM
  • Code version: 2022.3.3

Full console log:
kit_20240612_205043.log (1.1 MB)

If you need anything else please let me know!

Seems like there is a bug or at least some version problems:

I would say the error originates there: exts\omni.example.defects\omni\example\defects\replicator_defect.py

but create does have an attribute called projection_material.

I’ll keep this updated if I found anything else about the possible error origin.
Thanks!

You’ll need Replicator 1.10.10 at minimum. Looks like you’re using Code 2022? Try grabbing the latest Isaacsim and testing it out.

It worked perfectly! Thank you very much