code: def setup_scene(
      renderer,
      obj_diameter,
      lookat=None,
      camTransform=None,
      has_camera=False,
  ):
      """Sets up a scene with camera and light."""
      # if has_camera == False:
      # renderView = renderer.classes.RenderView()
      # renderView.fov = math.pi/2
      # #x right
      # #y up
      # # -z forward
  
      # cam_z = 0.8/2/math.tan(renderView.fov/2)
      # #cam_z = abs(0.8*math.tan(renderView.fov/2))
      # camPos = vray.Vector(0.0,0.5, cam_z)
      # camRot = camUtils.camera_look_at(camPos,vray.Vector(0,0,0),vray.Vector(0,0,1))
      # #print(camRot)
      # #exit()
      # camTransform = make_transform(camRot.x,camRot.y,0.0, 1, camPos)
      # #camTransform = make_transform(-math.pi/8,math.pi/8,0.0, 1, camPos)
      # renderView.transform = camTransform#camera_look_at(lookat/1000000)
  
      dome = renderer.classes.LightDome()
      dome.intensity = 0.5
  
      # place a light over and slightly behind the camera
  
      return None
  
file_path: model-viewer/packages/render-fidelity-tools/test/renderers/vray/vray_gltf/testUtils.py
imports: import vray
  import math
  from .Gltf_Parser import cameraUtils
label_desc: Use image node_id 6 for calling a global function with example usage: setup_scene(renderer, obj_diameter, lookat, camTransform, has_camera) and returns: None