This page provides information on the Post Translate tab of the V-Ray Renderer settings.
The Post Translate tab exposes options for Python Post Translate of .vrscenes. You can import a script file or write a script directly in Houdini to control plugin parameters.
The V-Ray for Houdini's Post Translate support is based on AppSDK Python binding.
UI Path:
||out Network|| > V-Ray > V-Ray Renderer > Post Translate tab
||V-Ray Shelf|| > ROP Settings > Post Translate tab
V-Ray menu > Render Settings > Post Translate tab
|
|
import os import vray from vfh import vfh_utils with vray.VRayRenderer() as renderer: for plugin in renderer.plugins: vfh_utils.logInfo('plugin ' + plugin.getName() + ' (class ' + plugin.getType() + '):\n') |
import vray r = vray.VRayRenderer() p = r.plugins["|mat|vrayMaterialBuilder|vrayMtl"] p.diffuse = vray.AColor(0, 1, 1, 1) |
import vray from vfh import vfh_utils renderer = vray.VRayRenderer() for node in renderer.plugins: if node.getType() != 'Node': continue if not node.object_properties: continue objProps = node.object_properties needFix = objProps.camera_visibility == 0 or objProps.matte_surface == 1 if not needFix: continue instancer = node.geometry if not instancer.instances: continue for instance in instancer.instances[1:]: # First item is time instancedNode = instance[-1] # Node is last if type(instancedNode) is not vray.Plugin: continue if instancedNode.getType() != 'Node': continue if instancedNode.geometry.getType() in {'GeomDisplacedMesh', 'GeomStaticSmoothedMesh' }: instancedNode.geometry = instancedNode.geometry.mesh vfh_utils.syslog("Disabling displacement for \'%s\"" % instancedNode) |
Here, you can check how the script changes the render.
|