Skip to content

Can't see a way to set the dome light position randomly #169

@ArghyaChatterjee

Description

@ArghyaChatterjee

Hello,

I am trying to follow your NVISII API to set different things inside the DOPE (Deep Object Pose Estimation) training pipeline. Here is the pipeline script. Now I want to set the dome light position randomly but when I try to do that in this way:

 # Enable the dome light with the selected position
    light_position = random.choice(dome_light_positions)
    visii.enable_dome_light()
    visii.set_dome_light_position(light_position)

    # Randomly change the position of the dome light for each sample
    light_position = visii.vec3(
         random.uniform(0, 2),
         random.uniform(0, 2),
         random.uniform(0, 2)
     )

    visii.set_dome_light_position(light_position)

The python compiler tells me that there is no api like set_dome_light_position. Now how can I set the light position randomly ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions