CyclesCurveRenderSettings(PropertyGroup)

base classes — bpy_struct, PropertyGroup

class bpy.types.CyclesCurveRenderSettings(PropertyGroup)
encasing_ratio

Scale factor for encasing strand width

Type :float in [0, 100], default 1.01
interpolation

Interpolation method

  • LINEAR Linear interpolation, Use Linear interpolation between segments.
  • CARDINAL Cardinal interpolation, Use cardinal interpolation between segments.
  • BSPLINE B-spline interpolation, Use b-spline interpolation between segments.
Type :enum in [‘LINEAR’, ‘CARDINAL’, ‘BSPLINE’], default ‘BSPLINE’
line_method

Method for line segment intersection

  • ACCURATE Accurate, Always take into consideration strand width for intersections.
  • QT_CORRECTED Corrected, Ignore width for initial intersection and correct later.
  • ENDCORRECTED Correct found, Ignore width for all intersections and only correct closest.
  • QT_UNCORRECTED Uncorrected, Calculate intersections without considering width.
Type :enum in [‘ACCURATE’, ‘QT_CORRECTED’, ‘ENDCORRECTED’, ‘QT_UNCORRECTED’], default ‘ACCURATE’
normalmix

Scale factor for tangent normal removal (zero gives ray normal)

Type :float in [0, 2], default 1.0
preset

Hair rendering mode

  • CUSTOM Custom, Set general parameters.
  • FAST_PLANES Fast Planes, Use camera facing triangles (fast but memory intensive).
  • TANGENT_SHADING Tangent Normal, Use planar line segments and tangent normals.
  • TRUE_NORMAL True Normal, Use true normals with line segments(good for thin strands).
  • ACCURATE_PRESET Accurate, Use best line segment settings (suitable for glass materials).
  • SMOOTH_CURVES Smooth Curves, Use smooth cardinal curves (slowest).
Type :enum in [‘CUSTOM’, ‘FAST_PLANES’, ‘TANGENT_SHADING’, ‘TRUE_NORMAL’, ‘ACCURATE_PRESET’, ‘SMOOTH_CURVES’], default ‘TRUE_NORMAL’
primitive

Type of primitive used for hair rendering

  • TRIANGLES Triangles, Create triangle geometry around strands.
  • LINE_SEGMENTS Line Segments, Use line segment primitives.
  • CURVE_SEGMENTS Curve Segments, Use segmented cardinal curve primitives.
  • CURVE_RIBBONS Curve Ribbons, Use smooth cardinal curve ribbon primitives.
Type :enum in [‘TRIANGLES’, ‘LINE_SEGMENTS’, ‘CURVE_SEGMENTS’, ‘CURVE_RIBBONS’], default ‘LINE_SEGMENTS’
resolution

Resolution of generated mesh

Type :int in [3, 64], default 3
segments

Number of segments between path keys (note that this combines with the ‘draw step’ value)

Type :int in [1, 64], default 1
subdivisions

Number of subdivisions used in Cardinal curve intersection (power of 2)

Type :int in [0, 24], default 3
triangle_method

Method for creating triangle geometry

  • CAMERA_TRIANGLES Planes, Create individual triangles forming planes that face camera.
  • RIBBON_TRIANGLES Ribbons, Create individual triangles forming ribbon.
  • TESSELLATED_TRIANGLES Tessellated, Create mesh surrounding each strand.
Type :enum in [‘CAMERA_TRIANGLES’, ‘RIBBON_TRIANGLES’, ‘TESSELLATED_TRIANGLES’], default ‘CAMERA_TRIANGLES’
use_backfacing

Test back-faces of strands

Type :boolean, default False
use_curves

Activate Cycles hair rendering for particle system

Type :boolean, default True
use_encasing

Ignore strands encasing a ray’s initial location

Type :boolean, default True
use_joined

Fill gaps between segments (requires more memory)

Type :boolean, default False
use_parents

Use parents with children

Type :boolean, default False
use_smooth

Use vertex normals

Type :boolean, default True
use_tangent_normal

Use the tangent normal for all normals

Type :boolean, default False
use_tangent_normal_correction

Correct the tangent normal for the strand’s slope

Type :boolean, default False
use_tangent_normal_geometry

Use the tangent normal for actual normal

Type :boolean, default False

Inherited Properties

Inherited Functions

References

Previous topic

CyclesCameraSettings(PropertyGroup)

Next topic

CyclesCurveSettings(PropertyGroup)