“cmd.ray” creates a ray-traced image of the current frame. This can take some time (up to several minutes, depending on image complexity).
cmd.ray(int width, int height, int antialias, float angle, float shift, int renderer, int quiet, int async)
def ray(width=0, height=0, antialias=-1, angle=0.0, shift=0.0, renderer=-1, quiet=1, async=0):