I struggle to read a value into the override resolution parm fields. Test the pythonexprf or pythonexprs on another parm field works, but on the specific fields in fails. Is there a way to get values from the stage itself or can i just link these parameters to another nodes parameters?
Cheers!
Get override resolution on render rop from the stage?
334 1 0-
- Tom Mangold
- Member
- 145 posts
- Joined: 11月 2017
- オフライン
-
- tamte
- Member
- 9761 posts
- Joined: 7月 2007
- オフライン
you need to be more specific than that
for me using python expression or hscript pythonexprf/pythonexprs wrappers work
if you are specifically talking about the 'override_res' attribute keep in mind that that is a string attribute expecting one of following values "", "scale", "specfic"
so either pure python expression or pythonexprs hscript returning either of those values will work, I prefer python expression directly rather than hacking it through Hscript wrapper since LOP python expressions are usually multiline and pythonexprs() needs a single line expression so you'd have to do a module for your functions
alternatively you can use any LOP that can modify/create properties like Edit Properties LOP, Attribute Wrangle LOP, Python Script LOP, ... to override 'resolution' property of desired render settings prim directly and keep the override_res on USD Render at default
for me using python expression or hscript pythonexprf/pythonexprs wrappers work
if you are specifically talking about the 'override_res' attribute keep in mind that that is a string attribute expecting one of following values "", "scale", "specfic"
so either pure python expression or pythonexprs hscript returning either of those values will work, I prefer python expression directly rather than hacking it through Hscript wrapper since LOP python expressions are usually multiline and pythonexprs() needs a single line expression so you'd have to do a module for your functions
alternatively you can use any LOP that can modify/create properties like Edit Properties LOP, Attribute Wrangle LOP, Python Script LOP, ... to override 'resolution' property of desired render settings prim directly and keep the override_res on USD Render at default
Edited by tamte - 2026年11月25日 17:32:21
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Quick Links

