[Closed] maxscript and vray toon
somebody knows if it’s possible to activate vraytoon with mxs?How about global switches such as reflection,hidden lights and so on?I couldn’t find info typing showproperties vr.Any help appreciated.Thanks!
Yes it is possible to add a VRayToon with maxscript. It is an atmospheric effect so you would use addAtmospheric as you would with any other effect:
(
vt = VrayToon()
addAtmospheric vt
)
It’s properties are:
.color : RGB color
.normalThreshold : float
.linePixels : float
.lineWorld : float
.overlapThreshold : float
.doSecondaryRays : boolean
.traceBias : float
.widthType : integer
.opacity : float
.excludeList : node array
.excludeType : integer
.hideInnerEdges (hide_inner_edges) : boolean
.texmap_color : texturemap
.texmap_color_on : boolean
.texmap_color_multiplier : float
.texmap_width : texturemap
.texmap_width_on : boolean
.texmap_width_multiplier : float
.texmap_distortion : texturemap
.texmap_distortion_on : boolean
.texmap_distortion_multiplier : float
.texmap_opacity : texturemap
.texmap_opacity_on : boolean
.texmap_opacity_multiplier : float
.compensateCameraExposure (compensate_camera_exposure) : boolean
And yes you can set any of the VRay global switches using maxscript. Use:
show renderers.current
to see all VRay properties. Look for the ones starting with options.
Thanks Raytracer. Very helpful. May you suggest a source where I can find more informations about vray and maxscript? Cheers
I’m not aware of any apart from some general info on spot3d.com.
You can find a lot of information yourself using standard maxscript tools. As I said above, typing into the listener:
show renderers.current
returns all the properties of the renderer itself.
Typing:
showclass "VRay*"
returns all the VRay classes ie. lights, materials, render elements etc.
Then, for example:
show (v=VRaySimbiontMtl())
returns all the properties of the VRaySimbiontMtl.
Other than that ask on here or on the VRay forum. Hope some of that helps.