Ranomizig stereo camera intrinsics and baseline

Hello!

We have had success generating synthetic stereo data for randomized camera positions with custom scene. But we are having trouble understanding how to randomize stereo camera intrinsic parameters and the baseline. We are using replicator with scripting running through Isaacsim headless.

isaac-sim.sh --no-window --/omni/replicator/script=./stereo_camera_simulator.py

We tried so far using replicator.distrbution.uniform to set the parameters while creating the camera:

f = rep.distribution.uniform(1000, 1500)
stereo_camera = rep.create.stereo_camera(position=(-15, 7.7, 6.84), look_at=object,
                                         stereo_baseline = 0.12,
                                         projection_type = "pinholeOpenCV",
                                         openCV_focal_x = f,
                                         openCV_focal_y = f,
                                         f_stop=0)

But it appears to randomize only when creating the camera, not on each trigger.

We tried also using replicator.modify.attribute:

with rep.trigger.on_frame(max_execs=30) as camera:
        with stereo_camera:
            f = rep.distribution.uniform(1000, 1500)
            rep.modify.attribute("openCVFx", [f, f])
            rep.modify.attribute("openCVFy", [f, f])

But we get this warning:

2026-08-03T07:16:31Z [11,636ms] [Warning] [omni.replicator.core.scripts.utils.utils] Base type
 <class 'omni.replicator.core.scripts.utils.utils.ReplicatorItem'> is not supported. 
Only elements of type str, bool, int and float are supported.

If we use numpy random number generation:

    with rep.trigger.on_frame(max_execs=30) as camera:
        with stereo_camera:
            f = np.random.uniform(1000, 1500)
            rep.modify.attribute("openCVFx", [f, f])
            rep.modify.attribute("openCVFy", [f, f])

The randomization also does not happen on each trigger. We get the same image for each trigger. Can you suggest correct way to achieve camera intrinsic and baseline parameter randomization on each trigger?

Thank you!