This script attempts to merely create a new curve list and add a single two point curve, but ZBrush says it’s a bad variable? What variable? I’m not using a variable.
[if, 1 = 1,
[IPress,Tool:PolyMesh3D] //Kludge to start with clean slate.
[CanvasStroke,(ZObjStrokeV02n48=H2BDV1D5H2BDV1D7H2BDV1DEH2BDV1DFH2BDV1E0H2BDV1E1H2BDV1E2H2BDV1E3H2BCV1E4H2BCV1E6H2BCV1E8H2BCV1E9H2BCV1EAH2BCV1EBH2BCV1ECH2BCV1EDH2BCV1EEH2BCV1EFH2BCV1F0H2BCV1F1H2BCV1F2H2BCV1F3H2BCV1F4H2BCV1F6H2BCV1F7H2BCV1F8H2BCV1F9H2BCV1FAH2BCV1FBH2BCV1FCH2BCV1FDH2BCV1FEH2BCV200H2BCV201H2BCV202H2BCV203H2BCV204H2BCV205H2BCV206H2BCV207H2BCV208H2BCV209H2BCV20AH2BBV20BH2BBV20CH2BBV20DH2BAV20DH2BAV20D)]
[IPress,Transform: Edit]
[CurvesNew, myCurves] //Make a curve list
[CurvesNewCurve] //New curve
[CurveAddPoint, 0,1.0,1.0,0.3333]
[CurveAddPoint, 0,1.0,1.0,1.0]
]
The reference seems clear that this is the proper command format, but it’s causing an error:
If I take the offending line out, I see some action in adding a new curve, while in the CurveMultiTube brush, but a long series of new curve commands only results in a single new stuffy little curve every time I run the script.
[if, 1 = 1,
[IPress,Tool:PolyMesh3D] //Kludge to start with clean slate.
[CanvasStroke,(ZObjStrokeV02n48=H2BDV1D5H2BDV1D7H2BDV1DEH2BDV1DFH2BDV1E0H2BDV1E1H2BDV1E2H2BDV1E3H2BCV1E4H2BCV1E6H2BCV1E8H2BCV1E9H2BCV1EAH2BCV1EBH2BCV1ECH2BCV1EDH2BCV1EEH2BCV1EFH2BCV1F0H2BCV1F1H2BCV1F2H2BCV1F3H2BCV1F4H2BCV1F6H2BCV1F7H2BCV1F8H2BCV1F9H2BCV1FAH2BCV1FBH2BCV1FCH2BCV1FDH2BCV1FEH2BCV200H2BCV201H2BCV202H2BCV203H2BCV204H2BCV205H2BCV206H2BCV207H2BCV208H2BCV209H2BCV20AH2BBV20BH2BBV20CH2BBV20DH2BAV20DH2BAV20D)]
[IPress,Transform: Edit]
//[CurvesNew, myCurves] //Make a curve list
[CurvesNewCurve] //New curve
[CurveAddPoint, 0, -1.0, -1.0, -1.0]
[CurveAddPoint, 0, -1.0, -0.3333, -1.0]
[CurvesNewCurve] //New curve
[CurveAddPoint, 1, -1.0, 1.0, -1.0]
[CurveAddPoint, 1, -0.3333, 1.0, -1.0]
[CurvesNewCurve] //New curve
[CurveAddPoint, 2, -1.0, 1.0, -1.0]
[CurveAddPoint, 2, -1.0, 0.3333, -1.0]
[CurvesNewCurve] //New curve
[CurveAddPoint, 3, 0.3333, 1.0, -1.0]
[CurveAddPoint, 3, 1.0, 1.0, -1.0]
[CurvesNewCurve] //New curve
[CurveAddPoint, 4, -1.0, -1.0, 1.0]
[CurveAddPoint, 4, -1.0, -0.3333, 1.0]
[CurvesNewCurve] //New curve
[CurveAddPoint, 5, 1.0, 1.0, 1.0]
[CurveAddPoint, 5, 0.3333, 1.0, 1.0]
…and so on