Alex Majewski

alexmajewski

About Me

EXPERTISE
Developer
INDUSTRY
Advertising / Motion Graphics

Connect

LOCATION
Poznan, Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Reading output file path from /rendersettings using Python Sept. 7, 2024, 6:43 a.m.

@Heileif That worked! Amazing, thanks a lot.

Get Render Region bounds and position using Python? Sept. 6, 2024, 10:38 a.m.

Setting a render region for the final disk render in Solaris is much tricker than in the /obj workflow.

Is it possible to access render region information (Render Region Tool) from the viewport using Python? I could then use it to set the "Data Window NDC" parameter in render settings in Solaris.

Reading output file path from /rendersettings using Python Sept. 6, 2024, 9:43 a.m.

I'm trying to get the final image render path, like this:

Redshift:
hou.node("/stage/somenode").stage().GetObjectAtPath("/Render/rendersettings.redshift:global:RS_outputFileName").Get()

Karma:
hou.node("/stage/somenode").stage().GetObjectAtPath("/Render/Products/renderproduct.productName").Get()

And as long as there isn't an $F4 in the path (for example, `$HIP/render.exr`), it will work and return an expanded path.
But if there is an $F4 in there(`$HIP/render.$F4.exr`), it returns `None`.

Is this normal? What can I try to make it work? Also, would it be possible to get this path unexpanded?

Tested on 20.0.590 and 20.5.312