Animate changing styles

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Animate changing styles

Post by JCook »

Is it possible to change an object's style by animating from one style to another, so that the first style gradually morphs into the second style?

thanks,
Jack
User avatar
Mikdog
Posts: 1901
Joined: Tue Jul 05, 2005 3:51 pm
Location: South Africa
Contact:

Post by Mikdog »

yes
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Animate changing styles

Post by Víctor Paredes »

JCook wrote:Is it possible to change an object's style by animating from one style to another, so that the first style gradually morphs into the second style?

thanks,
Jack
have you tried to make it?
or it is a rhetoric question?

is this a rhetoric question?
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

i tried it last night, and i couldnt do it... changing style didnt set a keyframe! perhaps someone could enlighten us? :?
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

sorry by my previous post. it's just that the answer of mikdog seemed so forceful that i not even think about if you could change from one style to another in timeline.

i'm sorry, but the answer is no.

what you can do is to create an animated style -i think that it was what mikdog thought- if you change the color of an style in timeline, this change will affect to all the shapes with this style applied.
for example, if you have the "red" style selected, and in the second 3, you change the style color to yellow, all the shapes with the style applied will become from red to yellow at frame 3.
User avatar
Mikdog
Posts: 1901
Joined: Tue Jul 05, 2005 3:51 pm
Location: South Africa
Contact:

Post by Mikdog »

Oh...I thought you meant like change from a realistic style to a cartoon style. My bad. Selgin's right - you can't change the STYLE SETTING on the timeline. It would be nice, but impractical to program. You'll have to change colour, line width, etc...manually.
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Post by JCook »

I was away for the weekend and just saw these responses on the forum.

I did try to set a keyframe to go from Style A to Style B, but it didn't work, so I figured it couldn't be done. But you never know when something is possible with some sort of hidden settings, or a novel technique. What I ended up doing was changing the color manually and not using styles for this. It worked fine, but it would be nice to be able to animate from one style to another in the timeline.

thanks,
Jack
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

agreed

-----------

I dont know if this helps, but what you CAN do is keyframe colour changes on the style itself... if you select the style you'll notice the timeline for colour changes goes blank - here you can keyframe outline/colour changes for a style itself, so all object asigned that style will automatically be affected...
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

funksmaname wrote:I dont know if this helps, but what you CAN do is keyframe colour changes on the style itself... if you select the style you'll notice the timeline for colour changes goes blank - here you can keyframe outline/colour changes for a style itself, so all object asigned that style will automatically be affected...
That's cool!!
Also outline color can be changed! In fact style fill color and style outline color is an property that can change in the timeline as it is documented in the Moho script reference.
It allows you animate fill color and line color to a group of affected shapes with the same style without the need to change each shape's fill color and line color in the timeline. Change only the style. It sould be cool for a transition between day and night were a lot of shapes change its luminosity.

-G
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

yeah, thats what i said - but you said it better :)
User avatar
Víctor Paredes
Site Admin
Posts: 5815
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

funksmaname wrote:yeah, thats what i said - but you said it better :)
:oops: and actually i tried to explain this too.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

How about actions?

Could you change or create "styles" using an action? This would be kind of cool if it could be key framed.

An action would store the "styles" instead of a style. It could be called an "action style". Apply the action of an "action style" and you COULD animate between them... sort of.

Will have to test this.

-vern
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

Good thinking vern,
Yeah Selgin hehe i just realised you said it first :lol:
AlanPS
Posts: 105
Joined: Thu Sep 29, 2005 12:23 am

yeppers

Post by AlanPS »

I've animated gradients through style changes. You can have a blue sky turn blood red- or make a guy's hair go DBZ super-sayin and turn white.
The gradients sometimes can look "bandy" though when changing.
Post Reply