//ZList, A ZBrush ZScript by Pixolator
[VarDef,ItemsCount,400][If,[IExists,ZScript:ReplayDelay],,[FileNameSetNext,error.err][IPress,ZScript:Load][Exit]][If,[IGetStatus,Tool:SaveAs]==0,[FileNameSetNext,Dmsg.err][IPress,ZScript:Load][Exit]][VarDef,itemsPerRow,5][VarDef,zImage(itemsPerRow),"UnNamed"][VarDef,zData(itemsPerRow),"UnNamed"][VarDef,zFile,"undefined"][VarDef,zDataRed,128][VarDef,zDataGreen,128][VarDef,zDataBlue,128][VarDef,zDataMaterialIndex,1][VarDef,Inited,0][VarDef,ZDataZero,"D000.dat"][VarDef,ZImageZero,"T000.psd"][PenMove,-10,-10][Image,ZListPanel.psd,1][VarDef,hOffset,5][VarSet,i,0][VarDef,ThumbnailSize,80][VarDef,zDataItemType,0][VarDef,storedToolIndex][VarDef,storedAlphaIndex][VarDef,storedMaterialIndex][VarDef,storedTxtureIndex][VarDef,storedDocUndo][If,Inited==0,[VarSet,FirstIndex,Max(Min((ItemsCount-itemsPerRow),ZScript:ReplayDelay),0)][VarSet,i,0][VarSet,zData(i),[FileNameAdvance,ZDataZero,3]][VarSet,zImage(i),[FileNameAdvance,ZImageZero,3]][Loop,FirstIndex,[VarSet,zData(0),[FileNameAdvance,zData(0),3]][VarSet,zImage(0),[FileNameAdvance,zImage(0),3]]][Loop,itemsPerRow-1,[VarInc,i][VarSet,zData(i),[FileNameAdvance,zData(i-1),3]][VarSet,zImage(i),[FileNameAdvance,zImage(i-1),3]]][VarSet,Inited,1]][VarSet,i,-12+hOffset][PenMove,0,-1000][SectionBegin,""][SectionEnd][PenMove,0,1000][PropertySet,SectionBegin,3,(128*65536)+(128*256)+(128)][PropertySet,SectionBegin,4,31][VarAdd,ThumbnailSize,2][PenMoveLeft][PenMove,i,3][SectionBegin,"  ",0,[Val,FirstIndex+1],[RoutineCall,LoadItem,FirstIndex][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,i+ThumbnailSize,0][SectionBegin,"  ",0,[Val,FirstIndex+2],[RoutineCall,LoadItem,FirstIndex+1][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,i+(ThumbnailSize*2),0][SectionBegin,"  ",0,[Val,FirstIndex+3],[RoutineCall,LoadItem,FirstIndex+2][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,i+(ThumbnailSize*3),0][SectionBegin,"  ",0,[Val,FirstIndex+4],[RoutineCall,LoadItem,FirstIndex+3][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,i+(ThumbnailSize*4),0][SectionBegin,"  ",0,[Val,FirstIndex+5],[RoutineCall,LoadItem,FirstIndex+4][IUnPress,0]][SectionEnd][PropertySet,SectionBegin,4,1][VarSet,i,-12+hOffset][PenMoveLeft][PenMove,i,][Image,zImage(0),1][PenMoveLeft][PenMove,i+ThumbnailSize,0][Image,zImage(1),1][PenMoveLeft][PenMove,i+(ThumbnailSize*2),0][Image,zImage(2),1][PenMoveLeft][PenMove,i+(ThumbnailSize*3),0][Image,zImage(3),1][PenMoveLeft][PenMove,i+(ThumbnailSize*4),0][Image,zImage(4),1][VarAdd,ThumbnailSize,-2][VarDef,vDist,25][VarDef,hDist,77][VarDef,LeftClmn,401+hOffset][VarDef,RightClmn,477+hOffset][PenMoveLeft][PenMove,LeftClmn,1][SectionBegin," ",0,"Store selected \CffffffMATERIAL\Cffa000",[VarSet,downHPos,[MouseHPos]][VarSet,downVPos,[MouseVPos]][VarSet,result,0][IPress,Material:ItemInfo][If,Material:ItemInfo!=0,[RoutineCall,LocateOneOfFive,5,downHPos,downVPos,-417,-10,"\Cffa000Store \Cffa000M\CffffffATERIAL\Cffa000?\Cffffff\nClick to choose target or click outside of these buttons to cancel this operation.","\Cffa000Overwrite this item?\n\n\CffffffClick this button to overwrite.\nClick outside of this button to cancel.",result][If,result>=0,[RoutineCall,GetState3D][RoutineCall,CreateMaterialThumbnail,result][RoutineCall,SaveItemData,result,1][RoutineCall,RestoreState3D][RoutineCall,Refresh,FirstIndex]],[Note,"\Cffa000Select a material and try again.",Material:]][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,RightClmn][SectionBegin," ",0,"\Cffa000Z\CffffffLIST\Cffa000 Help",[RoutineCall,ShowAndTell][RoutineCall,Refresh,FirstIndex]][SectionEnd][PenMoveLeft][PenMove,LeftClmn,vDist][SectionBegin," ",0,"Store selected \CffffffTEXTURE",[VarSet,downHPos,[MouseHPos]][VarSet,downVPos,[MouseVPos]][VarSet,result,0][IPress,Texture:ItemInfo][If,Texture:ItemInfo!=0,[RoutineCall,LocateOneOfFive,7,downHPos,downVPos,-417,-35,"\Cffa000Store \Cffa000T\CffffffEXTURE\Cffa000?\Cffffff\nClick to choose target or click outside of these buttons to cancel this operation.","\Cffa000Overwrite this item?\n\n\CffffffClick this button to overwrite.\nClick outside of this button to cancel.",result][If,result>=0,[RoutineCall,GetState3D][RoutineCall,CreateTextureThumbnail,result][RoutineCall,SaveItemData,result,3][RoutineCall,RestoreState3D][RoutineCall,Refresh,FirstIndex]],[Note,"\Cffa000Select a texture and try again.",Texture:]][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,RightClmn][SectionBegin," ",0,"Creates a thumbnail \CffffffCATALOG\Cffa000 of all items available in this \Cffa000Z\CffffffLIST\Cc0c0c0.",[If,[IReset],[If,[IExists,tool:modifiers:autocrop],[IPress,Tool:SimpleBrush]][VarSet,zDataTemp,[FileNameAdvance,ZDataZero,3]][VarSet,strokeData,[StrokeLoad,ZDataZero]][VarSet,count,0][VarSet,i,0][Loop,ItemsCount,[Note,"Scanning available items:",,-1][Note,[Var,i],,-1][Note,"  Found:",,-1][Note,[Var,count],,.05][IKeyPress,13,[VarSet,strokeData,[StrokeLoad,zDataTemp]]][VarSet,zDataItemType,[StrokeGetInfo,strokeData,1,2]-10000][If,([StrokeGetInfo,strokeData,1,2]-10000)>0,[VarInc,count]][VarInc,i][VarSet,zDataTemp,[FileNameAdvance,zDataTemp,3]]][If,count<1,[Note,"This ZList is empty."],[VarSet,iconsPerRow,Int(sqrt(count)+.9999)][VarSet,iconsPerRow,(INT((iconsPerRow)/10))*10][VarSet,iconsPerRow,Max(iconsPerRow,10)][VarSet,iconsPerClmn,Int((count+(iconsPerRow-1))/iconsPerRow)][IUnPress,Document:Modifiers:Pro][ISet,Document:Modifiers:Width,iconsPerRow*ThumbnailSize][ISet,Document:Modifiers:Height,iconsPerClmn*ThumbnailSize][IPress,Document:Modifiers:Resize][VarSet,i,0][VarSet,v,ThumbnailSize*.5][IPress,Tool:Plane3D][IPress,Draw:MRGB][IPress,Draw:ZADD][IPress,Texture:Txtr00][ISet,Zoom:Zoom,.5][ISet,Material:ItemInfo,0][VarSet,zImageTemp,[FileNameAdvance,ZImageZero,3]][VarSet,zDataTemp,[FileNameAdvance,ZDataZero,3]][VarSet,strokeData,[StrokeLoad,ZDataZero]][Loop,iconsPerClmn,[VarSet,h,ThumbnailSize*.5][Loop,iconsPerRow,[If,count<=0,[LoopExit]][Loop,ItemsCount,[If,i>=ItemsCount,[LoopExit]][Note,"Drawing available items:",,-1][Note,[Var,i],,-1][Note,"  Items To Draw:",,-1][Note,[Var,count],,.05][IKeyPress,13,[VarSet,strokeData,[StrokeLoad,zDataTemp]]][If,([StrokeGetInfo,strokeData,1,2]-10000)>0,[LoopExit]][VarInc,i][VarSet,zImageTemp,[FileNameAdvance,zImageTemp,3]][VarSet,zDataTemp,[FileNameAdvance,zDataTemp,3]]][If,i>=ItemsCount,[LoopExit]][FileNameSetNext,zImageTemp][IPress,Texture:Inventory:Import][CanvasClick,-2000,-2000,-1998,-1998][TransformSet,h,v,0,ThumbnailSize*.5,ThumbnailSize*.5,ThumbnailSize*.5,0,0,0][IPress,Texture:Inventory:Remove][VarAdd,h,ThumbnailSize][VarDec,count][VarInc,i][VarSet,zImageTemp,[FileNameAdvance,zImageTemp,3]][VarSet,zDataTemp,[FileNameAdvance,zDataTemp,3]]][VarAdd,v,ThumbnailSize]][ISet,Zoom:Zoom,1][If,[IExists,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabber]][IPress,Draw:RGB][IPress,Draw:ZADD][IUnPress,Tool:Modifiers:AutoCrop][IPress,Tool:Modifiers:ShadedRGB][CanvasClick,0,0,Document:Modifiers:Width+10,Document:Modifiers:Height+10][IPress,Layer:Modifiers:Clear][IKeyPress,13,[IReset]][ISet,texture:iteminfo,10000][Note,"You may now export the \CffffffCATALOG\Cc0c0c0 image by clicking here.",Texture:Inventory:Export]]][RoutineCall,Refresh,FirstIndex]][SectionEnd][PenMoveLeft][PenMove,LeftClmn,vDist][SectionBegin," ",0,"Store selected \CffffffALPHA\Cffa000",[VarSet,downHPos,[MouseHPos]][VarSet,downVPos,[MouseVPos]][VarSet,result,0][RoutineCall,LocateOneOfFive,9,downHPos,downVPos,-417,-59,"\Cffa000Store \Cffa000A\CffffffLPHA\Cffa000?\Cffffff\nClick to choose target or click outside of these buttons to cancel this operation.","\Cffa000Overwrite this item?\n\n\CffffffClick this button to overwrite.\nClick outside of this button to cancel.",result][If,result>=0,[RoutineCall,GetState3D][RoutineCall,CreateAlphaThumbnail,result][RoutineCall,SaveItemData,result,4][RoutineCall,RestoreState3D][RoutineCall,Refresh,FirstIndex]][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,RightClmn][SectionBegin," ",0,"Click to select and \CffffffDELETE\Cffa000 one item from this \Cffa000Z\CffffffLIST\Cc0c0c0.",[VarSet,downHPos,[MouseHPos]][VarSet,downVPos,[MouseVPos]][VarSet,result,0][RoutineCall,LocateOneOfFive,10,downHPos,downVPos,-494,-59,"\Cffa000DELETE ITEM?\Cffffff\nChoose item to DELETE or click outside of these buttons to cancel this operation.","\Cffa000Delete this item?\n\n\CffffffClick this button to delete.\nClick outside of this button to cancel.",result][If,result>=0,[RoutineCall,DeleteItems,result,1][RoutineCall,Refresh,FirstIndex]][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,LeftClmn,vDist][SectionBegin," ",0,"Store selected \CffffffTOOL\Cffa000",[VarSet,downHPos,[MouseHPos]][VarSet,downVPos,[MouseVPos]][VarSet,result,0][If,[IExists,Tool:Modifiers:Deformation:Unify]==1,[RoutineCall,LocateOneOfFive,11,downHPos,downVPos,-417,-84,"\Cffa000Store \Cffa000T\CffffffOOL\Cffa000?\Cffffff\nClick to choose target or click outside of these buttons to cancel this operation.","\Cffa000Overwrite this item?\n\n\CffffffClick this button to overwrite.\nClick outside of this button to cancel.",result][If,result>=0,[RoutineCall,GetState3D][RoutineCall,CreateToolThumbnail,result][RoutineCall,SaveItemData,result,2][RoutineCall,RestoreState3D][RoutineCall,Refresh,FirstIndex]],[Note,"\Cffa000Select a 3D Tool and try again.",Tool:]][IUnPress,0]][SectionEnd][PenMoveLeft][PenMove,RightClmn][SectionBegin," ",0,"Click to \CffffffDELETE ALL\Cffa000 items from this \Cffa000Z\CffffffLIST\Cffa000. You will be asked to confirm this action twice.",[If,[MessageYesNo,"DELETE ALL ITEMS IN THIS ZLIST?","FIRST CONFIRMATION..."]==1,[Delay,.25][If,[MessageOKCancel,"PRESSING OK BUTTON WILL DELETE ALL ITEMS IN THIS ZLIST.","FINAL CONFIRMATION..."]==1,[RoutineCall,DeleteItems,0,ItemsCount][Note,"Operation Completed."],[Note,Canceled,0]],[Note,Canceled,0]][RoutineCall,Refresh,FirstIndex]][SectionEnd][PenMoveLeft][PenMove,-12+hOffset,3][SectionBegin,"        ",,"First",[RoutineCall,Refresh,0],][SectionEnd][PenMoveLeft][PenMove,73+hOffset,0][SectionBegin,"        ",,"F.Backward",[RoutineCall,Refresh,Max(FirstIndex-itemsPerRow,0)],][SectionEnd][PenMoveLeft][PenMove,153+hOffset,0][SectionBegin,"    ",,"Backward",[RoutineCall,Refresh,Max(FirstIndex-1,0)],][SectionEnd][PenMoveLeft][PenMove,193+hOffset,0][SectionBegin,"    ",,"Forward",[RoutineCall,Refresh,Min(FirstIndex+1,ItemsCount-itemsPerRow)],,][SectionEnd][PenMoveLeft][PenMove,237+hOffset,0][SectionBegin,"        ",,"F.Forward",[RoutineCall,Refresh,Min(FirstIndex+itemsPerRow,ItemsCount-itemsPerRow)],,][SectionEnd][PenMoveLeft][PenMove,322+hOffset,0][SectionBegin,"        ",,"Last",[RoutineCall,Refresh,ItemsCount-itemsPerRow],,][SectionEnd][PenMoveLeft][PenMove,hOffset-13,18][ISlider,"INDEX",FirstIndex+1,1,1,ItemsCount-itemsPerRow+1,"Item Selector.",[VarSet,FirstIndex,[IGet,0]-1][RoutineCall,Refresh,FirstIndex],,412][RoutineDef,SaveItemData,[IPress,Zoom:Zoom][VarSet,zo,Zoom:Zoom][If,zo!=1,[IPress,zoom:actual]][IPress,Color:R][IPress,Color:G][IPress,Color:B][IPress,Material:ItemInfo][CanvasClick,Color:R+10000,Color:G+10000,Color:B+10000,(Material:ItemInfo)+10000,itemType+10000,10000][FileNameSetNext,zData(selectedIndex-FirstIndex)][IPress,Stroke:ExportLast][ISet,Zoom:Zoom,zo],selectedIndex,itemType][RoutineDef,GetItemData,[VarSet,strokeData,[StrokeLoad,ZDataZero]][IKeyPress,13,[VarSet,strokeData,[StrokeLoad,zData(selectedIndex-FirstIndex)]]][VarSet,zDataRed,[StrokeGetInfo,strokeData,1,0]-10000][VarSet,zDataGreen,[StrokeGetInfo,strokeData,2,0]-10000][VarSet,zDataBlue,[StrokeGetInfo,strokeData,1,1]-10000][VarSet,zDataMaterialIndex,[StrokeGetInfo,strokeData,2,1]-10000][VarSet,zDataItemType,[StrokeGetInfo,strokeData,1,2]-10000],selectedIndex][RoutineDef,Refresh,[ISet,ZScript:ReplayDelay,newIndex][FileNameSetNext,ZList.txt][IPress,ZScript:Load],newIndex][RoutineDef,LocateOneOfFive,[IPress,Zoom:Zoom][VarSet,zo,Zoom:Zoom][VarSet,result,-1][IPress,Preferences:utilities:viewwindowid][VarSet,winId,Preferences:utilities:viewwindowid][VarSub,winId,winIDOffset][Note,,winId,-1][Note,,[Val,winId+1],-1][Note,,[Val,winId+2],-1][Note,,[Val,winId+3],-1][Note,,[Val,winId+4],-1][Note,[Var,actionText1]][VarSet,endHPos,[MouseHPos]][VarSet,endVPos,[MouseVPos]][VarSet,endHPos,endHPos*zo][VarSet,endVPos,endVPos*zo][VarSet,downHPos,downHPos*zo][VarSet,downVPos,downVPos*zo][VarSet,endHPos,(endHPos-downHPos)-buttonHOffse][VarSet,endVPos,(endVPos-downVPos)-buttonVOffset][If,(endVPos>=0)&&(endVPos<=80)&&(endHPos>=0)&&(endHPos<(82*itemsPerRow)),[VarSet,index,int(endHPos/82)][RoutineCall,GetItemData,(index+FirstIndex)][If,zDataItemType,[Note,[Var,actionText2],[Val,winId+index]][VarSet,endHPos,[MouseHPos]][VarSet,endVPos,[MouseVPos]][VarSet,endHPos,endHPos*zo][VarSet,endVPos,endVPos*zo][VarSet,endHPos,(endHPos-downHPos)-buttonHOffse][VarSet,endVPos,(endVPos-downVPos)-buttonVOffset][If,(endVPos>=0)&&(endVPos<=80)&&(endHPos>=0)&&(index==(int(endHPos/82))),[VarSet,result,FirstIndex+index],[Note,Canceled,0]],[VarSet,result,FirstIndex+index]],[Note,Canceled,0]],winIDOffset,downHPos,downVPos,buttonHOffse,buttonVOffset,actionText1,actionText2,result]

 [VarDef,State3D(20)][RoutineDef,GetState3D,[If,[IExists,tool:modifiers:autocrop],[IPress,Tool:SimpleBrush]][VarSet,State3D(1),[IGet,draw:drawsize]][TransformGet,State3D(2),State3D(3),State3D(4),State3D(5),State3D(6),State3D(7),State3D(8),State3D(9),State3D(10)][VarSet,State3D(11),[IGet,transform:editobject]][VarSet,State3D(12),[IGet,transform:move]][VarSet,State3D(13),[IGet,transform:scale]][VarSet,State3D(14),[IGet,transform:rotate]][VarSet,State3D(15),[IGet,alpha:itemInfo]][VarSet,State3D(16),[IGet,material:itemInfo]][VarSet,State3D(17),[IGet,texture:itemInfo]][If,(State3D(11)+State3D(12)+State3D(13)+State3D(14))!=0,[IUnPress,transform:editobject][IPress,transform:DrawPointer][IPress,Document:Undo][VarSet,State3D(0),1],[VarSet,State3D(0),0]]][RoutineDef,RestoreState3D,[If,State3D(0)==1,[CanvasClick,-2000,-2000,-1950,-1950][ISet,draw:drawsize,State3D(1)][TransformSet,State3D(2),State3D(3),State3D(4),State3D(5),State3D(6),State3D(7),State3D(8),State3D(9),State3D(10)][ISet,alpha:iteminfo,State3D(15)][If,State3D(11),[IPress,transform:editobject]][If,State3D(12),[IPress,transform:move]][If,State3D(13),[IPress,transform:scale]][If,State3D(14),[IPress,transform:rotate]]]][RoutineDef,PrepThumbSurface,[IPress,Tool:SimpleBrush][IPress,Tool:Plane3D][IPress,Draw:RGB][IPress,Draw:ZADD][IPress,Texture:Txtr00][ISet,Color:R,backColor][ISet,Color:G,backColor][ISet,Color:B,backColor][CanvasClick,-2000,-2000,-1950,-1950][TransformSet,ThumbnailSize,ThumbnailSize,-15000,ThumbnailSize,ThumbnailSize,ThumbnailSize,0,0,0][IPress,Draw:M][ISet,Color:R,1][ISet,Material:ItemInfo,0][CanvasClick,-2000,-2000,-1950,-1950][TransformSet,ThumbnailSize,ThumbnailSize,-15000,ThumbnailSize,ThumbnailSize,ThumbnailSize,0,0,0][IPress,Draw:MRGB],backColor][RoutineDef,CreateMaterialThumbnail,[RoutineCall,StoreState][RoutineCall,PrepThumbSurface,0][IPress,Tool:Sphere3D][ISet,Color:R,zDataRed][ISet,Color:G,zDataGreen][ISet,Color:B,zDataBlue][IPress,Draw:MRGB][IPress,Draw:ZADD][IPress,Texture:Txtr00][ISet,Material:ItemInfo,storedMaterialIndex][CanvasClick,-2000,-2000,-1950,-1950][TransformSet,ThumbnailSize,ThumbnailSize,-15500,ThumbnailSize-8,ThumbnailSize-8,ThumbnailSize-8,0,0,0][If,[IExists,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabber]][IPress,Draw:RGB][IPress,Draw:ZADD][IUnPress,Tool:Modifiers:AutoCrop][IPress,Tool:Modifiers:ShadedRGB][CanvasClick,0,0,(ThumbnailSize*2),(ThumbnailSize*2)][IPress,Document:Undo][IPress,Document:Undo][IPress,Document:Undo][ISet,Texture:Inventory:Width,ThumbnailSize][ISet,Texture:Inventory:Height,ThumbnailSize][IPress,Texture:Inventory:Clone][FileNameSetNext,zImage(selectedIndex-FirstIndex)][IPress,texture:export][IPress,Texture:Inventory:Remove][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][RoutineCall,RestoreState][RoutineCall,MakeZName,selectedIndex,1][FileNameSetNext,zFile][IPress,Material:Save],selectedIndex][RoutineDef,CreateTextureThumbnail,[RoutineCall,StoreState][RoutineCall,PrepThumbSurface,32][ISet,Color:R,zDataRed][ISet,Color:G,zDataGreen][ISet,Color:B,zDataBlue][IPress,Draw:MRGB][IPress,Draw:ZADD][ISet,Texture:ItemInfo,storedTxtureIndex][ISet,Material:ItemInfo,0][CanvasClick,-2000,-2000,-1950,-1950][TransformSet,ThumbnailSize,ThumbnailSize,-15500,ThumbnailSize-8,ThumbnailSize-8,ThumbnailSize-8,0,0,0][If,[IExists,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabber]][IPress,Draw:RGB][IPress,Draw:ZADD][IUnPress,Tool:Modifiers:AutoCrop][IPress,Tool:Modifiers:ShadedRGB][CanvasClick,0,0,(ThumbnailSize*2),(ThumbnailSize*2)][IPress,Document:Undo][IPress,Document:Undo][IPress,Document:Undo][ISet,Texture:Inventory:Width,ThumbnailSize][ISet,Texture:Inventory:Height,ThumbnailSize][IPress,Texture:Inventory:Clone][FileNameSetNext,zImage(selectedIndex-FirstIndex)][IPress,texture:export][IPress,Texture:Inventory:Remove][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][RoutineCall,RestoreState][RoutineCall,MakeZName,selectedIndex,3][FileNameSetNext,zFile][IPress,texture:export],selectedIndex][RoutineDef,CreateAlphaThumbnail,[RoutineCall,StoreState][RoutineCall,PrepThumbSurface,32][ISet,Color:R,zDataRed][ISet,Color:G,zDataGreen][ISet,Color:B,zDataBlue][IPress,Draw:MRGB][IPress,Draw:ZADD][IPress,Alpha:MakeTx][ISet,Material:ItemInfo,0][CanvasClick,-2000,-2000,-1950,-1950][TransformSet,ThumbnailSize,ThumbnailSize,-15500,ThumbnailSize-8,ThumbnailSize-8,ThumbnailSize-8,0,0,0][If,[IExists,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabber]][IPress,Draw:RGB][IPress,Draw:ZADD][IUnPress,Tool:Modifiers:AutoCrop][IPress,Tool:Modifiers:ShadedRGB][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][CanvasClick,0,0,(ThumbnailSize*2),(ThumbnailSize*2)][IPress,Document:Undo][IPress,Document:Undo][IPress,Document:Undo][ISet,Texture:Inventory:Width,ThumbnailSize][ISet,Texture:Inventory:Height,ThumbnailSize][IPress,Texture:Inventory:Clone][FileNameSetNext,zImage(selectedIndex-FirstIndex)][IPress,texture:export][IPress,Texture:Inventory:Remove][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][RoutineCall,RestoreState][RoutineCall,MakeZName,selectedIndex,4][FileNameSetNext,zFile][IPress,alpha:export],selectedIndex][RoutineDef,CreateToolThumbnail,[ISet,Tool:Modifiers:Deformation:Size,1][IPress,Tool:Modifiers:Deformation:Unify][RoutineCall,StoreState][RoutineCall,PrepThumbSurface,0][ISet,Texture:ItemInfo,storedTxtureIndex][ISet,Color:R,zDataRed][ISet,Color:G,zDataGreen][ISet,Color:B,zDataBlue][IPress,Draw:MRGB][IPress,Draw:ZADD][ISet,Material:ItemInfo,storedMaterialIndex][ISet,Tool:ItemInfo,storedToolIndex][CanvasClick,-2000,-2000,-1950,-1950][If,State3D(0)==1,[TransformSet,ThumbnailSize,ThumbnailSize,-15500,ThumbnailSize-8,ThumbnailSize-8,ThumbnailSize-8,State3D(8),State3D(9),State3D(10)],[TransformSet,ThumbnailSize,ThumbnailSize,-15500,ThumbnailSize-8,ThumbnailSize-8,ThumbnailSize-8,0,0,0]][IPress,Tool:Undo][If,[IExists,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabberCopy1],[IPress,Tool:MRGBZGrabber]][IPress,Draw:RGB][IPress,Draw:ZADD][IUnPress,Tool:Modifiers:AutoCrop][IPress,Tool:Modifiers:ShadedRGB][CanvasClick,0,0,(ThumbnailSize*2),(ThumbnailSize*2)][IPress,Document:Undo][IPress,Document:Undo][IPress,Document:Undo][ISet,Texture:Inventory:Width,ThumbnailSize][ISet,Texture:Inventory:Height,ThumbnailSize][IPress,Texture:Inventory:Clone][FileNameSetNext,zImage(selectedIndex-FirstIndex)][IPress,texture:export][IPress,Texture:Inventory:Remove][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][RoutineCall,RestoreState][RoutineCall,MakeZName,selectedIndex,2][FileNameSetNext,zFile][IKeyPress,13,[IPress,Tool:Inventory:SaveAs]],selectedIndex][RoutineDef,StoreState,[VarSet,storedDocUndo,Preferences:DocUndo][If,storedDocUndo<5,[ISet,Preferences:DocUndo,5]][IPress,Color:R][IPress,Color:G][IPress,Color:B][VarSet,zDataRed,Color:R][VarSet,zDataGreen,Color:G][VarSet,zDataBlue,Color:B][IPress,Tool:ItemInfo][VarSet,storedToolIndex,Tool:ItemInfo][IPress,Alpha:ItemInfo][VarSet,storedAlphaIndex,Alpha:ItemInfo][IPress,Material:ItemInfo][VarSet,storedMaterialIndex,Material:ItemInfo][IPress,Texture:ItemInfo][VarSet,storedTxtureIndex,Texture:ItemInfo][IUnPress,Transform:EditObject][IPress,Transform:DrawPointer]][RoutineDef,RestoreState,[ISet,Tool:ItemInfo,storedToolIndex][ISet,Alpha:ItemInfo,storedAlphaIndex][ISet,Material:ItemInfo,storedMaterialIndex][ISet,Texture:ItemInfo,storedTxtureIndex][ISet,Preferences:DocUndo,storedDocUndo]][RoutineDef,DeleteItems,[IPress,Texture:ItemInfo][VarSet,storeTextureIndex,Texture:ItemInfo][If,[IExists,tool:modifiers:autocrop],[IPress,Tool:SimpleBrush]][CanvasClick,10000,10000,10000,10000,10000,10000][FileNameSetNext,ZDataZero][IPress,Stroke:ExportLast][FileNameSetNext,ZImageZero][IPress,Texture:Inventory:Import][VarSet,i,startIndex][VarSet,zDataTemp,[FileNameAdvance,ZDataZero,3]][VarSet,zImageTemp,[FileNameAdvance,ZImageZero,3]][Loop,startIndex,[VarSet,zDataTemp,[FileNameAdvance,zDataTemp,3]][VarSet,zImageTemp,[FileNameAdvance,zImageTemp,3]]][Loop,count,[Note,[Var,i],,.05][VarSet,strokeData,[StrokeLoad,ZDataZero]][IKeyPress,13,[VarSet,strokeData,[StrokeLoad,zDataTemp]]][If,[StrokeGetInfo,strokeData,1,2]>10000,[RoutineCall,MakeZName,i,[StrokeGetInfo,strokeData,1,2]-10000][FileNameSetNext,zFile][IPress,Stroke:ExportLast]][FileNameSetNext,zDataTemp][IPress,Stroke:ExportLast][FileNameSetNext,zImageTemp][IPress,Texture:Inventory:Export][VarSet,zDataTemp,[FileNameAdvance,zDataTemp,3]][VarSet,zImageTemp,[FileNameAdvance,zImageTemp,3]][VarInc,i]][ISet,Texture:ItemInfo,10000][IPress,Texture:Inventory:Remove][ISet,Texture:ItemInfo,storeTextureIndex],startIndex,count][RoutineDef,MakeZName,[If,type>0,[VarSet,zFile,"ZL001.psd"][Loop,index,[VarSet,zFile,[FileNameAdvance,zFile,3]]]],index,type][RoutineDef,LoadItem,[RoutineCall,GetItemData,selectedIndex][If,zDataItemType!=0,[If,(Color:R!=zDataRed)||(Color:G!=zDataGreen)||(Color:B!=zDataBlue),[If,zDataRed>0,[IColorSet,0,zDataGreen,zDataBlue],[IColorSet,1,zDataGreen,zDataBlue]][ISet,Color:R,zDataRed]][RoutineCall,MakeZName,selectedIndex,zDataItemType][FileNameSetNext,zFile][If,zDataItemType==1,[IPress,Material:ItemInfo][If,Material:ItemInfo!=0,[Note,"\Cffa000M\CffffffATERIAL",0,.5,,10][IPress,Material:Load],[Note,"\Cffa000Select a target material and try again.",Material:]]][If,zDataItemType==2,[Note,"\Cffa000T\CffffffOOL",0,.5,,10][RoutineCall,GetState3D][IPress,Tool:Inventory:LoadTool][ISet,Material:ItemInfo,zDataMaterialIndex][RoutineCall,RestoreState3D]][If,zDataItemType==3,[Note,"\Cffa000T\CffffffEXTURE",0,.5,,10][IPress,Texture:Inventory:Import]][If,zDataItemType==4,[Note,"\Cffa000A\CffffffLPHA",0,.5,,10][IPress,Alpha:Import]],[Note,"\CffffffEMPTY",0,.5,,10]],selectedIndex][RoutineDef,ShowAndTell,[IPress,10245][Note,"\Cffa000Z\CffffffLIST\Cffa000",,-1][Note,"  A ZScript Utility\ By Pixolator",,,,,500][Note,"\CffffffThis ZScript allows you store and easily retrieve your favorite \Cffa000M\Cffffffaterials, \Cffa000T\Cffffffextures, \Cffa000A\Cfffffflphas and \Cffa000T\Cffffffools.",,,,,500][Note,,-1,-1][Note,,1,-1][Note,,3,-1][Note,,5,-1][Note,"\CffffffTo store an item, click on one of these buttons and the active item from the corresponding palette will be added to this \Cffa000Z\CffffffLIST\Cffa000"][Note,"\CffffffTo retrieve a stored \Cffa000Z\CffffffLIST\Cffffff item, you need to...",,,,,500][Note,,"ZScript:First",-1][Note,,"ZScript:F.Backward",-1][Note,,"ZScript:Backward",-1][Note,,"ZScript:Last",-1][Note,,"ZScript:F.Forward",-1][Note,,"ZScript:Forward",-1][Note,,"ZScript:Index",-1][Note,"\Cffffff...Use these controls to locate the item...",,,,,500][Note,,-2,-1][Note,,-3,-1][Note,,-4,-1][Note,,-5,-1][Note,,-6,-1][Note,"\Cffffff...when item is found, click on its thumbnail...",,,,,550][Note,,-2,-1][Note,,-3,-1][Note,,-4,-1][Note,,-5,-1][Note,,-6,-1][Note,"\Cffffff...and the selected item will be placed in its corresponding palette."][Note,"\CffffffPress this button to create a catalog of all items available in this \Cffa000Z\CffffffLIST.",2,,,,400][Note,"\CffffffPress this button to delete one item from this \Cffa000Z\CffffffLIST.",4,,,,400][Note,"\CffffffPress this button to delete all available items.\n\n\Cffa000You will be asked to confirm this action twice.",6,,,,450][Note,"\CffffffMore information is available at \n      \Cffa000www.ZBrushCentral.com\Cc0c0c0",,-1][Note,"\n\n \Cffa000         T H E   E N D",,,,,300]]


   
 