ApplyHairSplineGenOp

Introduced

v2.03

Categories

operator

Description

Adds hair splines.

Scripting Syntax

oReturn = ApplyHairSplineGenOp( in_Objs, PresetObj );

Return Value

Returns the full path of the hair operator.

Parameters

Parameter Type Description
in_Objs Selection list Specifies the objects to be modified
PresetObj String Hair geometry preset: only "Hair-Spline" is supported.

Default Value: "Hair-Spline"

Possible Values:

Description:

Hair-Spline Hair-Spline

Examples

VBScript Example

' Create three or more curves to define hair boundaries (you need at least
' three curvelists to get this operator to work)
Set oCrvList1 = SICreateCurve( "crvlist", 3, 0 )
SIAddPointOnCurveAtEnd oCrvList1, -4.35922330097087, 0, -1.61233880745129, False
SIAddPointOnCurveAtEnd oCrvList1, -2.18446601941748, 0, -1.14612035710411, False
SIAddPointOnCurveAtEnd oCrvList1, -2.49514563106796, 0, 1.34037804474754, False
SIAddPointOnCurveAtEnd oCrvList1, -0.300970873786408, 0, 2.77788493331803, False
Set oCrvList2 = SICreateCurve( "crvlist", 3, 0 )
SIAddPointOnCurveAtEnd oCrvList2, -4.35922330097087, 0, -1.35980381351323, False
SIAddPointOnCurveAtEnd oCrvList2, -3.64077669902913, 0, -2.52534993938119, False
SIAddPointOnCurveAtEnd oCrvList2, -1.40776699029126, 0, -3.18582607737304, False
SIAddPointOnCurveAtEnd oCrvList2, -4.85436893203888E-02, 0, -1.94257687644721, False
SIAddPointOnCurveAtEnd oCrvList2, 0.669902912621358, 0, 0.543921525404436, False
SIAddPointOnCurveAtEnd oCrvList2, 2.45631067961165, 0, 1.98142841397492, False
SIAddPointOnCurveAtEnd oCrvList2, 4.14563106796116, 0, 0.874159594400358, False
Set oCrvList3 = SICreateCurve( "crvlist", 3, 0 )
SIAddPointOnCurveAtEnd oCrvList3, -0.689320388349515, 0, 2.5642014769089, False
SIAddPointOnCurveAtEnd oCrvList3, 2.0873786407767, 0, 2.5059241706155, False
SIAddPointOnCurveAtEnd oCrvList3, 3.9126213592233, 0, 0.796456519342494, False
' Select curves and add the simulation operator to it.
DeselectAll
AddToSelection oCrvList1, , True
AddToSelection oCrvList2, , True
AddToSelection oCrvList3, , True
ApplyHairSplineGenOp
' Output of above script is:
'INFO : "Expanded: crvlist,crvlist2,crvlist4"