Hello is there a way to emulate Falloff Mix Curve?
There is no such option in Vray Blender and I have been unsuccessful when I tried to plug Ramp (couldn’t find a curve so I tried at least Ramp) into color.
Hello is there a way to emulate Falloff Mix Curve?
There is no such option in Vray Blender and I have been unsuccessful when I tried to plug Ramp (couldn’t find a curve so I tried at least Ramp) into color.
oops, no, something else is broken in my file. I’ll see if this setup renders OK in a clean file.
Thank you both, gentlemen.
I am no longer at work to try it out, but I am confident it will work! I’ll post on Monday (memory permitting
) to confirm that it worked.
Just letting you know it worked. Thanks again!
Leandro, your clipping tip made the work much easier.
+1
Forgot about that - good tip!
Also - I agree plugging in to standard material works better - I haven’t found any way to get it right with any of the reflection BRDF’s.
For mixing (for example glossy coat over rough metal) using the standard material with refraction = white and IOR = 1.0 makes a nice clear coat.
Good tip leandro “use clipping” with Vector Curves -node. If you run this script on text editor it will add V-Ray Curve -node to node add menu (shift+a). So it uses clipping and max/min values are set for Vray use, 0-1.
import bpy
def menu_func(self, context):
self.layout.operator("node.vector_curve", text = "Curves V-Ray")
class Blender_Vector_Curve(bpy.types.Operator):
bl_idname = "node.vector_curve"
bl_label = "Curves V-Ray"
def execute(self, context):
bpy.ops.node.add_node('INVOKE_DEFAULT', type="ShaderNodeVectorCurve", use_transform=True)
ntree = bpy.context.area.spaces[0].node_tree
v = ntree.nodes.active.mapping
#use clipping and set values
v.clip_min_x = 0
v.clip_max_x = 1
v.clip_min_y = 0
v.clip_max_y = 1
v.curves[0].points[0].location = (0,0)
v.curves[0].points[1].location = (1,1)
v.curves[0].points.new(.35,.65)
v.use_clip = True
return {'FINISHED'}
def register():
bpy.utils.register_class(Blender_Vector_Curve)
bpy.types.NODE_MT_category_VRAY_BLENDER.append(menu_func)
def unregister():
bpy.types.NODE_MT_category_VRAY_BLENDER.remove(menu_func)
bpy.utils.unregister_class(Blender_Vector_Curve)
if __name__ == "__main__":
register()
Nice, your script is very handy! ![]()