Gradient fill on the editor window

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Fazek
Posts: 246
Joined: Thu Apr 13, 2006 5:37 am
Location: Hungary
Contact:

Gradient fill on the editor window

Post by Fazek »

My question is about the gradient fill of shapes (and about other effects on this part). Is it possible to view these on the editor window? A masked moving gradient fill is good for some light effects, but it is hard to make it if I can't see. Now I made it with a bitmap image instead, because I can see it on the editor window, but it is not as exact as the built-in version. And the bitmap image has less ways to animate, and hard to change its color.

My second question: is it possible to change the direction of the linear gradient, other than its angle parameter? It seems it is immune to the layer and point rotation...

For example in Synfig, the gradients are defined with two, animated points. I think it is a very comfortable way to use this nice effect.
- - - Fazek
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

Sorry dude...

Everything you said is basically... a no.

You can't view effects in edit mode (icky)... and the gradient is lacking in features (also icky).

However you can animate the gradient angle... so instead of rotating the layer to change the gradient... uh... well... that would be a pain if you have to do both wouldn't it?

Anyway... you CAN animate the angle of a gradient... but it is NOT effected by layer transformations.. this is not a good thing. Hopefully... it will get fixed.

---------------

There is one little trick I use with gradient shapes. I create a single vector off to the side of the gradient and include it with the shape for the gradient.

This allows you to move that little piece of the shape around... changing the "size" and position of the gradient shape effect.

Depending on what you need it can help a bit with positioning.

p.s. I do a LOT of quick renders when working with gradients.

-vern
User avatar
Fazek
Posts: 246
Joined: Thu Apr 13, 2006 5:37 am
Location: Hungary
Contact:

Post by Fazek »

I tried your trick, I made a closed curve and connected a single external point to one point of this curve. After it, I created a fill shape on all of these points. But it seems the external point has no effect to the position of the gradient pattern. I don't know how these gradients are calculated (maybe it is using the size of the filled bitmap), but it is strange. Maybe it is better to use a masked shape instead....

However... maybe it is possible to create a gradient manipulation tool. It could translate a user-friendly editing into Moho's parameters (M_Style:SetShading ?) and it could preview the gradients somehow on the editor window.

It seems the M_Style definition is a bit obsolete in the manual (where are the multiple effects?)
- - - Fazek
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

The extra point won't effect the position of the gradient... but I use it to change the "size" of the gradient.

By moving the extra point I can expand or contract the gradient.

I usually use a two point path. Then I can expand beyond both ends of the gradient... sort of... almost like masking the gradient.

I find this is great for changing the center location of radial gradients.

-vern
Post Reply