Manual Flame Fractals

From MediaWiki
Revision as of 22:56, 5 March 2015 by Thargor6 (Talk | contribs) (Import the scripts)

Jump to: navigation, search

Scripts

Scripts are a very powerful and flexible way for users to extend the software. They are written in the Java programming language and are not compatible with scripts known from the Apophysis software (which are written in the Delphi-dialect of pascal)

Even if most available scripts are used to create (random) flames, they are not restricted to create flames. You could also create a calculator or anything else you can imagine.

How do scripts work

JWildfire uses it's integrated Java-compiler to compile the scripts on-the-fly into executable code. This means that could also perform serious calculations in your scripts, because they are fast. And you may use the common Java-libraries and all libraries which are part of JWildfire.

How to use existing scripts from other users

Create a script-folder

In order to work with scripts, you have to first to create a folder were your scripts are stored. As with all of your own data, this folder should be OUTSIDE of the JWildfire folder. So, if you remove/update the JWildfire software, your data is always kept safe. If you have no idea how to name it, you can just create a folder "D:\JWildfire-Data\scripts"

Tell the software about your script-folder

After creating the folder you must enter it's complete path into the Preferences. So, open the Preferences-window from within the main window-menu and locate the property tinaJWFScriptPath. Copy the script path, in this example "D:\JWildfire-Data\scripts". Double-click at the row with the parameter in the 2nd column, so that you can enter text. Paste the script-path and press <ENTER> and press the Save and Close-button

Import the scripts

To import a script just extract the *.zip-file to your script-folder so that the *.jwscript and *.txt-files are directly located into the script-folder (without sub-folder). Example: If you have downloaded a script "butterfly.zip", it should contain two files "butterfly.jwfscript" and "butterfly.txt". Copy this two files directly in the script-folder.

Press the Rescan-button on the Script-tab to refresh the script-view inside of the software.

In the example you should then see a new item "butterfly"