How to use cnt(), rtrace() command under Pyradiance

Hi everyone,

I am not sure if I can ask some questions related to Pyradiance here. I followed the tutorial from the Pyradiance website (Quickstart - Pyradiance Docs) and it works. But for the Reference, there are some commands like cnt(), and retrace(), I use them in Python script, but it shows that they are not defined, the code is shown as follows. Can anyone tell me how to deal with this problem? Thanks in advance for your help.

import pyradiance as pr
scene = pr.Scene("ascene")
scene.add_material("materials.mat")
scene.add_surface("walls.rad")
scene.add_surface("floor.rad")
scene.add_surface("ceiling.rad")
scene.add_source("lights.rad")
aview = pr.View(position=(1, 1.5, 1), direction=(1, 0, 0))
scene.add_view(aview)
image = pr.render(scene, ambbounce=1)


cnt(2, 3)

Kind regards,

Hao

Hi @Hao , you will need to add pr. in front of your function calls as you did in others.

You can also ask question directly in pyradiance github / discussion.

Hi Taoning,

Thank you so much for your reply and help.

I will follow your advice.

Kind,

Hao