In Nuke's TCL scripting language, you can use the format
command to get the root resolution's width (X dimension). Here's an example TCL expression to achieve this:
[format "%d" [value root.format.width]]
This expression uses the value
command to access the root format's width and then formats it as an integer using format
. The result will be the X resolution of the root format in Nuke.