syntax help in cri module

  • Prashant

    Prashant - 2008-03-28

    param = ["shaders","textures"]
    key = ["~/shaders:&","~/textures:&"]
    RiOption("searchpath", param, key)

    There is something wrong here.....???? How can we use lists here...??

    • Matthias Baas

      Matthias Baas - 2008-03-28

      Parameter names and values have to be paired (just like in C):

        RiOption("searchpath", "shaders", "~/shaders:&", "textures", "~/textures:&")

      You could also use a dictionary:

        paramlist = {"shaders":"~/shaders:&", "textures":"~/textures:&"}
        RiOption("searchpath", paramlist)

      See the section on parameter lists on this page:
      It applies to both, the ri and the cri module.

      - Matthias -


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks