Creating Randomized Perlin Texture

Hi
I would like to create randomized Perlin textures for randomizing the appearance of my objects of interest in my dataset.

Is there an easy way of creating randomized Perlin textures from within python/replicator code?
All I could find in the documentation was this page: Perlin Noise Texture — Omniverse Materials and Rendering documentation
Which I am not sure how to incorporate into a python scripting workflow.

Any help would be appreciated :)
Thanks
Thomas

You can do this with the standard Material Graph capabilities, some custom primvars and replicator.

  1. Make a material like in the image below
  2. Add Custom primvars of the type needed
  3. Create a script that can change the attribute primvars in a rep script. There’s an example here on our github repo

The relevant code to alter the primvars in the repo above is:

            rep.modify.attribute(
                "primvars:random_color",
                rep.distribution.uniform((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)),
                attribute_type="float3",
            )

Let me know if you run into any issues and I can help out further.