The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Animation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mej

Albania
Posts

Posted - 01/28/2004 :  1:06:26 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello
Can everybody show me how to do an animation with origin
(with an exemple). I have Origin 6.1 Pro
Thanks

tib

Switzerland
105 Posts

Posted - 02/03/2004 :  7:12:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi mej,

if I understand you right you want to have a animated graph, e.g. how your measurement curve changes with time.
The only thing which comes to my mind right now is:

1.
Export every single graphs as BMP
I think in Origin6.1 LabTalk it is something like
image.exportDPI(BMP,100,24,0)
with image.exportDPI(format,dpi,bpp,compression)

2.
convert the BMP into GIF or PNG with another software (e.g. IrfanView)

3.
find a software to create animated GIFs or MNGs. I don't know any good one at this point.

This is pretty cumbersome, but I hope this helps at least a little bit,
Tilman.


Go to Top of Page

mej

Albania
Posts

Posted - 02/06/2004 :  05:55:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank i will try it
Go to Top of Page

greg

USA
1380 Posts

Posted - 02/09/2004 :  1:12:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can use the following script which will prompt you for a path and base filename and file type and then export all graphs in your project (in creation order) to enumerated files. For example:
TEST1.GIF
TEST2.GIF
etc.

// BEGIN SCRIPT
image.ShowOptions = 0;
fdlog.usegroup(image);
image.GetExtList(z,em);
image.usetype(%Z);
fdlog.DEFAULT $="Animate";
fdlog.DLGNAME $= Save Location and base filename;
fdlog.saveas(A);
%B=fdlog.path$;
%M = %[%A,>'.'];
%N = %[%A,'.'];
%A = %B%N;
count = 1;
doc -e P {
image.filename $= %A$(count).%M;
image.export.pagedpi(%M,96,24,0); // TYPE, dpi, bpp, compression;
count++;
}
// END SCRIPT

Origin 6.1 supports AI BMP CGM DXF EMF EPS GIF JPG PCX PCT PDF PNG PSD TGA TIF WMF XPM XWD, but the above script limits you to BMP GIF JPG PCX PNG PSD TGA TIF XPM XWD which are more likely to be useable by an animation program.


Edited by - Greg on 02/09/2004 1:14:43 PM
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 02/14/2006 :  10:33:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Now there is an animation tool, called "OAnimator" in the File Exchange site:
  http://www.originlab.com/fileexchange/details.aspx?fid=122

Go to Top of Page

amorris

Canada
Posts

Posted - 02/22/2006 :  4:27:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm pretty much the same thing right now, and I've found the most useful little application called gifsicle. You can get it here: http://www.lcdf.org/gifsicle/. If you look closely, there's a link to a windows executable (2nd from the top under the header "pre-built binaries".

Here are the steps to pain-free animations with origin-gifsicle:

1) Download gifsicle, and put it in a folder that's in your path, such as c:\windows\system32
2) Export all your graphs as gif files. To make things easier afterwards, I suggest naming you files with a suffix that depends on the number of files you have. For example if you have less than 89999 files, use: anim10000.gif, anim10001.gif, anim10002.gif, etc. If you only have 89 files or less, you can use anim10.gif, anim11.gif, etc. This ensures that gifsicle will combine the files in the right order.

You can use greg's nice script to do this, just change the initial count variable to 10, 100, or whatever suits your needs.

3) Open up a command prompt, go to the folder where you exported your gif files from origin.

4) type "gifsicle anim*.gif > animation.gif " . This will merge all your anim*.gif files into one animated gif file called animation.gif. Gifsicle has lot's of options, just type gifsicle -h for more info.

5) that's all! You can view your animated gif with your internet browser or media player.


I hope that this helps!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000