Is it possible to somehow get curves to emit light just like attaching VRaylight properties to a mesh?
Announcement
Collapse
No announcement yet.
Curves to emit light?
Collapse
X
-
Found one here. Replace the "VRayLightMtl1" part with the name of your shader. Select all curves and run this:
Code:$selected=`ls -dag -et curveShape`; for ($object in $selected){ // Add V-ray Extra attributes vray addAttributesFromGroup $object vray_nurbscurve_renderable 1; vrayAddAttr $object vraySeparator_vray_nurbscurve_renderable; vrayAddAttr $object vrayNurbsCurveRenderable; vrayAddAttr $object vrayNurbsCurveMaterial; vrayAddAttr $object vrayNurbsCurveTesselation; vrayAddAttr $object vrayNurbsCurveStartWidth; vrayAddAttr $object vrayNurbsCurveLockEndWidth; vrayAddAttr $object vrayNurbsCurveEndWidth; setUITemplate -pst attributeEditorTemplate; // Activate renderable setAttr ($object + ".vrayNurbsCurveRenderable") 1; // Replace VRayLightMtl1 by your material connectAttr -force VRayLightMtl1.outColor ($object + ".vrayNurbsCurveMaterial"); }
- Likes 1
Comment
-
Could this work with curves coming from Bifrost?https://linktr.ee/cg_oglu
Ryzen 5950, Geforce 3060, 128GB ram
Comment
-
Originally posted by oglu View PostCould this work with curves coming from Bifrost?
Comment
Comment