[sage-support] Re: Programming animation

2012-02-11 Thread Jason Grout
On 2/9/12 3:46 AM, LFS wrote: == I could not publish at all from sagenb (I checked - I could publish other sage worksheets without animation). My fix is live on sagenb.org now, so you should be able to publish that worksheet. Thanks, Jason -- To post to this group, send email to sage-sup

Re: [sage-support] Re: Programming animation

2012-02-10 Thread David Joyner
These would make great examples for the sage wiki! On Fri, Feb 10, 2012 at 2:55 AM, Vegard Lima wrote: > On Fri, Feb 10, 2012 at 7:53 AM, Jonathan Bober wrote: >> os.system("mv my_anim/movie.avi movie.avi; rm my_anim/*; rmdir my_anim") >> ## >> >> (I had no idea if this would work on sag

Re: [sage-support] Re: Programming animation

2012-02-09 Thread Vegard Lima
On Fri, Feb 10, 2012 at 7:53 AM, Jonathan Bober wrote: > os.system("mv my_anim/movie.avi movie.avi; rm my_anim/*; rmdir my_anim") > ## > > (I had no idea if this would work on sagenb.org, so I tried, and it does. > Sure enough, though, the output of mencoder is some format that Chrome won'

Re: [sage-support] Re: Programming animation

2012-02-09 Thread Jonathan Bober
On Thu, Feb 9, 2012 at 6:19 PM, Nils Bruin wrote: > > Another thing is that for longer animations, an animated GIF is > probably not the best format. You should probably use something that > can collate a bunch of frames into an mpeg movie or similar. I am sure > there are command-line programs f

[sage-support] Re: Programming animation

2012-02-09 Thread Nils Bruin
On Feb 9, 1:46 am, LFS wrote: > Is there a way to have a delay between iterations of the whole cycle? > Thanks! It looks like animated GIFs in principle allow for a duration to be specified for each frame indiviually, so the answer is yes in principle: http://en.wikipedia.org/wiki/Graphics_Inter

[sage-support] Re: Programming animation

2012-02-09 Thread Jason Grout
On 2/9/12 3:46 AM, LFS wrote: == I could not publish at all from sagenb (I checked - I could publish other sage worksheets without animation). The problem was that the notebook wasn't correctly handling things when you delete a file in the cell. https://github.com/sagemath/sagenb/commit/25aa

[sage-support] Re: Programming animation

2012-02-09 Thread LFS
Hiya I have now managed to publish a working version of the 3d animation: http://test.sagenb.org/home/pub/33/ However, the code appears to cause some problems with respect to the publisher. == I could not publish at all from sagenb (I checked - I could publish other sage worksheets without animati

[sage-support] Re: Programming animation

2012-02-09 Thread LFS
Hiya all. I managed to publish on the test site (version 5 beta): http://test.sagenb.org/home/pub/32 Maybe I am doing something wrong but it will not let me publish the animation on the sagenb.org site. (Let's me publish other stuff.) @Nils. Is there a line I can add that will delay the reitterati

[sage-support] Re: Programming animation

2012-02-08 Thread LFS
@Nils Got the animation to work - Really pleased! (Momentarily nothing will publish - when it does I will add the link.) Thanks for writing the script so simply. I was able to change things I wanted to change. BTW - if anyone copies and pastes the script from above, there is an bad line break afte

[sage-support] Re: Programming animation

2012-02-07 Thread LFS
Hiya Jason, It really depends and certainly I am no expert. And probably most of this is boring so feel free to ignore. As I said above, I use a combination of GeoGebra and Scratch and Sage and I am just starting with sage. I would say that MY most important use of the worksheets in SAGE has been

[sage-support] Re: Programming animation

2012-02-07 Thread Socius
On 7 Feb, 12:13, LFS wrote: > OM - I just tried pasting the applet code from geogebra into my sage > page - loads slow in the notebook, but seems okay in the published. > Never thought of that! Thanks. > Here is link:http://sagenb.org/home/pub/4250 THIS IS COOL! This is really interesting.

[sage-support] Re: Programming animation

2012-02-07 Thread Jason Grout
On 2/7/12 5:13 AM, LFS wrote: I have this dream too; I get so annoyed when mathematicians (myself totally included) spend time forcing our students to learn techniques that a computer can do, but don't spend time teaching them carefully and with understanding the techniques a computer cannot do.

[sage-support] Re: Programming animation

2012-02-07 Thread LFS
Hiya all - thanks for all the replies! @Nils I will definitely try the code and get back to you. I am a very slow worker ... @A I am the "voice" of the http://youtube.com/geogebrachannel (everyone else is mostly the strong silent type :) ) @Kcrisman, et.al. Please write me lfahlb...@gmail.com for t

[sage-support] Re: Programming animation

2012-02-06 Thread kcrisman
On Feb 6, 2:58 pm, Socius wrote: > On 6 Feb, 18:57, LFS wrote: > > > I have to admit that I use GeoGebra for almost everything not 3d. It > > is absolutely fantastic (I do videos on the youtube.com/ > > geogebrachannel and have a wiki and a moodle on ggb.) > > > But sage is great (and I have st

[sage-support] Re: Programming animation

2012-02-06 Thread Socius
On 6 Feb, 18:57, LFS wrote: > I have to admit that I use GeoGebra for almost everything not 3d. It > is absolutely fantastic (I do videos on the youtube.com/ > geogebrachannel and have a wiki and a moodle on ggb.) > > But sage is great (and I have started a youtube.com/sagemath  channel > and a sa

[sage-support] Re: Programming animation

2012-02-06 Thread Nils Bruin
On Feb 5, 8:20 am, LFS wrote: > Hiya! > > Is there a relatively simple way to get a point to animate a point > through a cycle keeping in mind my low programming skills ((like > adding a "wait" between iterations?) ? You are probably aware of the "animate" command that does this for 2d graphics.

[sage-support] Re: Programming animation

2012-02-06 Thread LFS
Thanks A. That is good to hear about the sage slider! I have to admit that I use GeoGebra for almost everything not 3d. It is absolutely fantastic (I do videos on the youtube.com/ geogebrachannel and have a wiki and a moodle on ggb.) But sage is great (and I have started a youtube.com/sagemat

[sage-support] Re: Programming animation

2012-02-06 Thread Socius
On 5 Feb, 17:20, LFS wrote: > Hiya! > > Is there a relatively simple way to get a point to animate a point > through a cycle keeping in mind my low programming skills ((like > adding a "wait" between iterations?) ? > > I made this video with stop animation and an animated gif but it was a > real p