From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36956 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Stepping through PDF-Layers Date: Wed, 10 Oct 2007 19:21:48 +0200 Message-ID: <20071010192148.f15d80c8.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192041347 22522 80.91.229.12 (10 Oct 2007 18:35:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2007 18:35:47 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 10 20:35:44 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IfgPH-0005ER-0M for gctc-ntg-context-518@m.gmane.org; Wed, 10 Oct 2007 20:35:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A869F1FA77; Wed, 10 Oct 2007 20:35:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22088-02-3; Wed, 10 Oct 2007 20:35:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BCD71FBE2; Wed, 10 Oct 2007 19:22:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B931A1FBE2 for ; Wed, 10 Oct 2007 19:22:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12529-02-18 for ; Wed, 10 Oct 2007 19:22:04 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with ESMTP id 90AEF1FB71 for ; Wed, 10 Oct 2007 19:22:04 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id b2so213923nfb for ; Wed, 10 Oct 2007 10:22:04 -0700 (PDT) Original-Received: by 10.86.90.2 with SMTP id n2mr706194fgb.1192036923758; Wed, 10 Oct 2007 10:22:03 -0700 (PDT) Original-Received: from rover ( [194.94.240.58]) by mx.google.com with ESMTPS id v23sm1800250fkd.2007.10.10.10.22.02 (version=SSLv3 cipher=OTHER); Wed, 10 Oct 2007 10:22:02 -0700 (PDT) X-Mailer: Sylpheed 2.4.7 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36956 Archived-At: Hi, I want to animate layers in a pdf like we can do at the moment with fieldstacks to show always the next picture after the click on a button. I will explain this on the following example. \setupcolors[state=start] \setupinteraction[state=start] \defineoverlay[nextlayer][\overlaybutton{VideLayer{L1}}] \starttext \framed [width=2cm, height=2cm, offset=overlay, background=nextlayer] {\dorecurse{4} {\defineproperty[L\recurselevel][layer][title=layer\recurselevel,state=stop]% \startproperty[L\recurselevel] \ifcase\recurselevel\or\red\or\green\or\blue\or\yellow\fi \hrule height 5mm width\hsize\relax \stopproperty}} \stoptext When i click on the frame the first layer will be visible, my problem is now to make after a second click the next layer visible on so on. I'am also interested to make one or more layers in one step visible and hide another one at the same step. The different layers I want to hide and show are stored in commalist (not yet done but this my methos for the future). Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________