Ask Your Question

Roctiv's profile - activity

2015-12-01 12:26:35 +0200 received badge  Good Question (source)
2015-08-21 11:09:58 +0200 received badge  Famous Question (source)
2015-04-07 21:21:50 +0200 received badge  Nice Question (source)
2013-06-09 21:54:01 +0200 received badge  Notable Question (source)
2013-01-01 09:06:04 +0200 received badge  Popular Question (source)
2012-06-09 15:14:11 +0200 marked best answer Download Data folder

I would use Sage to zip up all the files into one file:

from subprocess import call
call("zip -r all.zip %s/*"%DATA,shell=True)
2012-06-09 15:13:23 +0200 commented answer Download Data folder

Thank you! that's it!! :) And if I want to erase that file? where is it saved? And what is the command to delete it?

2012-06-09 09:50:42 +0200 commented answer Download Data folder

Maybe I didn't say it clearly, if so I apologize. I want to save all the files of the data folder of one worksheet in the host computer (windows), not all the worksheets. I'm quite new with this featurings in Sage 5.0, I don't know how to exit of the GUI :S. If there's a way to do it in the console it would be fine if you were more specific :S. Sorry for that, I'm a new user.

2012-06-08 17:46:57 +0200 asked a question Download Data folder

Hi! I'm trying to download all the data folder of a worksheet. I see the GUI permits you to download it one single file at once. I have many files (about 2000 files), and I'm unable to download all the folder at once. I'm using VirtualBox at Windows and it's Sage 5.0 version.

How can I do it?

Thank you! :)

2012-05-18 12:14:14 +0200 commented answer 3d animation with tachyon

I wanted to aswer just ":)", but I need 10 chararcters :D

2012-05-17 13:55:12 +0200 received badge  Scholar (source)
2012-05-17 13:55:12 +0200 marked best answer 3d animation with tachyon

I see. Well, first off, the things in your saved are not actually graphics file, but Tachyon scenes. Secondly, we can access things in the notebook via the DATA variable. Borrowing some ideas from the thread mentioned in the other post:

for i in range(len(saved)):
    saved[i].save(filename=DATA+'mypic%d.png'%i)

os.system('cd '+DATA+'; convert -delay %s -loop %s *.png "Done.gif"'%(int(100),int(2)))
os.system('ls '+DATA)

This shows that the Done.gif is there. If you then go to the "Data..." menu and choose it, you will see it and be able to download it. That's not ideal, but a lot better than nothing.

where to look

Naturally, this all assumes you have animate working properly (because that requires the convert command we are using here). Probably I should also use sage-native-execute but I don't really understand that.

2012-05-17 13:53:13 +0200 commented answer 3d animation with tachyon

To the guy who will see this in the future (he could be me tomorrow): that funtion is ok if len(saved) < 10, if it's bigger the names of the should have more digits.

2012-05-17 13:41:16 +0200 commented answer 3d animation with tachyon

I thought animate function had more freedom to choose the types :(

2012-05-17 13:35:31 +0200 commented answer 3d animation with tachyon

Thank you!!! That's it! I wanted something simple, because I can only use the notebook (I cannot modify the system). Thank you very much

2012-05-17 13:14:21 +0200 received badge  Supporter (source)
2012-05-17 12:04:56 +0200 commented answer 3d animation with tachyon

Thank you. I had already seen that answer. But I think, that what I want to do is too simple to attack it with a powerfull tool (that I don't know how to use). I mean, animate function should be enough to join a couple of photgrams... or not?

2012-05-17 11:53:49 +0200 received badge  Student (source)
2012-05-17 10:37:27 +0200 received badge  Editor (source)
2012-05-17 10:35:17 +0200 asked a question 3d animation with tachyon

Hello!

I'm trying to create a 3d animations, frame per frame. I've discovered that tachyon plotter is very usefull to create images. But after that, I'm unable to make it as animation.

For example, I have copied a code and generate some scenes with tachyon with this:

saved = []
for j in srange(-0.9,1,0.3):
   t = Tachyon(xres=512,yres=512, camera_center=(3,0.3,0))
   t.light((4,3,2), 0.2, (1,1,1))
   t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0))
   t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0))
   t.texture('t2', ambient=0.2,diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0))
   k=0
   for i in srange(-1,j,0.05):
      k += 1
      t.sphere((i,i^2-0.5,i^3), 0.1, 't%s'%(k%3))
   saved.append(t)

In "saved" array I have all the png of the animation I want to do, and I can view it with saved[i].show().

I tried to unite all the frames with the command animate:

animate(saved[i].show() for i in range(0,len(saved)))

But it didn't work. What other alternatives do I have? (without using ffmpeg)

Thank you!