Edit PixelScript Dialog (Studio)

Top  Previous  Next



The Edit PixelScript dialog, available in the Studio edition of Genetica, is where image manipulation scripts are written and tested.  You can get to this dialog from the PixelScript node.







1. Presets Tab


The Presets tab provides access to preset environment maps along with the ability to add and remove custom presets.  Refer to Working with Dialog Presets for an explanation of this tab.




2. Edit Tab


The primary area of the Edit tab provides a text workspace where PixelScript code can be typed in.  Refer to PixelScript Language for an explanation of writing PixelScripts.






Moves whatever text is currently selected in the text area to the clipboard.


Copies any selected text to the clipboard.


Pastes text from the clipboard into the code area.


Undoes the last code edit.


Redoes an undone change.


Opens a dialog that allows you to search the code area for specific pieces of text.


Opens a dialog allowing automatic find-and-replace actions to be performed.

Run Script

Runs the entered script for testing purposes.




3. Output Area


The top left corner of the output area shows a preview of the current script.  If this preview is out of date, click the Run Script button to run the script.  If the script due to errors, correct the errors and then click Run Script again.


The bottom portion of the output area displays information from the last time the script was run that will be useful for debugging.  The following lines will appear.





Debug Pixel

The coordinates of the pixel used for debugging.  If debug information was printed for every pixel, tens of thousands of lines would appear and it would be too much information to sift through.  Instead, debug code is only run for a single pixel of the image, as specified by the Debug Pixel numeric controls at the top right of the output section.

Input 1

The color of the node's first input at the debug pixel coordinates.

Input 2

The color of the node's second input at the debug pixel coordinates.


The values of the node's various properties.

Optional debug lines

The output of any debug function calls in the script will appear.  For example, debug("Hello world!"); will cause "Hello world!" to appear.  Examples of this function being used can be found here.


The color of the script output at the debug pixel coordinates.




4. Inputs Section


The inputs section provides sample input images with which to test your script.  The "Inputs" button must be pressed for this section to appear.




5. Properties Section


Pressing the "Properties" button in the section bar reveals the properties section.  Here you can name and set values and ranges for the properties controlling your script.  Press the trash icon to the right of a property line in order to reset its values.  See Using Properties for more information on using node properties with your scripts.



Proceed to PixelScript Language to learn how to write scripts.




Page URL: http://www.spiralgraphics.biz/genetica/help/index.htm?edit_pixelscript_dialog.htm