rollout MB "VrayCam_Options"
(
group "VrayCam Options:"
(
button doitOn "ON" width:40 align:#center border:false across:2
button doitOff "OFF" width:40 align:#center border:false
spinner theSubdivs "Subdivs:" range:[-10000,10000,6] fieldwidth:45 align:#center type:#integer
)
group "VrayLight Options:"
(
spinner theMultiplier "Multiplier:" range:[-10000,10000,30] fieldwidth:45 align:#right type:#float
checkbox theCastShadows "--Cast shadows--" checked: true align:#left
checkbox theDS "Double-sided" align:#left
checkbox theInv "Invisible" align:#left
checkbox theIgnore "Ignore light normals" checked: true align:#left
checkbox theNoDec "No decay" align:#left
checkbox theStoreWIM "Store with irrMap" align:#left
checkbox theAffectDiff "Affect diffuse" checked: true align:#left
checkbox theAffectSpec "Affect specular" checked: true align:#left
checkbox theAffectRef "Affect reflections" checked: true align:#left
spinner theLightSubdivs "Subdivs:" range:[-10000,10000,8] fieldwidth:45 align:#right type:#integer
spinner theShadowBias "Shadow bias:" range:[-10000,10000,0.02] fieldwidth:45 align:#right type:#worldunits
spinner theCutoff "Cutoff:" range:[-10000,10000,0.001] fieldwidth:45 align:#right type:#float
)
on doitOn pressed do for i in selection do if classOf i == VRayPhysicalCamera do try(i.use_moblur = on)catch()
on doitOff pressed do for i in selection do if classOf i == VRayPhysicalCamera do try(i.use_moblur = off)catch()
on theSubdivs changed val do for i in selection do if classOf i == VRayPhysicalCamera do try(i.subdivs = theSubdivs.value)catch()
on theMultiplier changed val do for i in selection do if classOf i == VRayLight do try(i.multiplier = theMultiplier.value)catch()
on theCastShadows changed theState do for i in selection do if classOf i == VRayLight do try(i.cast_Shadows = theCastShadows.checked)catch()
on theDS changed theState do for i in selection do if classOf i == VRayLight do try(i.doubleSided = theDS.checked)catch()
on theInv changed theState do for i in selection do if classOf i == VRayLight do try(i.invisible = theInv.checked)catch()
on theIgnore changed theState do for i in selection do if classOf i == VRayLight do try(i.ignoreNormals = theIgnore.checked)catch()
on theNoDec changed theState do for i in selection do if classOf i == VRayLight do try(i.noDecay = theNoDec.checked)catch()
on theStoreWIM changed theState do for i in selection do if classOf i == VRayLight do try(i.storeWithIrradMap = theStoreWIM.checked)catch()
on theAffectDiff changed theState do for i in selection do if classOf i == VRayLight do try(i.affect_Diffuse = theAffectDiff.checked)catch()
on theAffectSpec changed theState do for i in selection do if classOf i == VRayLight do try(i.affect_Specular = theAffectSpec.checked)catch()
on theAffectRef changed theState do for i in selection do if classOf i == VRayLight do try(i.affect_reflections = theAffectRef.checked)catch()
on theLightSubdivs changed val do for i in selection do if classOf i == VRayLight do try(i.subdivs = theLightSubdivs.value)catch()
on theShadowBias changed val do for i in selection do if classOf i == VRayLight do try(i.ShadowBias = theShadowBias.value)catch()
on theCutoff changed val do for i in selection do if classOf i == VRayLight do try(i.cutoffThreshold = theCutoff.value)catch()
)
createDialog MB 150 365