1
$\begingroup$

I am creating a node group and this node group required the value of the X resolution of the image that the user will put so the user should put half the value of the X resolution but I want to make this automatic so the user should only put the image and half the value of X resolution will automatically generated,so how can I get the value of X resolution of the image that the user will put.

$\endgroup$
1
$\begingroup$

You can use a driver to easily get the render resolution from the scene, for a user selected image it gets tricky as you will need to know the name of the image or the image node to reference it's resolution.

I think you could achieve that with a custom python node but at this stage they don't integrate well, they don't update when a connected node changes so need manual updating which can lead to errors.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.