RiLightSource() from point

Help
hallb4
2007-03-15
2013-03-24
  • hallb4
    hallb4
    2007-03-15

    I am trying to get this in the rib file:

      LightSource "distantlight" 50 "intensity" [1] "from" 5 0 -20 "to" 0 0 0

    But if I use RiLightSource("distantlight", intensity = 1, from = [5,0,-20], to = [0,0,0])
    from is a python keyword, and the program stops at that call.  Does anyone know any other way to get this output?

     
    • Matthias Baas
      Matthias Baas
      2007-03-15

      RiLightSource("distantlight", "from", [5,0,-20], to=[0,0,0])

      See the section "Parameter lists" on this page:
      http://cgkit.sourceforge.net/doc2/node25.html

      - Matthias -

       
    • hallb4
      hallb4
      2007-03-16

      Thanks, I thought I tried that but must not have.