From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111929 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: Delivering the value of a variable in MetaFun to ConTeXt Date: Sat, 26 Jun 2021 04:45:09 +0900 Message-ID: <100BFC2B-92B9-46DA-A6A8-BE122AC58B69@me.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/mixed; boundary="===============2100548880427975235==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15507"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 25 21:45:52 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwrlw-0003sl-Eo for gctc-ntg-context-518@m.gmane-mx.org; Fri, 25 Jun 2021 21:45:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EC46B284BF2; Fri, 25 Jun 2021 21:45:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yvMtKwIjeSR2; Fri, 25 Jun 2021 21:45:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F7BF284B83; Fri, 25 Jun 2021 21:45:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1147D284B47 for ; Fri, 25 Jun 2021 21:45:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O4SfG8iX9UP0 for ; Fri, 25 Jun 2021 21:45:15 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.46; helo=pv50p00im-zteg10021301.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-zteg10021301.me.com (pv50p00im-zteg10021301.me.com [17.58.6.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 62EFD28483C for ; Fri, 25 Jun 2021 21:45:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1624650313; bh=ZHx2gWpU+q4rAYdgvXbvsZ7bb5kfURif+XBSgyeU1lY=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=nFj+rTxi86aDF4fmIbIe2jxDzvzhi5Fi4bH55o7cOkzHqvxcvehvYXGPDY99EJhFq qAvpOASybfCliug0TrU9D4gy0i/zYg4xNZWBZV9DVFQMDwn+L3bOkFNV8oxW0eW7x7 8bw91SvHcHZ8hn0Q0C8ex4HGxn8oKhEqfwDocdP+gASmpmvP+ePFthqiXAP7yflr7i 8p7fR8TEHXo/KOCWo+tYAcp2AJboxpDEJTOObv3LCAcdieg4yvK2Y1y4lKNGKxx30g rVxdjx66QGxI6533iKuKz+TtmMAWvI30JYXpm8e/p5rHdTkbyaYvI2yMs561fYAoSo 7OyBkRANRkXeA== Original-Received: from smtpclient.apple (unknown [222.232.154.22]) by pv50p00im-zteg10021301.me.com (Postfix) with ESMTPSA id 02032CC0369 for ; Fri, 25 Jun 2021 19:45:12 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-25_07:2021-06-25, 2021-06-25 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=336 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106250120 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:111929 Archived-At: --===============2100548880427975235== Content-Type: multipart/alternative; boundary="Apple-Mail=_E0EF2ABA-BA8C-455F-A073-6AEC225918BC" --Apple-Mail=_E0EF2ABA-BA8C-455F-A073-6AEC225918BC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Aditya and Hans, Thank you for your suggestion. I add=20 > \startMPcalculation > .... > \stopMPcalculation and it works. \setupinteraction[state=3Dstart] \usemodule[animation] \starttext %\startanimation[menu=3Dyes] %{ \startMPcalculation path p; \stopMPcalculation \dorecurse{\udCount} {\useMPgraphic{foldUD}{num=3D\recurselevel}} {\useMPgraphic{dotLines}{num=3D\recurselevel}} %} %\stopanimation \stoptext However, it draws all the figures under the \startanimation case. There may be something I missed or there is something uncertain between = \dorecurse and \startanimation. Thank you. Best regards, Dalyoung= --Apple-Mail=_E0EF2ABA-BA8C-455F-A073-6AEC225918BC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Dear = Aditya and Hans,

Thank= you for your suggestion.
I add 
\startMPcalculation
 ....
\stopMPcalculation

and it = works.

\setupinteraction[state=3Dstart]
\usemodule[animation]
\starttext
%\startanimation[menu=3Dyes]
%{
\startMPcalculation
path = p;
\stopMPcalculation
\dorecurse{\udCount}
{\useMPgraphic{foldUD}{num=3D\recurselevel}}
{\useMPgraphic{dotLines}{num=3D\recurselevel}}
%}
%\stopanimation
\stoptext

However, it draws all the figures under the \startanimation = case.

There = may be something I missed or there is something uncertain between = \dorecurse and \startanimation.

Thank you.

Best regards,

Dalyoung
= --Apple-Mail=_E0EF2ABA-BA8C-455F-A073-6AEC225918BC-- --===============2100548880427975235== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2100548880427975235==--