Animate *Color in Sprites op?

Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 09:33

Hi, All.
The anim editor does not recognize Color as a variable though it is supposed to animatable (Error: Line1: Unknown Symbol 'Color').
Has anyone tried that? Is this a bug or it's just me? Thank you.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby ikam » Sunday, 17.June 2012, 09:45

which op ?
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 09:53

Yellow Sprites op.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby ikam » Sunday, 17.June 2012, 10:21

it looks like a problem between the color type and the name (type color exist in script)
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 10:28

Yes. That's the problem. Anything can be done about it?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby reEto » Sunday, 17.June 2012, 11:33

no problems in there, define splines to animate :)
User avatar
reEto
Partikelmeister
Partikelmeister
 
Posts: 75
Joined: Monday, 14.December 2009, 18:20

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 11:37

thanks for the hint, but how do I bind a spline to the variable (*Color) that can't be recognized as such?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby ikam » Sunday, 17.June 2012, 13:16

I think there is really a bug with sprites color, with conflit name/type. I've renamed Color param to Colora for testing
And script now working. However it's not very intuitive to anim color with spline :p
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 13:49

ikam
Great! Well done. It works! Several off-top remarks though:
1. Do you think this change will not conflict with older wz4 files?
2. Will you post a pull request for this change?
3. What is [0..3]? Some sort of interval for the spline (or its point count?) I guess... If I set it to smth 0..2 or 0..4 it doesn't work...
4. No big deal, but Calora seems a bit less obvious than Colors. Can you call this variable just "Colors"?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 14:10

I noticed that Color type conflicts in any op that uses Color as a variable.
Same goes for animated tetures. Take a look at the example. Maybe the type itself should be renamed?
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op?

Postby Skinnytorus » Sunday, 17.June 2012, 14:15

But what about compatibility then?... :roll:
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op? [Solved]

Postby Skinnytorus » Sunday, 17.June 2012, 14:35

OK, guys! I have found the answer!!! \:D/
Use 'color_' variable to animate colors!
Many thanks for your help!!! Closing the issue.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op? [Solved]

Postby ikam » Sunday, 17.June 2012, 15:03

could you share an example please ;)
thks
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Animate *Color in Sprites op? [Solved]

Postby Skinnytorus » Sunday, 17.June 2012, 15:13

With pleasure.
here: viewtopic.php?f=43&t=1069
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Animate *Color in Sprites op? [Solved]

Postby ikam » Sunday, 17.June 2012, 18:44

from where come this variable ?
If I comment it, it doesn't change anything...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France


Return to Support



Who is online

Users browsing this forum: No registered users and 18 guests

cron