ZBrushCentral

How to get a cutomized Edit Curve to autoload at startup

Thanks to TVeyes’ and Svengali’s help in getting this little script to work.

For anyone who wants to load these particular settings at startup:

  • a customized curve (in my case, an Edit Curve)
  • Accurate Curve Mode to “on”
  • Mouse Average set to 4

This is the script for you:

First, make sure your custom curve b has been saved into the ZCurves directory.

[FileNameSetNext, “ZBRUSH_Zcurves/yourzcurvefilename.zcv”]
[ISet, Transform:Edit Curve, 1]
[ISet, Transform:Edit Curve:Load,1]
[ISet, Transform:Modifiers:Accurate Curve Mode, 1]
[ISet, Stroke:Mouse Avg, 4]

[pd]//ZBrush default ZScript

Here’s to a smoother and less convoluted workflow!:smiley:

There’s another way to set a curve which might be useful in some circumstances: using the [IStroke command. You need to record a zscript while you set the curve. Then open the script in your text editor and you can cut and paste the relevant code to your defaultzscript or wherever. The code would look something like this:


[IClick,Transform:Modifiers:Smoothing Curve]
[IStroke,Transform:Modifiers:Smoothing Curve,
(ZObjStrokeV02n37=H37V60H37V5FH36V5FH35V5FH35V5E
H34V5EH33V5DH33V5CH32V5CH31V5CH31V5BH30V5BH30V
5AH2FV59H2EV58H2DV57H2CV56H2BV56H2BV55H2AV55H2
AV54H29V53H28V52H28V51H27V50H26V4FH25V4EH24V4D
H24V4CH23V4AH22V4AH22V49H22V48H22V47H22V46H21V
46H21V46)]
[IPress,Transform:Modifiers:Accurate Curve Mode]