Isotropix Forums

Command Port - ix.render_image hang

Clarisse Scripting related topics

Command Port - ix.render_image hang

Unread postby aauty » Tue Dec 08, 2020 10:17 pm

I am trying to render using the Command Port, and am getting a local session hand when using ix.render_image from the helpers module.

I was assuming this might be caused by the while loop in the helper module, so I attempted to use a multi-line string as seen below. I am using formatting to make sure the string is correct. The command is successfully sent over the port, but the Clarisse session will hang.

Code: Select all
indent = "    "
command = "{}\n{}{}\n{}\n{}{}\n{}".format(
"if cimg.get_module().is_image_dirty(4):",
"cimg.get_module().compute_image(4, 4)",
"while cimg.get_module().is_image_dirty(4):",

I can use the Render Manager GUI to render the image in the open session.
Is it possible to render an Image type through the Command Port?

Posts: 5
Joined: Fri Jan 25, 2013 11:33 pm

Re: Command Port - ix.render_image hang

Unread postby anemoff » Fri Dec 11, 2020 6:43 pm


I haven't yet reproduced your issue but something seems wrong.
In theory, you should be able to do the following in CNode Interactive:

py code

import clarisse_net as cn
bridge = cn.ClarisseNet()'img = ix.render_image("project://scene/image")')
ix.save_exr32(img, "path/to/output_file")

Instead of running a long string, have you tried running a python file? Like in the tutorial:

py code'execfile("")')

I'll keep you posted.

Anthony Nemoff
R&D Engineer
User avatar
Posts: 362
Joined: Wed Jan 13, 2016 10:10 am

Return to Scripting