ApplycamSETTINGS

0 votes
Date Updated: 
09/22/2011

select a camera ( or an object if you want) and run the script.
It will add a attribute holder.
Now you can change interactively the render output size directly, each camera can have its own, the "apply" button allow to apply camera settings to render output (when switching to another camera).

to do : buttons to have 1, 1/2, 1/4, render size to make test render

Additional Info: 

script :

macroScript APPLYcamSETTINGS Category:"yoko"
(

a = emptymodifier()
addmodifier $ a

ca=attributes Attribut_Holder

(
parameters params rollout:ro_camControls
(
pW type:#integer ui:spn_W
pH type:#integer ui:spn_H
)
rollout ro_camControls "Camera Controls" width:162 height:77
(
spinner spn_W "Width:" pos:[28,8] width:120 height:16 range:[100,10000,1600] type:#integer
spinner spn_H "Height:" pos:[28,31] width:120 height:16 range:[100,10000,1200] type:#integer
button theButton "[ Apply ]"

on theButton pressed do
(
renderWidth = pW
renderHeight = pH
)

on spn_W changed theValue do
(
renderWidth = pW
)

on spn_H changed theValue do
(
renderHeight = pH
)
)
)--end attributes

custAttributes.add $.modifiers[1] ca

)