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):",
indent,
"cimg.get_module().compute_image(4, 4)",
"while cimg.get_module().is_image_dirty(4):",
indent,
"ix.application.check_for_events()",
"cimg.get_module().get_image(4)",
)
bridge.run(command)
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?
Cheers,
Aaron.