Notifications
Clear all

[Closed] render output size

 Rav

hey im stuck with creating two scripts for outputsize settings

1- this script to change renderPixelAspect to 0.5 and take the renderHeight whatever value was inputted and half it

2-this script is to take the renderWidth,renderHeight inputted values and half them so there 50% smaller.

so i can have 50% 25% smaller options

thanks in advance

6 Replies

   -- before changing values, close renderSceneDialog to ensure the update
   	renderSceneDialog.close()
   
   	coef = 0.5
   	
   	-- change size, keep img aspect ratio
   	renderWidth *= coef
   	renderHeight *= coef
   	
   	-- change pixel aspect
   	renderPixelAspect *= coef
   
   
1 Reply
(@gazybara)
Joined: 11 months ago

Posts: 0

It’s not important if renderSceneDialog is open or not.
Just add at the end of code :


renderSceneDialog.update()

You can also try this tool

renderSceneDialog.update()

Thanks Branko, didn’t see that !

 Rav

thank you guys just what im looking for

It can also be necessary if the RenderSceneDialog window is open to do a RenderSceneDialog.commit() to apply any changes that you’ve just set in this dialog.

It’s an old school dialog that used to have a cancel button, that’s why it works like this.

What you up to these days Ravi?

 Rav

hey Dave! how are you?
been ages, im good, just freelancing around currently at nexus at the moment.