From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80049 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost Animations Date: Sun, 30 Dec 2012 14:43:14 +0100 Message-ID: <4D43E412-FC67-443E-A937-9E5CF49EE50F@gmail.com> References: <5DC206AE-CC64-4254-972E-852ECD92B0DD@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1356874997 9956 80.91.229.3 (30 Dec 2012 13:43:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2012 13:43:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 30 14:43:33 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TpJAq-0004Wa-TZ for gctc-ntg-context-518@m.gmane.org; Sun, 30 Dec 2012 14:43:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1742101E3; Sun, 30 Dec 2012 14:43:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dQ4TZNj4SWMX; Sun, 30 Dec 2012 14:43:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AF4A1101E7; Sun, 30 Dec 2012 14:43:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72E63101E7 for ; Sun, 30 Dec 2012 14:43:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xduINUtPorfb for ; Sun, 30 Dec 2012 14:43:13 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id A413F101E3 for ; Sun, 30 Dec 2012 14:43:13 +0100 (CET) Original-Received: from mail-bk0-f48.google.com (mail-bk0-f48.google.com [209.85.214.48]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBUDh8sh006728 for ; Sun, 30 Dec 2012 14:43:10 +0100 Original-Received: by mail-bk0-f48.google.com with SMTP id jc3so5155074bkc.21 for ; Sun, 30 Dec 2012 05:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=sht3lBf4k7vC9qDm5wFfz0mHJA8h+NEG9rPPzcVkiQw=; b=kZK5MJFaVkF1nO9ypVogsOaNtiztJS+6vJ8nQF0flK8nFHGP0WCkLmoxbYOX4Qg3dI ++A5IPsb07Jj00kn6EnEsRa1c98NLXzdBZ10R93A2bqcVweYArh9WzZFJ3GkoEbz2UH+ UU/Rguv8Wkj5ryYGa3E6WTZDtXpAa4uv437Z+OItnieb3tVKlM7jt9oilg0+3imh6tre LaRVbgdhE0hsJzy4jG8zjeGyFBJsySST6dDmbjzW2FIZpx4Zl00NxbJmnPoXpnuS01h9 7zacZ4qqGrzvitk/Vbd5hokWQGzZquyQ9RGj9cqVD1EiRt0r0mm961IDTFU2dCc2R8v1 GOcA== X-Received: by 10.204.149.86 with SMTP id s22mr18582526bkv.57.1356874988543; Sun, 30 Dec 2012 05:43:08 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbf8848.pool.mediaWays.net. [77.191.136.72]) by mx.google.com with ESMTPS id hm8sm25802587bkc.10.2012.12.30.05.43.07 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Dec 2012 05:43:07 -0800 (PST) In-Reply-To: <5DC206AE-CC64-4254-972E-852ECD92B0DD@me.com> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.48; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIFNH8lk - 2c1b1de87b79 - 20121230 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80049 Archived-At: Am 30.12.2012 um 14:19 schrieb Jeong Dal : > Dear Troy, > = > The animations are impressive and thank you for sharing the code. > = > In the creation of many pdf for animation, it changes the recurselevel on= ly. > I wonder if there is a way to make such kind of animation in ConTeXt usin= g Wolfgang's animation module. > Then we can include the animation in PDF output directly. > = > Here is my trial. > = > I modified it as following and got an animation. But it is only good for = a few step animation. > = > [=85] > = > I also tried to simplify the code as following, but it just draw 10 figur= es not an animation. > Is there a way to combine them as an animation? You can use a loop to create the frames, the only thing you have to be awar= e is how to access the counter loop iteration. In most cases you can get the cur= rent iteration of the loop with \recurselevel but this doesn=92t work for animat= ion because each frame is saved in a symbol with \definesymbol[][] without expanding the content. To fix this you can expand the content with \expanded{\frame{=85 \recursele= vel =85}} or simpler by using =93#1=94 instead of \recurselevel to access the counter. The braces around each frame as in your example are only one method to set the content for each frame (it emulates the \startoverlay and \startcombina= tion input), when you use a loop you have to use \frame{=85} or \startframe =85 = \stopframe to set the content for each frame. Example: \usemodule[animation] \setupinteraction[state=3Dstart] \starttext \startanimation[menu=3Dyes,framerate=3D10] \dorecurse{99} {\startframe \definedfont[Mono sa 4]\twodigits{#1}% \stopframe} \stopanimation \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________