Multiple Layer scripts stored in the scripts folder...
Posted: Thu Jan 22, 2009 10:17 am
Multiple Layer Scripts for one layer
A new folder in the scripts folder called "Layer" or "Layer Scripts". This folder will behave like the tool, utility or menu scripts folder allowing multiple layer scripts to be accessed by an AS file. (Could just use the existing "Utility' script folder as well)
In the AS file there will be the option to type in or select a reference to a layer script inside the Layer Scripts folder.
Steps:
1. Click the layer options button
2. At the bottom along with the "Embedded Script File" check box there would be a text entry box or field. Type in the name or names of any layer script that has been placed in the Layer Script folder inside the scripts folder of the AS application directory. Names of scripts in the layer options layer script text entry field would be separated by a comma or some other delimiter character.
The order of the listing of the layer scripts would determine when they "load" or activate on the layer so they perform actions or load variables in a specific order. For instance one layer script listed first would only contain numerous variables that OTHER layer scripts could use. Or a layer script could hold many common often repeated functions that several other layer scripts could call.
Optional
Or better yet, as an optional feature make the "field" a functioning script entry box. A small text field to enter lua code directly into the layer. This would be a HUGE bonus for testing out simple snippets of code during development.
-----
Optional
The layer script selection in the layer options window could be a menu or text field that lists all the scripts available in the layer scripts folder. This list would be "generated" when AS is launched just like tool and menu scripts. Multiple scripts would be selected in someway by multiple selection in a menu or in some kind of text field. There should be a way to change the order they are loaded when the script runs.
Optional
Global layer scripts. A group or bone layer would have a check box to make the layer script run on all sub layers as well as the parent layer.
-----
Now all functions and features of the scripts entered in the layer scripts field of the layer options will work the same as if an external script file were embedded in that layer.
This feature would make layer scripts behave the same as tool, menu or utility scripts. Instead of only one external linked script file for each layer, any number of scripts could be "linked" to a layer allowing for unlimited layer scripts and also a centralized storage system. All layer scripts would be in one location.
-vern
A new folder in the scripts folder called "Layer" or "Layer Scripts". This folder will behave like the tool, utility or menu scripts folder allowing multiple layer scripts to be accessed by an AS file. (Could just use the existing "Utility' script folder as well)
In the AS file there will be the option to type in or select a reference to a layer script inside the Layer Scripts folder.
Steps:
1. Click the layer options button
2. At the bottom along with the "Embedded Script File" check box there would be a text entry box or field. Type in the name or names of any layer script that has been placed in the Layer Script folder inside the scripts folder of the AS application directory. Names of scripts in the layer options layer script text entry field would be separated by a comma or some other delimiter character.
The order of the listing of the layer scripts would determine when they "load" or activate on the layer so they perform actions or load variables in a specific order. For instance one layer script listed first would only contain numerous variables that OTHER layer scripts could use. Or a layer script could hold many common often repeated functions that several other layer scripts could call.
Optional
Or better yet, as an optional feature make the "field" a functioning script entry box. A small text field to enter lua code directly into the layer. This would be a HUGE bonus for testing out simple snippets of code during development.
-----
Optional
The layer script selection in the layer options window could be a menu or text field that lists all the scripts available in the layer scripts folder. This list would be "generated" when AS is launched just like tool and menu scripts. Multiple scripts would be selected in someway by multiple selection in a menu or in some kind of text field. There should be a way to change the order they are loaded when the script runs.
Optional
Global layer scripts. A group or bone layer would have a check box to make the layer script run on all sub layers as well as the parent layer.
-----
Now all functions and features of the scripts entered in the layer scripts field of the layer options will work the same as if an external script file were embedded in that layer.
This feature would make layer scripts behave the same as tool, menu or utility scripts. Instead of only one external linked script file for each layer, any number of scripts could be "linked" to a layer allowing for unlimited layer scripts and also a centralized storage system. All layer scripts would be in one location.
-vern