Custom Wick Editor

I’m currently working in something that I wanted since I start using the editor:

5 Likes

YESSSSS! This is what I’ve been waiting for.

amazing :DDD

i do have a couple of questions though.

  • can you name those clips and then interact with them after they are created?
  • does this work with things like images too?

I havent done anything regarding that yet.

Not yet, only clips added with ctrl+e etc…

One day at a time :grinning:

1 Like

Including depths and other things…
FlashyDepthDemo.html (2.1 MB)

1 Like

Update: Done.

To simplify my life, I just changed the cmd+e key command from exporting the wickobj out of the project, to adding the clip to the library. When you do that, the clip will be removed from the canvas and it will live only in the library until you want to update it. If you want to update it, for now, you have to click on the asset (at the library) and add it to the canvas (or drag it). After that, just update the clip. At that point the one on the canvas is different than the one on the library… you could add it again to the library, but both will coexist until you either want both of them or delete one of them. Does this make any sense?

oh I forgot, yes, you can do as follows:

window.myClip = attachClip("nameOfClip");
myClip.x = 30; // and so on...

It is getting very interesting… kind of hard, but I like these kind of challenges. :cowboy_hat_face:

You can also know the clip depth…

// this will return a number from zero layer's children length-1
// zero being the one on the back.

myClip.depth

there is also a…

myClip.swapDepth(otherClip); // you get the idea...

and things like

myClip.scale = 0.4; // this will set both scaleX and scaleY myClip.moveToLayer(layerNumber)

2 Likes

this is very interesting… i’m super excited to see how we can utilize methods/functions like these.

Now, cmd+e exports the selected clip as always, but cmd+l send it to the library : )

I have added also:

this.block = attachClip("block");
this.block.position = [300,500];

These small things make my programming life easier.

1 Like

I was able to generate this circle with shadows/glow, so we should be able to have clips with these effects and others more to come directly from paper.

The future is bright… : )

3 Likes

You could also add a right click context menu

1 Like

Glows and Shadows:

Here are some things that I have been fixing / improving or adding…

2 Likes

I’m at a loss for words. All we now are gradients.

Here is a small demo:
GlowBullets.html (2.2 MB)

2 Likes

I’m excited for this custom wick editor.

1 Like

experimenting a little bit:
WickParticles11-29-2021_21-23-56.html (2.2 MB)

2 Likes

This one is creating squares from paper code, no clip was on the scene or on the asset lib prior to exporting it… the behavior is just a particle class that Im designing…
WickParticles11-30-2021_22-20-33.html (2.5 MB)

1 Like

Nice! Somehow it isn’t lagging…

1 Like

It would be cool if there was like a link to the custom wick editor but I mean a demo

same thing but with five point stars:
WickParticles12-2-2021_22-02-30.html (2.5 MB)

1 Like

WickParticlesSystem12-4-2021_1-10-26.html (3.6 MB)

3 Likes