|
IClick
|
[IClick, Interface item path, X1, Y1, X2, Y2, X3, Y3, X4, Y4, X5, Y5, X6, Y6, X7, Y7]
|
Emulates a click within a specified ZBrush interface item (Sub-Level only). |
Example:
[IClick, LIGHT:Intensity, 55, 10]
Emulates a click at 55, 10 position [IClick, LIGHT:Intensity, 55, 10, 10, 20, 10]
Emulates a click at 10, 10 with a drag to 20, 10 before releasing the mouse button |
|
IClose
|
[IClose, Interface item path, Show Zoom Rectangles?, Target parent window?]
|
Closes an interface item. |
Example:
[IClose, ZScript:Play]
deletes the ZScript:Play window |
|
IColorSet
|
[IColorSet, Red (0-255), Green (0-255), Blue (0-255)]
|
Sets the active color to a new value |
Example:
[IColorSet, 255, 0, 0]
sets the main interface active color to red |
|
IConfig
|
[IConfig, ZBrush version-configuration ]
|
Sets ZBrush internal version-configuration |
Example:
[IConfig, 2.0]
sets the interface to 2.0 configuration [IConfig, 3.1]
sets the interface to 3.1 configuration |
|
IDialog
|
|
Command currently disabled |
|
|
IDisable
|
[IDisable, Window path, Window ID or relative windowID(-100<->100)]
|
Disables a ZScript interface item (can only be used for ZScript-generated interface items) |
Example:
[IDisable, Zscript:DoIt]
Disables the “DoIt” ZScript interface item [IDisable, l]
Disables the next interface item in the ZScript window |
|
IEnable
|
[IEnable, Window path, Window ID or relative windowID(-100<->100)]
|
Enables a ZScript interface item (can only be used for ZScript-generated interface items) |
Example:
[IEnable, ZScript:DoIt]
Enables the “DoIt” ZScript interface item [IEnable, 1]
Enables the next interface item in the ZScript window |
|
IExists
|
[IExists, Interface item path]
|
Verifies that a specified interface item exists. Output: 1 if item exists, 0 otherwise |
Example:
[IExists, TOOL:Sphere3D]
returns 1 if TOOL:Sphere3D exists, returns 0 otherwise. |
|
IFadeIn
|
[IFadeIn, Fade in speed in secs. (default:.5 secs)]
|
Fades in ZBrush window from black. |
Example:
[IFadeIn, .35]
fade in from black, speed = 0.35 seconds (*ZBrush 3 only). |
|
IFadeOut
|
[IFadeOut, Fade out speed in secs. (default:.5 secs)]
|
Fades out ZBrush window to black. |
Example:
[IFadeOut, .35]
fade out to black, speed = 0.35 seconds (*ZBrush 3 only). |
|
IGet
|
[IGet, Interface item path]
|
Returns the current value of a ZBrush or ZScript interface item Output: The item value |
Example:
[IGet, Draw:Width]
Returns the current value of the Width slider in the Draw menu |
|
IGetFlags
|
[IGetFlags, Interface item path]
|
Returns the status flags of the specified interface item Output: The flags |
Example:
[IGetFlags, windowID]
Returns the info of specified windowID interface item |
|
IGetHotkey
|
[IGetHotkey, Interface item path]
|
Returns the hotkey of the specified interface item Output: The Hotkey |
Example:
[IGetHotkey, windowID]
Returns the hotkey of specified windowID interface item |
|
IGetID
|
[IGetID, Interface item path]
|
Returns the window ID code of the specified interface item Output: The Title |
Example:
[IGetID, Tool:LoadTool]
Returns the id code of the Tool:LoadTool interface item |
|
IGetInfo
|
[IGetInfo, Interface item path]
|
Returns the info (popup info) of the specified interface item Output: The info |
Example:
[IGetInfo, windowID]
Returns the info of specified windowID interface item |
|
IGetMax
|
[IGetMax, Interface item path]
|
Returns the maximum possible value of a ZBrush or ZScript interface item Output: The item maximum value |
Example:
[IGetMax, Draw:Width]
Returns the maximum value of the Width slider in the Draw menu |
|
IGetMin
|
[IGetMin, Interface item path]
|
Returns the minimum possible value of a ZBrush or ZScript interface item Output: The item minimum value |
Example:
[IGetMin, Draw:Width]
Returns the minimum value of the Width slider in the Draw menu |
|
IGetSecondary
|
[IGetSecondary, Interface item path]
|
Returns the the secondary value of a 2D interface item Output: The item value |
Example:
[IGetSeconday, Light:LightPlacement]
Returns the secondary value of the Light:LightPlacement control |
|
IGetStatus
|
[IGetStatus, Interface item path]
|
Returns the Enabled/Disabled status of a ZBrush or ZScript interface item Output: The item status 0=Disabled 1=Enabled |
Example:
[IGetStatus, Transform:Move]
Returns the current status of the Move button in the Transform menu |
|
IGetTitle
|
[IGetTitle, Interface item path, Return full path? (0:no nonZero:yes)]
|
Returns the title of the specified interface item Output: The Title of the button |
Example:
[IGetTitle, windowID]
Returns the title of specified windowID interface item |
|
IHeight
|
[IHeight, Interface item path]
|
Returns the pixel-height of an interface item. Output: The height of the interface item. |
Example:
[IHeight, Tool:SimpleBrush]
Returns the height of the “Tool:SimpleBrush” interface item |
|
IHide
|
[IHide, Interface item path, Show Zoom Rectangles?, Target parent window?]
|
Hides an interface item. |
Example:
[IHide, Draw:Width]
Hides the “Draw:Width” window |
|
IHPos
|
[IHPos, Interface item path , Global coordinates?(set value to non-zero for global coordinates; default:Canvas coordinates)]
|
Returns the H position of the interface item in Canvas or Global coordinates. Output: The H position of the interface item. |
Example:
[IHPos, Draw:Width, 1]
Returns the H position of the “Draw:Width” interface Item in Global coordinates |
|
IKeyPress
|
[IKeyPress, The key to press (with an optional CTRL/CMD, ALT/OPT, SHIFT or TAB combination.) , Commands group to execute while the key is pressed , Optional H cursor position prior to key press , Optional V cursor position prior to key press]
|
Simulates a key press |
Example:
[IKeyPress, 'x']
Simulates “x” key press [IKeyPress, CTRL+'z']
Simulates “Ctrl+z” key press |
|
ILock
|
[ILock, Window path, Window ID or relative windowID(-100<->100)]
|
Locks an interface item. |
Example:
[ILock, ZScript:DoIt]
locks the “DoIt” Zscript window interface item (*ZBrush 3 only). [ILock, 1]
locks the next interface item (*ZBrush 3 only). |
|
IMaximize
|
[IMaximize, Interface item path, Maximizeall sub palettes? (0:no, NonZero:yes)]
|
Locates an interface item and (if possible) maximize its size. |
Example:
[IMaximize, Tool:, 1]
Expand the TOOL palette and all of its sub palettes |
|
IMinimize
|
[IMinimize, Interface item path, Minimize all sub palettes? (0:no, NonZero:yes)]
|
Locates an interface item and (if possible) minimize its size. |
Example:
[IMinimize, Tool:, 1]
Closes the TOOL palette and all of its sub palettes |
|
IModGet
|
[IModGet, Interface item path]
|
Returns the current modifiers binary state of a ZBrush or ZScript interface item Output: The item value |
Example:
[IModGet, Tool:Modifiers:Deformation:Rotate]
Returns the current modifiers of the Rotate slider in the Tool menu. Each modifier is identified by its binary value such as lst=1, 2nd=2, 3rd=4, 4th=8 |
|
IModSet
|
[IModSet, Interface item path, value]
|
Sets the modifiers binary value of a ZBrush or a ZScript interface item |
Example:
[IModSet, Tool:Modifiers:Deformation:Rotate, 2]
Sets the modifiers of the Rotate slider in the Tool menu to 2. Each modifier is identified by its binary value such as lst=1, 2nd=2, 3rd=4, 4th=8 |
|
IModify
|
[IModify,Interface item path,Button width in pixels (0=Unchanged),Button height in pixels (0=Unchanged),Optional button icon (Grayscale.psd) ("DeleteIcon"=Deletes existing icon if any)]
|
Modify a ZBrush interface item |
|
IPress
|
[IPress, Interface item path]
|
Presses a ZBrush or ZScript interface item (Sub-Level only). |
Example:
[IPress, Tool:Cube3D]
Presses the Cube3D button in the Tool menu making the Cube3D the active tool |
|
IReset
|
[IReset, Optional item to reset (default:All). (0:All, 1:Interface, 2:Document, 3:Tools, 4:Lights, 5:Materials, 6:Stencil) , Optional ZBrush version-configuration]
|
Interface Reset. Output: Returns the button that the user clicked ( 0=NO, 1=YES ) (Sub-Level only). |
Example:
[IReset]
Resets the interface to a default state |
|
IsDisabled
|
[IsDisabled, Interface item path]
|
Returns 1 if the specified ZBrush or ZScript interface item is currently disabled, returns 0 otherwise Output: The item ‘Disabled’ status (1=Disabled 0=Enabled) |
Example:
[IsDisabled, Transform:Move]
Returns 1 if the “Transform:Move” interface item is currently disabled, returns 0 otherwise |
|
IsEnabled
|
[IsEnabled, Interface item path]
|
Returns 1 if the specified ZBrush or ZScript interface item is currently enabled, returns 0 otherwise Output: The item ‘Enabled’ status (1=Enabled 0=Disabled) |
Example:
[IsEnabled, Transform:Move]
Returns 1 if the “Transform:Move” interface item is currently enabled, returns 0 otherwise |
|
ISet
|
[ISet, Interface item path, value, Secondary value]
|
Sets a new value to a ZBrush or ZScript interface item |
Example:
[ISet, Draw:Width, 50]
Sets the Width slider in the Draw menu to 50 |
|
ISetHotkey
|
[ISetHotkey, Interface item path, Hotkey(0:no Hotkey)]
|
Sets the hotkey of the specified interface item |
Example:
[ISetHotkey, windowID, 'k']
Sets “k” as the hotkey for the specified windowID interface item |
|
ISetMax
|
[ISetMax, Interface item path, New max value]
|
Sets the maximum value for an ISlider interface item (can only be used for ZScript-generated interface items) |
Example:
[ISetMax, Zscript:Counter, 10]
Sets the maximum value of “ZScript:Counter” interface item to 10 |
|
ISetMin
|
[ISetMin, Interface item path, New min value]
|
Sets the minimum value for an ISlider interface item (can only be used for ZScript-generated interface items) |
Example:
[ISetMin, Zscript:Counter, 10]
Sets the minimum value of “ZScript:Counter” interface item to 10 |
|
IShow
|
[IShow, Interface item path, Show Zoom Rectangles?, Target parent window?]
|
Locates an interface item and makes it visible. |
Example:
[IShow, Draw:Width]
Makes the “Draw:Width” item visible. If necessary the “Draw” palette will be opened |
|
IShowActions
|
[IShowActions, The ShowActions status.(0:Disable ShowActions, Positive value:enable show actions, Negative value:Reset ShowActions)]
|
Temorarily sets the status of ShowActions |
Example:
[IShowActions, 0]
Temporarily disables ShowActions |
|
IsLocked
|
[IsLocked, Interface item path]
|
Returns 1 if the specified ZBrush or ZScript interface item is currently locked, returns 0 otherwiseOutput: The item ‘Locked’ status (1=Locked 0=Unlocked) |
Example:
[IsLocked, Transform:Move]
returns 1 if the “Transform:Move” interface item is locked, returns 0 otherwise (*ZBrush 3 only). |
|
IStroke
|
[IStroke, Interface item path, StrokeData]
|
Emulates a brush stroke within an interface item |
Example:
[IStroke, [StrokeLoad, "CurvePoints.txt"]]
Loads the “Curvepoints.txt” file, creates a BrushStroke and applies it to the interface item |
|
IsUnlocked
|
[IsUnlocked, Interface item path]
|
Returns 1 if the specified ZBrush or ZScript interface item is currently unlocked, returns 0 otherwiseOutput: The item ‘Unlocked’ status (1=Unlocked 0=locked) |
Example:
[IsUnLocked, Transform:Move]
returns 1 if the “Transform:Move” interface item is unlocked, returns 0 otherwise (*ZBrush 3 only). |
|
IToggle
|
[IToggle, Interface item path]
|
Toggles the state of a ZBrush or ZScript interface item |
Example:
[IToggle, Draw:ZAdd]
Toggles the ZAdd button in the Draw menu turning ZAdd mode on and off |
|
IUnlock
|
[IUnlock, Window path, Window ID or relative windowID(-100<->100)]
|
Unlocks an interface item |
Example:
[IUnLock, ZScript:DoIt]
unlocks the “DoIt” Zscript window interface item (*ZBrush 3 only). [IUnLock, 1]
unlocks the next interface item (*ZBrush 3 only). |
|
IUnPress
|
[IUnPress, Interface item path]
|
Unpresses a ZBrush or ZScript interface item |
Example:
[IUnPress, Layer:Modifiers:w]
Unpresses the W button in the Modifiers submenu of the Layer menu |
|
IUpdate
|
[IUpdate, Repeat count (default:1), Redraw UI? (default:no, 1:yes)]
|
Updates the ZBrush interface. |
Example:
[IUpdate, 5]
Execute 5 interface-update cycles |
|
IVPos
|
[IVPos, Interface item path , Global coordinates? (set value to non-zero for global coordinates, default:Canvas coordinates)]
|
Returns the V position of the interface item in Canvas or Global coordinates. Output: The V position of the interface item. |
Example:
[IVPos, Draw:Width, 1]
Returns the V position of the “Draw:Width” interface Item in Global coordinates |
|
IWidth
|
[IWidth, Interface item path]
|
Returns the pixel-width of an interface item. Output: The width of the interface item. |
Example:
[IWidth, Tool:SimpleBrush]
with Returns the width of the “Tool:SimpleBrush” interface item. |
|
MergeUndo
|
[MergeUndo]
|
Merge the next undo with the previous undo. |
|
SystemInfo
|
[SystemInfo]
|
Returns System Info (CPU+MEM). |
Output: Result string |
|
ZBrushInfo
|
[ZBrushInfo, The info type. (0:version number 1:Demo/Beta/Full 2:Runtime seconds 3:Mem use 4:VMem Use 5:Free Mem 6:operating system (0:PC 1:Mac 2:MacOSX) 7:Unique session ID 8:Total RAM)]
|
Returns ZBrush info. Output: Result value |
Example:
[ZBrushInfo, 6]
returns the user’s operating system. Useful if there are different requirements for running the zscript on different operating systems. |
|
ZBrushPriorityGet
|
[ZBrushPriorityGet]
|
Returns the task-priority of ZBrush. Output: The current task-priority |
Example:
[ZBrushPriorityGet]
Returns current task-priority. |
|
ZBrushPrioritySet
|
[ZBrushPrioritySet , The priority. -2:Low, -1:BelowNormal, 0:normal, 1:Above Normal, 2:High]
|
Sets the task-priority of ZBrush. |
Example:
[ZBrushPrioritySet, 1]
sets ZBrush priority to above normal. |