i know i can show properties of a render by writing
showproperties renderers.current
but how can i access them?
ive had no problem writing a vray camera utility based on the frost script you wrote bobo, but now im trying to access the vray and krakatoa render engine to give me the most used parameters in a little window
like density for krakatoa, dmc subdivisions for vray, etc.
any tips on getting access to them?
im starting with vray but would like to do the same for krakatoa
[code] ollout roll8 “Render Settings”
(
group "DMC Sampler" (
spinner spn_Min "Min:" tooltip:"Minimum Subdivisions" range:[0,1000,1] units:#integer
--.twoLevel_baseSubdivs : integer
spinner spn_Max "Max:" tooltip:"Maximum Subdivions" range:[0,1000,8] units:#integer
--.twoLevel_fineSubdivs : integer
spinner spn_Noise "Noise:" tolltip:"Noise Threshold"
spinner spn_Adaptive "Adap" range:[0,1,0.01] tooltip:"Adaptive Amount" units:#float
--.dmc_earlyTermination_amount (mc_earlyTermination_amount) : float
spinner spn_Samples "Smpl" tooltip:"Minimum Samples" range:[0,1,1] units:#integer
-- .dmc_earlyTermination_minSamples (mc_earlyTermination_minSamples) : integer
spinner spn_Multi "Mlti" tooltip:"Global Subdivions Multiplier" range:[0,100,1.0] units:#float
-- .dmc_subdivs_mult (mc_subdivs_mult) : float
)
group "Global" (
spinner spn_emory "Memory:" tooltip:"Dynamic Memory Limit" range:[0,10000,4000] units:#integer
--.system_raycaster_memLimit : integer
spinner spn_Region "Region:" tooltip:"Render Region Size" range:[0,512,64] units:#integer
-- .system_region_x : integer
spinner spn_Gamma "Gamma:" tooltip:"Gamma" range:[0,100,1.0] units:#float
--.colorMapping_gamma : float
checkbox chk_Stamp "Stamp" tooltip:"Frame Stamp" state:#false
-- .system_frameStamp_on : boolean
)
–
fn updateControls =
(
local Vr = renderers.current
-- local enableInViewport = 0
local min = 0
local max2 = 0
local noise2 = 0
local adaptive2 = 0
local samples = 0
local chk_stamp = 1
local multi = 0
local memory2 = 0
local region = 0
local gamma = 0
for o in vr do
(
if o.twoLevel_baseSubdivs > min do min = o.twoLevel_baseSubdivs
if o.twoLevel_fineSubdivs > max2 do max2 = o.twoLevel_fineSubdivs
--if o.f_number > spn_Noise do spn_Noise = o.f_number
if o.dmc_earlyTermination_amount > adaptive2 do adaptive2 = o.dmc_earlyTermination_amount
if o.dmc_earlyTermination_minSamples > samples do samples = o.dmc_earlyTermination_minSamples
if o.system_frameStamp_on do chk_stamp+=1
if o.dmc_subdivs_mult > multi do multi = o.dmc_subdivs_mult
if o.system_raycaster_memLimit > memory2 do memory2 = o.system_raycaster_memLimit
if o.system_region_x > region do region = o.system_region_x
if o.colorMapping_gamma > gamma do gamma = o.colorMapping_gamma
-- if o.enableViewportMesh do enableInViewport+=1
)
spn_Region.value = region
spn_memory.value = memory2
)
on spn_Region changed val do
(
for o in vr do o.system_region_x = val
)
on spn_memory changed val do
(
for o in vr do o.system_raycaster_memLimit = val
)
on roll8 rolledup state do
(
mainDialog.autoResize()
vr = renderers.current
)
)
[/code]
would i do the same with krakatoa? it says the functions cannot be mapped