//RECORDED ZSCRIPT 1.23b
[Image,zscripticon.psd,0]
This ZScript will show you how to create a textured Basketball using a texture and a procedural material.
[PD][PD]
[Image,ball.psd,1]
[pd]
[IButton,"Run the ZScript","Press to play this ZScript. ZScript can be aborted at anytime by pressing the ‘esc’ key.",

[IReset]
[IUnPress,PREFERENCES:INTERFACE:FLOAT MENU]

[IPress,LAYER:INVENTORY:CREATE]
[FileNameSetNext,splashscreen.psd]
[IPress,DOCUMENT:IMPORT]
[IPress,LAYER:LAYER 1]

[Note, "\Cffa000 Making a Basketball\Cc0c0c0\n\n  S O U T H E R N g r a p h i c s 2001",,,,,400]

[Note,"Start with a basic 3D Sphere from the tool panel.",TOOL:Sphere3D,10]
[IPress,TOOL:Sphere3D]


[IUnPress,PREFERENCES:INTERFACE:FLOAT MENU]
[IPress,TOOL:Sphere3D]
[CanvasStroke,( )]

[Note,"Enter EDIT mode.",TRANSFORM: EDIT]
[IPress,TRANSFORM: EDIT]

[Note,"Increase the mesh resolution.",INITIALIZE:HDivide,512,-1]
[ISet,TOOL:MODIFIERS:INITIALIZE:HDivide,512]
[Note,"",INITIALIZE:INITIALIZE:VDivide,256]
[ISet,TOOL:MODIFIERS:INITIALIZE:VDivide,256]

[Note,"Create the material for the Basketball using SPHERICAL BLEND.",MATERIAL:SphericalBlend]
[IPress,MATERIAL:SphericalBlend]

[Note,"Now alter the following modifiers.",MATERIAL:MODIFIERS:S1]
[IPress,MATERIAL:MODIFIERS:S1]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Blend,4]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:HVScale,42]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:RadialScale,100]
[Delay,2]

[IPress,MATERIAL:MODIFIERS:S2]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Ambient,20]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Diffuse,60]
[Delay,2]
[ISet,MATERIAL:MODIFIERS:Specular,60]
[Delay,2]
[IColorSet,250,159,0]
[IColorSet,217,116,0]

[Note,"Import the balltexture.psd file to use as your base texture.",TEXTURE:INVENTORY:IMPORT]
[FileNameSetNext,balltexture.psd]
[IPress,TEXTURE:INVENTORY:IMPORT]

[CanvasStroke,(ZObjStrokeV02n26=
H247V67H246V67H244V65H243V65H242V65H238V5FH22EV57H225V50H21EV4AH214V44H204V3DH1F9V38H1EDV31H1E5V23H1E5V12H1E7V3H1E8V-3H1E9V-9H1F2V-15H200V-21H20BV-28H213V-29H215V-2AH223V-2BH225V-2CH225V-2C)]
[CanvasStroke,(ZObjStrokeV02n26=
HAAV12AHAAV12BH99V133H94V134H8BV138H83V13DH74V145H65V149H58V14AH4AV14DH32V153H2DV155H2AV158H2AV159H2BV15CH2EV15FH34V166H3AV16EH40V176H45V17DH46V17DH4FV17CH54V17AH5BV177H60V175H60V175)]

[Note,"and the ballalpha.psd to be used to create the ridges in the ball.",ALPHA:IMPORT]
[FileNameSetNext,ballalpha.psd]
[IPress,ALPHA:IMPORT]

[NOte,"USe the alpha to mask the ball.",TOOL:MODIFIERS:SELECTION:Alp,-1]
[IPress,TOOL:MODIFIERS:SELECTION:Alp]

[Note,"Then inflate the ball. Masked areas become indented.",TOOL:MODIFIERS:DEFORMATION:Inflat]
[ISet,TOOL:MODIFIERS:DEFORMATION:Inflat,-10]

[IPress,TOOL:MODIFIERS:SELECTION:Clear]
[CanvasStroke,(ZObjStrokeV02n28=
HB5V8AHC1V8EHC6V93HD1V9FHDCVAEHE4VB7HEDVBFHF2VC4HF3VBEHF3V95HF3V41HF6V25HF6V1CHF6V1AHF2V1AHEDV2CHCBV62HC8V72HC7V7AHBEV83HB6V7CHB4V77HB3V77HB2V78HB0V7FHAEV81HAEV84HAEV84)]
[CanvasStroke,(ZObjStrokeV02n13=
H68V198H68V197H67V18CH61V183H58V178H53V171H50V16EH4FV16EH4CV16FH4AV172H48V176H46V17CH46V17C)]
[CanvasStroke,(ZObjStrokeV02n17=
H276V1AAH276V1ABH267V1C3H256V1D3H249V1D8H242V1DBH22BV1E0H207V1E3H1F8V1E7H1E7V1EAH1D4V1EAH1C2V1E7H1B6V1E4H1A8V1E0H1A7V1E0H1A6V1E0H1A6V1E0)]
[CanvasStroke,(ZObjStrokeV02n38=
H79V95H80V98H86V9EH8CVA4H96VACHA3VB4HB6VB8HCBVBAHE2VBAHF4VBBH101VBDH114VC0H125VC1H138VC1H146VBBH14BVB2H14AVA4H147V9FH146V9DH146V9CH147V9AH149V96H14FV8EH157V8BH175V86H182V85H18CV84H193V84H192V84H18AV7DH184V76H17CV71H174V6EH166V69H160V66H158V63H154V62H154V62)]


[Note,"TUTORIAL END".]
]

[PD]
[ButtonFind,ZScript:Show Actions,"TIP: Turn SHOW ACTIONS on before running the ZScript."]
[PD][PD]

[PaintPageBreak]

[pd]
[FontSetSizeMedium][FontSetOpacity,1][penMove,0,6]\Cffa000Managing S O U T H E R N g r a p h i c s ZScipts\Cc0c0c0: 
[FontSetOpacity,.5][FontSetSizeSmall]Create a sub-directory in your default\Cffa000 ZScripts\Cc0c0c0 folder called \Cffa000 SGFXZScripts.\Cc0c0c0 Place any further ZScripts from Sgfx in there in its own folder. More ZScripts can can found at\Cffa000 www.southerngfx.co.uk\Cc0c0c0:   
[pd]  
[iButton," Load a Tutorial... ","Load a ZScript tutorial",[fileNameSetNext,""][iPress,7427]
]
[PenMoveDown]
[PenMoveDown]
[FontSetSizeMedium][FontSetOpacity,1]Trademarks

[FontSetOpacity,.5]
[FontSetSizeSmall]Pixologic and the Pixologic logos are registered trademarks of Pixologic, Inc. ZBrush is a trademark of Pixologic, Inc.



