- New types
script
save_config
- Constants
- Scope constants that evaluate to
int
$SE.PROJECT
=0
$SE.LAYER
=1
$SE.FRAME
=2
$SE.CEL
=3
- Save type constants that evaluate to
int
$SE.NATIVE
=0
$SE.PNG_SHEET
=1
$SE.PNG_SEPARATE
=2
$SE.GIF
=3
$SE.MP4
=4
- Dimension constants that evaluate to
bool
$SE.HORZ
=true
$SE.VERT
=false
- Added
layer
functions; for somelayer L
...-
L.get_name() -> string
-
L.set_name(string);
-
- Added
project
functions; for someproject P
...-
P.get_width() -> int
-
P.get_height() -> int
-
P.get_layer(string) -> layer
-
P.get_save_config() -> save_config
-
P.save_as(save_config);
-
- Added global functions
-
$SE.read_script(string) -> script
-
$SE.new_save_config(string[], string, int) -> save_config
-
$SE.transform(project, script, bool, bool) -> project
-
$SE.transform(project, script) -> project
-
$SE.new_project(int, int, bool) -> project
-
- Scope constants that evaluate to
- Renamed
layer
functions; for somelayer L
...- Renamed
L.get_frame(int)
toL.get_cel(int)
- Renamed
L.set_frame(int, image)
toL.set_cel(int, image)
- Renamed
L.wipe_frame(int, image)
toL.wipe_cel(int, image)
- Renamed
L.edit_frame(int, image)
toL.edit_cel(int, image)
- Renamed
L.link_frames()
toL.link_cels()
- Renamed
L.unlink_frames()
toL.unlink_cels()
- Renamed
L.disable_layer()
toL.disable()
- Renamed
L.enable_layer()
toL.enable()
- Renamed
- Removed the property
mutable
of the typepalette
- API references to
LAYER-FRAME
have been renamed toCEL
; no changed behaviour
project
frame duration functions:-
P.get_frame_duration(int i) -> float
-
P.get_frame_durations() -> float[]
-
P.set_frame_duration(int i, float frame_duration);
-
- Separated selection from scope in color actions
- Modified
scope
enumeration:0: PROJECT 1: LAYER 2: FRAME 3: LAYER_FRAME
- Changed
project
color action function signatures:-
P.palettize(palette pal, int scope, bool include_disabled, bool ignore_selection);
-
P.extract_to_pal(palette pal, int scope, bool include_disabled, bool ignore_selection);
-
P.hsv_shift(int scope, bool include_disabled, bool ignore_selection, int h_shift, N s_shift, N v_shift);
-
P.color_script(int scope, bool include_disabled, bool ignore_selection, string script_path);
-
- Modified
Note: This update completely redesigned the API and altered the syntax of every API function. Scripts that utilize API functions that were written for versions 0.4.0 or 0.4.1 will need to be rewritten in order to execute on subsequent versions of Stipple Effect.
palette
type- Global namespace
$SE
project
color action functions:-
P.palettize(palette pal, int scope, bool include_disabled);
-
P.extract_to_pal(palette pal, int scope, bool include_disabled);
-
P.hsv_shift(int scope, bool include_disabled, int h_shift, float s_shift, float v_shift);
-
P.color_script(int scope, bool include_disabled, string script_path);
-
- Renamed
set_frame_content
toset_frame
- Renamed
get_frame_content
toget_frame
- Initial release of the scripting API