This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2012-04-14 10:31:10

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

Oooh!
.flame please?  smile  I might just animate those. They look really nice.

Sure, I'll post the code up later.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#27 2012-04-14 11:54:38

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

scratchisthebest wrote:

Oooh!
.flame please?  smile  I might just animate those. They look really nice.

Sure, I'll post the code up later.  smile

Yaaaaaaay!  big_smile


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#28 2012-04-16 22:31:17

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

cheddargirl wrote:

scratchisthebest wrote:


Oooh!
.flame please?  smile  I might just animate those. They look really nice.

Sure, I'll post the code up later.  smile

Yaaaaaaay!  big_smile

No flame (too lazy to find a file site), but just copy the code and then hit CTRL+V in the Apophysis window.  smile

Fractal 1

Code:

<flame name="Apophysis-101017-190" version="Apophysis 7x Version 15" size="578 435" center="0 0" scale="259.54" oversample="1" filter="0.5" quality="50" background="0 0 0" brightness="4" gamma="4" gamma_threshold="0.04" estimator_radius="9" estimator_minimum="0" estimator_curve="0.4" enable_de="0" plugins="" >
   <xform weight="0.5" color="0" linear="1" spherical="1" coefs="1 0 0 1 0 0" opacity="1" />
   <xform weight="0.5" color="0.0101010101010101" juliascope="0.5" coefs="0.33918 0 0 0.33918 1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0202020202020202" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.2 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0303030303030303" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0404040404040404" juliascope="0.5" coefs="0.201273 0 0 0.201273 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0505050505050505" julian="0.8" coefs="1 0 0 1 0 0" julian_power="6" julian_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0606060606060606" linear="1" coefs="0.845723 0.307818 -0.307818 0.845723 0 0" opacity="1" />
   <xform weight="0.5" color="0.0707070707070707" linear="1" coefs="0.612836 0.51423 -0.51423 0.612836 0 0" opacity="1" />
   <xform weight="0.5" color="0.0808080808080808" linear="1" coefs="0.35 0.606218 -0.606218 0.35 0 0" opacity="1" />
   <xform weight="0.5" color="0.0909090909090909" linear="1" coefs="0.104189 0.590885 -0.590885 0.104189 0 0" opacity="1" />
   <xform weight="0.5" color="0.101010101010101" linear="1" coefs="-0.086824 0.492404 -0.492404 -0.086824 0 0" opacity="1" />
   <xform weight="0.5" color="0.111111111111111" linear="1" coefs="-0.2 0.34641 -0.34641 -0.2 0 0" opacity="1" />
   <xform weight="0.5" color="0.121212121212121" linear="1" coefs="-0.229813 0.192836 -0.192836 -0.229813 0 0" opacity="1" />
   <xform weight="0.5" color="0.131313131313131" linear="1" coefs="-0.187939 0.068404 -0.068404 -0.187939 0 0" opacity="1" />
   <xform weight="0.5" color="0.141414141414141" linear="1" coefs="-0.1 0 0 -0.1 0 0" opacity="1" />
   <palette count="256" format="RGB">
      AA3B1CAA3F1C8144254454254D6D2551792F51712F5D7138
      65854B758D5589A15E8DA254C2AD41DA8B2FDE7725D6672F
      D66A25C25F1C914C254C6925345012204409203C12203012
      2038122C48124069256189388DB25EAAC67AEED17AFAE154
      E6972EE67A25E67A25DB6925CA5E25B64C1C853712542B09
      241B091C20001C3009204009405C1C54793869914B91AE67
      96B27195AE718DAA71718D55516D4240442F24341C101812
      0C0C090408000004000004000004000000000400000C0000
      100B00240F00441712812612AA3712C25F1CB27C2F9AAE67
      A6C27AAACA7AB2D28DBEDAA0BED297CAD697E2DE84B6DA8D
      B6D28DBACE8DBECE97C6CEA9D2DAB3EAE6C5EAEAC5FAF1BC
      F6E5BCEAC08DD2AC96BECA96B2C697B6CE8DB6CA8DB6C684
      AACA84A6C6849EBA7A8DB27171954B5175383C542530401C
      1838091428091418090C1009070C09040809080409140709
      1C0F09241709502712812F12B23B12C65725DB6625DE6625
      DE751CE2871CE68E1CF29225FA9B1CF6BB1CEA7F2FFABC67
      FAE170FAE154FED32EFECF2EFED04ADAB55E957867597942
      405D2F203C12142C09041800000C00040800000400000400
      000400040000040000040400040400040800040800040800
      000400000000000009000000000000000000000000000000
      0000000400000404000C0800101000201000381B09593309
      7D4309A63F12B24812C65A1CBE6B259D703899632F597938
      55653871481CB65025CE6225D26625D66E1CD66E1CDA7625
      DE6E1CE27225DE6E2FEE6F41C6A054A99470A1BA7AAAC284
      BECE97CED6A0E2EEBCF6EEC5FEFAFEFAFECEF2FECEE6EEC5
      C6D6A0AAC284919571546D423840251C2C12182409141409
      201309300F09652712892F12A63313913712652F12442712
      2038091C2C09141C09101409081000081000040C00041000
      081409102009143012284812446D2561813889AA6795B671
      91B67181A15E69854B4459383C4C253040253C441C713712
      A63313BE4C1CCA5B1CD25E1CD2621CC657129E3709692200
      2C0F001404000C00000804000408000810001020091C3409
   </palette>
</flame>

Fractal 2

Code:

<flame name="Apophysis-101017-191" version="Apophysis 7x Version 15" size="578 435" center="0 -0.03" scale="231.2" oversample="1" filter="0.5" quality="50" background="0 0 0" brightness="4" gamma="4" gamma_threshold="0.04" estimator_radius="9" estimator_minimum="0" estimator_curve="0.4" enable_de="0" plugins="" >
   <xform weight="0.5" color="0" linear="1" spherical="1" coefs="1 0 0 1 0 0" opacity="1" />
   <xform weight="0.5" color="0.0101010101010101" juliascope="0.5" coefs="0.33918 0 0 0.33918 1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0202020202020202" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.2 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0303030303030303" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0404040404040404" juliascope="0.5" coefs="0.201273 0 0 0.201273 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0505050505050505" julian="0.8" coefs="1 0 0 1 0 0" julian_power="6" julian_dist="1" opacity="1" />
   <xform weight="0.5" color="0.0606060606060606" linear="1" coefs="0.845723 0.307818 -0.307818 0.845723 0 0" opacity="1" />
   <xform weight="0.5" color="0.0707070707070707" linear="1" coefs="0.612836 0.51423 -0.51423 0.612836 0 0" opacity="1" />
   <xform weight="0.5" color="0.0808080808080808" linear="1" coefs="0.35 0.606218 -0.606218 0.35 0 0" opacity="1" />
   <xform weight="0.5" color="0.0909090909090909" linear="1" coefs="0.104189 0.590885 -0.590885 0.104189 0 0" opacity="1" />
   <xform weight="0.5" color="0.101010101010101" linear="1" coefs="-0.086824 0.492404 -0.492404 -0.086824 0 0" opacity="1" />
   <xform weight="0.5" color="0.111111111111111" linear="1" coefs="-0.2 0.34641 -0.34641 -0.2 0 0" opacity="1" />
   <xform weight="0.5" color="0.121212121212121" linear="1" coefs="-0.229813 0.192836 -0.192836 -0.229813 0 0" opacity="1" />
   <xform weight="0.5" color="0.131313131313131" linear="1" coefs="-0.187939 0.068404 -0.068404 -0.187939 0 0" opacity="1" />
   <xform weight="0.5" color="0.141414141414141" linear="1" coefs="-0.1 0 0 -0.1 0 0" opacity="1" />
   <finalxform color="0" symmetry="1" juliascope="1" coefs="1 0 0 1 0 -0.4" juliascope_power="2" juliascope_dist="1" />
   <palette count="256" format="RGB">
      345012204409203C122030122038122C4812406925618938
      8DB25EAAC67AEED17AFAE154E6972EE67A25E67A25DB6925
      CA5E25B64C1C853712542B09241B091C20001C3009204009
      405C1C54793869914B91AE6796B27195AE718DAA71718D55
      516D4240442F24341C1018120C0C09040800000400000400
      0004000000000400000C0000100B00240F00441712812612
      AA3712C25F1CB27C2F9AAE67A6C27AAACA7AB2D28DBEDAA0
      BED297CAD697E2DE84B6DA8DB6D28DBACE8DBECE97C6CEA9
      D2DAB3EAE6C5EAEAC5FAF1BCF6E5BCEAC08DD2AC96BECA96
      B2C697B6CE8DB6CA8DB6C684AACA84A6C6849EBA7A8DB271
      71954B5175383C542530401C1838091428091418090C1009
      070C090408090804091407091C0F09241709502712812F12
      B23B12C65725DB6625DE6625DE751CE2871CE68E1CF29225
      FA9B1CF6BB1CEA7F2FFABC67FAE170FAE154FED32EFECF2E
      FED04ADAB55E957867597942405D2F203C12142C09041800
      000C00040800000400000400000400040000040000040400
      040400040800040800040800000400000000000009000000
      0000000000000000000000000000000400000404000C0800
      101000201000381B095933097D4309A63F12B24812C65A1C
      BE6B259D703899632F59793855653871481CB65025CE6225
      D26625D66E1CD66E1CDA7625DE6E1CE27225DE6E2FEE6F41
      C6A054A99470A1BA7AAAC284BECE97CED6A0E2EEBCF6EEC5
      FEFAFEFAFECEF2FECEE6EEC5C6D6A0AAC284919571546D42
      3840251C2C12182409141409201309300F09652712892F12
      A63313913712652F124427122038091C2C09141C09101409
      081000081000040C00041000081409102009143012284812
      446D2561813889AA6795B67191B67181A15E69854B445938
      3C4C253040253C441C713712A63313BE4C1CCA5B1CD25E1C
      D2621CC657129E37096922002C0F001404000C0000080400
      0408000810001020091C3409AA3B1CAA3F1C814425445425
      4D6D2551792F51712F5D713865854B758D5589A15E8DA254
      C2AD41DA8B2FDE7725D6672FD66A25C25F1C914C254C6925
   </palette>
</flame>

Fractal 3

Code:

<flame name="Apophysis-101017-191 XMAS" version="Apophysis 7x Version 15" size="578 435" center="0.194 0" scale="231.2" angle="-1.5707963267949" rotate="90.0000000000002" zoom="0.709" oversample="1" filter="0.5" quality="50" background="0 0 0" brightness="4" gamma="4" gamma_threshold="0.04" estimator_radius="9" estimator_minimum="0" estimator_curve="0.4" enable_de="0" plugins="" >
   <xform weight="0.5" color="0.623" linear="1" spherical="1" coefs="1 0 0 1 0 0" opacity="1" />
   <xform weight="0.5" color="0.766" juliascope="0.5" coefs="0.33918 0 0 0.33918 1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.948" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.2 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.805" juliascope="0.5" coefs="0.33918 0 0 0.33918 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.948" juliascope="0.5" coefs="0.201273 0 0 0.201273 0.1 0" juliascope_power="6" juliascope_dist="1" opacity="1" />
   <xform weight="0.5" color="0.714" julian="0.8" coefs="1 0 0 1 0 0" julian_power="6" julian_dist="1" opacity="1" />
   <xform weight="0.5" color="0.312" linear="1" coefs="0.845723 0.307818 -0.307818 0.845723 0 0" opacity="1" />
   <xform weight="0.5" color="0.805" linear="1" coefs="0.612836 0.51423 -0.51423 0.612836 0 0" opacity="1" />
   <xform weight="0.5" color="0.714" linear="1" coefs="0.35 0.606218 -0.606218 0.35 0 0" opacity="1" />
   <xform weight="0.5" color="0.792" linear="1" coefs="0.104189 0.590885 -0.590885 0.104189 0 0" opacity="1" />
   <xform weight="0.5" color="0.818" linear="1" coefs="-0.086824 0.492404 -0.492404 -0.086824 0 0" opacity="1" />
   <xform weight="0.5" color="0.805" linear="1" coefs="-0.2 0.34641 -0.34641 -0.2 0 0" opacity="1" />
   <xform weight="0.5" color="0.688" linear="1" coefs="-0.229813 0.192836 -0.192836 -0.229813 0 0" opacity="1" />
   <xform weight="0.5" color="0.727" linear="1" coefs="-0.187939 0.068404 -0.068404 -0.187939 0 0" opacity="1" />
   <xform weight="0.5" color="0.792" linear="1" coefs="-0.1 0 0 -0.1 0 0" opacity="1" />
   <finalxform color="0.701" symmetry="1" curl="1" coefs="1 0 0 1 0.4 0" curl_c1="0.668321" curl_c2="0.134712" />
   <palette count="256" format="RGB">
      FF8B8BFF8888FF8383FF8181FF8080FF7E7EFF7B7BFF7979
      FF7777FF7783FF768EFF769AFF75A6FF75B1FF74BDFF74C9
      FF73D4FF73E0FF72F8FF71FBFF71FFFF6BEDFF65DBFF5FC9
      FF5AB7FF54A5FF4E93FF4881FF426FFF3C5DFF374BFF2D2D
      FA293AF62548F12155ED1E63E81A70E4167EDF128BDB0E99
      D60AA6D106B4CD02C1CA00CACC00B9CE00A7CF0096D10085
      D30073D50062D70050D8003FDA002EDC001CDE000BDF0000
      D90C06D4180CCE2413C82F19C33B1FBD4725B7532BB25F32
      AC6B38A6773E9D8A489D7E429E723C9E66359F5B2FA04F29
      A04323A1371DA12B16A21F10A3130AA30804A40000A00000
      9C00009800009400009000008C0000880000840000800000
      7C0000750000FF0000D31616BD2121A72C2C9137377C4242
      714747664D4D3A63631D7171008080008B8B00969600A1A1
      00ACAC00B1B100B7B700CCCC00D7D700E2E200EDED00F8F8
      00FBFB00FFFF2CF0FF42E8FF58E0FF6DD8FF83D1FF8ECDFF
      99C9FFAFC2FFC5BAFFFFA6FFE9A2FFD39FFFBD9CFFA799FF
      9C97FF9196FF668FFF508CFF3A89FF2485FF0E82FF0781FF
      0080FF0B80FF1680FF2C80FF3780FF4280FF4D80FF5880FF
      5D80FF6380FF7980FF7785F4758BE96A96D35FA1BD59A6B2
      54ACA749B7913EC17C28D7501DE23A12ED2409F61200FF00
      16E9002CD30058A7006D9100837C00996600AF5000BA4500
      C53A00DB2400F10E00E90B00D31600BD2100B22600A72C00
      9137007C42005058003A6300246E001973000E7900008000
      0A7500146A001E5F003249003C3E004633004B2D00502800
      5A1D006512008100008C00009800009E0000A40000AF0000
      BB0000C70000D20000EA0000F00000F60000FD0000F2160B
      E82C16DD4221C76E37BC8342B2994DACA452A7AF589CC563
      92DB6E87F17980FF8080E99680E39B80DEA180D3AC80C8B7
      80BEC180B3CC809DE2808EF08080FF7A80F47580E96A80D3
      5F80BD5480A74980913380662D805B2880501D803A128024
      07800E0080002C841A3784204285265887336E8940838B4D
      998D5AAF8E66C59073FF9595FF9393FF9292FF9090FF8D8D
   </palette>
</flame>

http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#29 2012-04-20 20:35:13

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

Apophysis didn't save those, actually.  hmm
I used Fr0st!  big_smile

I tried to blend them together, but experiments ended in  sad . They would only animate 1 flame. I guess only the electric sheep are allowed to do that. So, I'm making 4 separate animations right now.  smile


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#30 2012-04-21 20:15:50

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

Apophysis didn't save those, actually.  hmm
I used Fr0st!  big_smile

I tried to blend them together, but experiments ended in  sad . They would only animate 1 flame. I guess only the electric sheep are allowed to do that. So, I'm making 4 separate animations right now.  smile

Aw, darn.  sad  I wonder Apophysis didn't save those fractals.

Oh well, still looking forwards to seeing the animations later on.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#31 2012-04-25 16:49:38

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

scratchisthebest wrote:

Apophysis didn't save those, actually.  hmm
I used Fr0st!  big_smile

I tried to blend them together, but experiments ended in  sad . They would only animate 1 flame. I guess only the electric sheep are allowed to do that. So, I'm making 4 separate animations right now.  smile

Aw, darn.  sad  I wonder Apophysis didn't save those fractals.

Oh well, still looking forwards to seeing the animations later on.  smile

Nevermind, wrong script!  big_smile
Found the right one (morph_sequence.py) that WORKS!
I got so happy I added a fourth bonus flame.  big_smile

...and a nonworking render button. great
Waitwaitwaitwait you just need to wait about a minute, and it adds a million flames to a new file! Yaaaaay

Rendering flame 24/1201 (morphed_0024)
(thankfully, the quality is low and it's rendering at a speed of 2fps, which is crazy for flames!)

Yay, done rendering! I ran 'em through VirtualDub, and will shortly be uploading to Vimeo. (1201 frames is a bit on the long side for an animated gif!  big_smile )

Your video will begin converting in approximately 0:34:00. If you have other things to do besides stare at this screen, you can leave this page and we'll email you when your video is ready to watch. gotta love how that's worded!  big_smile

Last edited by scratchisthebest (2012-04-25 17:34:41)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#32 2012-04-25 18:31:01

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

ALL DONE!  big_smile

Here's the link to the blurry mess.
I'll make it actually viewable when I have the time.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#33 2012-04-26 03:32:17

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

ALL DONE!  big_smile

Here's the link to the blurry mess.
I'll make it actually viewable when I have the time.

Yay! ^_^

That is awesome. Mind if you share the script that you used for the animation? The old one that I have keeps spitting out some syntax error that's driving me batty, and I'd like to go back to doing abstract animation films.  smile


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#34 2012-04-26 21:05:06

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

Yay! ^_^ That is awesome.

Aww thanks!  big_smile  Glad you like it!

cheddargirl wrote:

Mind if you share the script that you used for the animation? The old one that I have keeps spitting out some syntax error that's driving me batty, and I'd like to go back to doing abstract animation films.  smile

Oh, it's the included morph_sequence.py that comes with Fr0st. It's a python script, so it doesn't work in Apophysis and such.  sad . There wasn't a good Apophysis one that I found.

*paste*

Code:

from fr0stlib.render import to_string
from fr0stlib.pyflam3 import Genome, byref, flam3_interpolate

from utils import animation_preview


def interpolate(flames):
    s = "<flames>%s</flames>" % "".join(map(to_string, flames))
    genomes, ngenomes = Genome.from_string(s)
    
    target = Genome()
    for i in range(int(flames[0].time), int(flames[-1].time + 1)):
        flam3_interpolate(genomes, ngenomes, i, 0, byref(target))
        flame = Flame(target.to_string())
        flame.name = "morphed_%04d" % i
        yield flame
        

def getinput():
    flames = get_flames()
    res = dialog("Choose settings.\n\n(Keyframe interval = 0 "
                 "uses the time attribute of each flame instead "
                 "of a fixed interval)",
                 ("First flame", flames),
                 ("Last flame", flames, len(flames) - 1),
                 ("keyframe interval", int, 0),
                 ("wrap around", bool),
                 ("preview only", bool, True))
    first, last, interval, wrap, preview = res
    flames = flames[flames.index(first):flames.index(last)+1]
    if len(flames) < 2:
        raise ValueError("Need to select at least 2 flames")
    return flames, interval, wrap, preview


update_flame = False

flames, interval, wrap, preview_only = getinput()


if wrap:
    if not interval:
        raise ValueError("Wrap is only allowed when keyframe "
                         "interval is not 0")
    flames.append(flames[0].copy())

if interval:
    for i, flame in enumerate(flames):
        flame.time = i * interval
else:
    flames = sorted(flames, key=lambda f: f.time)

if len(set(f.time for f in flames)) != len(flames):
    raise ValueError("2 or more flames have the same time value.")

flame_gen = interpolate(flames)
if preview_only:
    animation_preview(flame_gen)
else:
    save_flames("parameters/morph_sequence.flame", *tuple(flame_gen),
                confirm=False)

bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#35 2012-04-27 00:03:33

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

cheddargirl wrote:

Yay! ^_^ That is awesome.

Aww thanks!  big_smile  Glad you like it!

cheddargirl wrote:

Mind if you share the script that you used for the animation? The old one that I have keeps spitting out some syntax error that's driving me batty, and I'd like to go back to doing abstract animation films.  smile

Oh, it's the included morph_sequence.py that comes with Fr0st. It's a python script, so it doesn't work in Apophysis and such.  sad . There wasn't a good Apophysis one that I found.

*paste*

Code:

from fr0stlib.render import to_string
from fr0stlib.pyflam3 import Genome, byref, flam3_interpolate

from utils import animation_preview


def interpolate(flames):
    s = "<flames>%s</flames>" % "".join(map(to_string, flames))
    genomes, ngenomes = Genome.from_string(s)
    
    target = Genome()
    for i in range(int(flames[0].time), int(flames[-1].time + 1)):
        flam3_interpolate(genomes, ngenomes, i, 0, byref(target))
        flame = Flame(target.to_string())
        flame.name = "morphed_%04d" % i
        yield flame
        

def getinput():
    flames = get_flames()
    res = dialog("Choose settings.\n\n(Keyframe interval = 0 "
                 "uses the time attribute of each flame instead "
                 "of a fixed interval)",
                 ("First flame", flames),
                 ("Last flame", flames, len(flames) - 1),
                 ("keyframe interval", int, 0),
                 ("wrap around", bool),
                 ("preview only", bool, True))
    first, last, interval, wrap, preview = res
    flames = flames[flames.index(first):flames.index(last)+1]
    if len(flames) < 2:
        raise ValueError("Need to select at least 2 flames")
    return flames, interval, wrap, preview


update_flame = False

flames, interval, wrap, preview_only = getinput()


if wrap:
    if not interval:
        raise ValueError("Wrap is only allowed when keyframe "
                         "interval is not 0")
    flames.append(flames[0].copy())

if interval:
    for i, flame in enumerate(flames):
        flame.time = i * interval
else:
    flames = sorted(flames, key=lambda f: f.time)

if len(set(f.time for f in flames)) != len(flames):
    raise ValueError("2 or more flames have the same time value.")

flame_gen = interpolate(flames)
if preview_only:
    animation_preview(flame_gen)
else:
    save_flames("parameters/morph_sequence.flame", *tuple(flame_gen),
                confirm=False)

Oh, it's a Python script. Darn, I was hoping for an Apophysis script.  tongue

Then again, I guess this provides good incentive for me to learn another programming language.  tongue


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#36 2012-05-01 15:22:47

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

Oh, it's a Python script. Darn, I was hoping for an Apophysis script.  tongue

Then again, I guess this provides good incentive for me to learn another programming language.  tongue

Just make sure to "import antigravity" when you try Python.  big_smile

Edit: WARNING: PAGE BEHIND LINK IS TOO MUCH FUN

Last edited by scratchisthebest (2012-05-01 15:23:54)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#37 2012-05-26 12:10:49

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

I do believe I win:
http://i50.tinypic.com/15yx7at.jpg

edit: electric sheep number 63505 is in the works!
anyone want to get on and render this?

Last edited by scratchisthebest (2012-05-26 12:13:56)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#38 2012-05-26 12:16:37

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

fire219 wrote:

I've been messing with Apophysis 7x all day, and have come up with something of pure awesomeness, with 5 transforms and no variables.  smile

The Neon Butterfly

I would love to mess with that! Do you still have the .flame or .flam3 file laying around?


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#39 2012-05-27 21:17:12

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

Aw, darn.  sad  I wonder Apophysis didn't save those fractals.

Huh... Looking at the .flame, I see a <pallete> tag. I usually note 255 <color> tags. That might be why. Do you have "Save gradients in old file format" or something like that checked?


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#40 2012-05-27 22:53:07

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

cheddargirl wrote:

Aw, darn.  sad  I wonder Apophysis didn't save those fractals.

Huh... Looking at the .flame, I see a <pallete> tag. I usually note 255 <color> tags. That might be why. Do you have "Save gradients in old file format" or something like that checked?

I'm not even sure where that would be.

Usually you just copy the code, then paste it directly into the Apophysis interface. I've done this before with people posting their parameters up, and they have a lot of different computers than me.  hmm


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#41 2012-05-28 08:26:09

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

cheddargirl wrote:

scratchisthebest wrote:

cheddargirl wrote:

Aw, darn.  sad  I wonder Apophysis didn't save those fractals.

Huh... Looking at the .flame, I see a <pallete> tag. I usually note 255 <color> tags. That might be why. Do you have "Save gradients in old file format" or something like that checked?

I'm not even sure where that would be.

Usually you just copy the code, then paste it directly into the Apophysis interface. I've done this before with people posting their parameters up, and they have a lot of different computers than me.  hmm

huh. I thought I saw a checkbox for that somewhere... oh forget it. They open in Fr0st, at least.  smile

I will now proceed to play with chaos/xaos links.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#42 2012-05-28 09:08:42

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

Rendering a hhhuuugggeee quality flame right now (1600x1200 at 250 quality with 2x oversample). It's going to look super cool! I'll upload the file as a sheep when it's done.

About 25% of the way done.

edit: It's because I need a new wallpaper, the other flame is way too crisp around the edges. ::)

Last edited by scratchisthebest (2012-05-28 09:09:32)


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#43 2012-05-28 09:19:57

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

all done! Turned out okay, better with a lower quality I guess.

http://i50.tinypic.com/2jd1e6b.jpg
full size at 1600x1184
on the sheepserver
genome


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#44 2012-05-28 09:24:18

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Fractal Flame Art Topic

Oooooooohhhhh!
That's nice!


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#45 2012-05-28 09:37:42

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

all done! Turned out okay, better with a lower quality I guess.

http://i50.tinypic.com/2jd1e6b.jpg
full size at 1600x1184
on the sheepserver
genome

My new desktop background.


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#46 2012-05-29 16:36:17

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

slinger wrote:

Oooooooohhhhh!
That's nice!

Thank you very much!  smile

GOD_MOD3 wrote:

My new desktop background.

Mine too! Actually, that's what I made the picture for. The other wallpaper looks kind of scratchy, and I didn't like it too much.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#47 2012-05-31 15:37:37

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

jnn,jmxhmxghmdtgjhngfhbgfhbgfhntrhnhgftgfh == bump
The following errors need to be corrected before the message can be posted:
At least 60 seconds have to pass between posts. Please wait a little while and try posting again.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#48 2012-06-21 14:07:05

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

You people seem to like pictures, so here's one:
http://i47.tinypic.com/2lbkl1j.png


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#49 2012-06-21 14:55:25

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Fractal Flame Art Topic

Wow, amazing.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#50 2012-06-28 12:36:15

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Fractal Flame Art Topic

scratchisthebest wrote:

I do believe I win:
http://i50.tinypic.com/15yx7at.jpg

edit: electric sheep number 63505 is in the works!
anyone want to get on and render this?

Speaking of rendering, the sheepserver says that after 1 frame is rendered in the current edge, I might get edged to or rendered! Coool.


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer