Custom scripts (Feature Suggestion)

Ever since the bug where the unload script stopped working started, I’ve been using the unload script as an “extra” script where I write in long lines of code and run it when needed.

My suggestion is that wick adds a way for the user to add a “new” script type that they can name, give a color, and add code there separately, and have the option to include the script in an individual, or in multiple objects.

For example, let’s say I was creating a game where the player is multiple characters into one clip. Rather than having functions, lines, and code everywhere in the clip and check the clips timeline, and have it act differently based on its character using variables and other methods, I think it would be more organized if I add a script for every character separately in the clip, name the scripts something based on the characters and color code them, and run the script that I need when needed.

I think that this could be a good way of organizing code.

1 Like

And also an autorun toggle, so you can choose for it to run automatically, when a certain condition is met (example: when a certain object is at certain xy coords) or manually using runScript(‘’)

you could just write the code for the clips in functions and have clear separators between them like this:

// FUNCTION A /////////////////////////////////
this.functionA = function() {

}

///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
// FUNCTION B /////////////////////////////////
this.functionB = function() {

}

then run it like this:

clip.functionB();

and for the

you can define the functions in the project object or window. but i can see how this can help with separating code. i think that’s called like modularity or something modularizing idk

1 Like

that works, but maybe the script thing would be easier to organize.

1 Like