If you modify Wick using the instructions in the README, you can try adding a function to send a Clip forwards/backwards into this file: wick-editor/engine/src/base/tickable/clip/Clip.js
This is a really convenient file. I think it contains every property/function for Clips that’s exposed in the Wick API (along with a few hidden ones, but I’m not sure if they work).
It might look something like this:
/**
* Move this clip to the front of the Z stack.
* EDIT: put this.view in brackets
*/
bringToFront () {
paper.OrderingUtils.bringToFront([this.view]);
}
I would probably insert this at line 503 of that file, but I only studied the code online at Github I’m not sure whether it’ll work
If it does, yay! It will most likely not be exposed in the script editor’s reference, though.
edit: I did try running this code in Wick itself, attached to a clip, and it gave me an error: "item.layer
is undefined." I think it expects a View.Selection
type object but is given a View.Clip
type object.
You also might have to recompile the wickengine.js file for the function to work while the project is running. I haven’t cloned the alpha editor locally before so I’m not an expert on whether you need to do that or how 