What is the RI_NULL Renderman version for DAZ Script?

A call to Display in Renderman has the following structure: 

RiDisplay("name.png"," png.dpy","rgb", ["token"], ["parameter"]);

where ["token"] and ["parameter"] are a list of parameters associated to the display " png.dpy"

The implementation in DazScript is:

Renderer.riDisplay( ".../name.png", " .../display/png.dpy","rgb",["token"], ["parameter"]);

But when there are no parameters Renderman uses the variable RI_NULL to replace the parameters list

RiDisplay("name.png"," png.dpy","rgb",RI_NULL);

In DAZscript code samples there is only the example including parameters. What is the equivalent of RI_NULL in DAZ Script?
an expression like RiDisplay("name.png"," png.dpy","rgb"​)  leads to an error during execution parameters or null are mandatory.

I already read the DzScriptedRenderer page and I don’t get it.

 

Comments

  • jag11jag11 Posts: 885
    edited March 2022

    Try RiDisplay("name.png"," png.dpy","rgb"​, [ "" ], [ "" ])

    Saludos.

    Post edited by jag11 on
  • almahiedraalmahiedra Posts: 1,351

    jag11 said:

    Try RiDisplay("name.png"," png.dpy","rgb"​, [ "" ], [ "" ])

    Saludos.

    I Will try it.

    ¡Gracias! 

  • almahiedraalmahiedra Posts: 1,351

    It didn't works, I get an error. But using the default state of the display did the job:

    var atTokens = ["string compression"];

    var apParams = ["lzw"];

    Renderer.riDisplay("name.png"," png.dpy","rgb", atTokens , apParams);

Sign In or Register to comment.