From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31442 invoked from network); 26 Apr 2023 19:05:11 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2023 19:05:11 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 71B711411; Wed, 26 Apr 2023 21:04:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 AJHASCc0_oKR; Wed, 26 Apr 2023 21:04:43 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A6A4949EA; Wed, 26 Apr 2023 21:04:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A78C949EA for ; Wed, 26 Apr 2023 21:04:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 6VHCjfoRhihx for ; Wed, 26 Apr 2023 21:04:40 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=132.206.73.2; helo=orford.cim.mcgill.ca; envelope-from=adityam@umich.edu; receiver= Received: from orford.cim.mcgill.ca (smtp.cim.mcgill.ca [132.206.73.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4488D1411 for ; Wed, 26 Apr 2023 21:04:39 +0200 (CEST) Received: from reinforce.cim.mcgill.ca (reinforce.cim.mcgill.ca [132.206.74.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 97EB41C6FF4; Wed, 26 Apr 2023 15:04:37 -0400 (EDT) Date: Wed, 26 Apr 2023 15:03:18 -0400 (EDT) To: Jeroen via ntg-context In-Reply-To: Message-ID: References: MIME-Version: 1.0 Subject: Re: [NTG-context] Filter Module with Openscad X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aditya Mahajan via ntg-context Reply-To: mailing list for ConTeXt users Cc: Aditya Mahajan Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" On Wed, 26 Apr 2023, Jeroen via ntg-context wrote: > I am using OpenSCAD to create drawings with the filter module with the > following MWE: > > \usemodule[filter] > \defineexternalfilter[openscad] > [filtercommand={/context/openscad/openscad -o \externalfilteroutputfile}, > output={\externalfilterbasefile.png}, > cache=force, > readcommand=\ReadImage] > \define[1]\ReadImage{\externalfigure[#1]} > > \starttext > \startopenscad > square(4,2); > \stopopenscad > \stoptext > > This works fine. I now want to use the following options added to the > command line: --view axes,edges,scales --viewall > > When I create an Openscad file test.scad, I can run it fine with the > following command line at a CLI window: > > openscad.com test.scad -o test.png --view axes,edges,scales --viewall > > When I add this to the filtercommand as following > > [filtercommand={/context/openscad/openscad -o > \externalfilteroutputfile --view axes,edges,scales --viewall} > > I cannot get it to run. Is there anything I am missing? My guess is that you need: [filtercommand={/context/openscad/openscad -o \externalfilteroutputfile\space --view axes,edges,scales --viewall} this is because any macro \something gobbles the space after that. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________