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.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27084 invoked from network); 26 Apr 2023 16:44:05 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2023 16:44:05 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 560B81C2B71; Wed, 26 Apr 2023 18:43:21 +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 qC71DZWXcm8q; Wed, 26 Apr 2023 18:43:19 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15B8EE0AA; Wed, 26 Apr 2023 18:43:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B4C11E0AA for ; Wed, 26 Apr 2023 18:43:17 +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 hcYitf3ATumy for ; Wed, 26 Apr 2023 18:43:16 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.196; helo=mail-pl1-f196.google.com; envelope-from=contextntg@gmail.com; receiver= Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 918841411 for ; Wed, 26 Apr 2023 18:43:16 +0200 (CEST) Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-1a667067275so58379375ad.1 for ; Wed, 26 Apr 2023 09:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682527394; x=1685119394; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PtlxRpabOrBfAl1hpPgVhQ5TwxQ9lkjxh8dFsEY59Yo=; b=L4bwdK/9Pcdb+Cx2gZ/t02uFKJABKfU/j7yCoR5BHZSW0oxOZ/DosXTy7J8YFJ9DJl BkF2K1pBogW4Whu0FGDZlwKECzYr6O3xE/SAuzIzH+8awXAGFn+SmA0MXXVRshSIt1Ni K7yONDzGrVGxE1Ckeo20U1GOU2NDxM0obpxs4ryiDfApzSWs1iIu2oXcnCPzKtLoEl7y 2iJDI5Yt09+Gad7dgLDZ2pPjmCvIsSD+NeoLUCvUM+BoqNToGJp8Avf2CEt4XkVCTK4w cOczhojPg9whcGPXqQtbzCnOs0KX6h++6laqSYRydigiu98oriLNqFutNRgTOX+dMjqw jOeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682527394; x=1685119394; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PtlxRpabOrBfAl1hpPgVhQ5TwxQ9lkjxh8dFsEY59Yo=; b=VABJcmmFBOaL5Np4F6Xp/9zYiX7AJ8fVjm4mCL4Bp2zSs7x5+bYs+vWcbAx0a9cwui VqGJBiefIqveXVQEh4gSIL1v9D4SEsj+6COXjl1Kt1KPPZ6sNLlW2v7W+6uy7mnpu1Fo gbNIqEEcwAoYrtOBsTaiT2MOn+sigDb5pGqI86i9V/UyNi7/PNGImM2/QNMd0LBIEPlX 7XLdRokPRy9ErAyYy5xNe2HizymP/ajCUx+EiyDWCBsBncYVDAYVjRdBuGLYgeGmpZXK q4mtOICX9WO+YvJADq3mHBaDzftcDA54MBwFBCRXu96PeHJ4qxffvNRyVuOUah1kFU0z 5pRA== X-Gm-Message-State: AAQBX9cuD30dnam401/LX+xrHVQsZkm+DABdvFccPA8M0GzlvOtJf2Oz PVW4d0wthOCbJxId3yDeIYK3T4AZegYInHmLmGsAEkF9n4CdR6q+l9I3ZFPE X-Google-Smtp-Source: AKy350aOKwYUo0wVspZutu6DLUtDPzoCECpYQI1nd8uJiJSlGf8xL+CZVqLdcVBusO9H8g3tv1Vo8GMZqSCmXM6gBKM= X-Received: by 2002:a17:902:dac7:b0:1a9:5c78:8fdf with SMTP id q7-20020a170902dac700b001a95c788fdfmr19759998plx.36.1682527394066; Wed, 26 Apr 2023 09:43:14 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 26 Apr 2023 18:43:03 +0200 Message-ID: To: mailing list for ConTeXt users Subject: [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: Jeroen via ntg-context Reply-To: mailing list for ConTeXt users Cc: Jeroen Content-Type: multipart/mixed; boundary="===============3372980951993029129==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============3372980951993029129== Content-Type: multipart/alternative; boundary="000000000000a5f54305fa3fefd0" --000000000000a5f54305fa3fefd0 Content-Type: text/plain; charset="UTF-8" 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? Thanks Jeroen --000000000000a5f54305fa3fefd0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am using OpenSCAD to create drawings with the filter mod= ule with the following MWE:

\usemodule[filter]
\d= efineexternalfilter[openscad]
=C2=A0 [filtercommand=3D{/context/openscad= /openscad -o \externalfilteroutputfile},
=C2=A0 =C2=A0output=3D{\externa= lfilterbasefile.png},
=C2=A0 =C2=A0cache=3Dforce,
=C2=A0 =C2=A0readco= mmand=3D\ReadImage]
\define[1]\ReadImage{\externalfigure[#1]}

\st= arttext
\startopenscad
=C2=A0 square(4,2);
\stopopenscad
\stopt= ext

This works fine. I now want to use the fol= lowing options added to the command line: --view axes,edges,scales --viewal= l

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 te= st.png --view axes,edges,scales --viewall

When I a= dd this to the filtercommand=C2=A0as following

[fi= ltercommand=3D{/context/openscad/openscad -o \externalfilteroutputfile=C2= =A0--view axes,edges,scales --viewall}

I cannot ge= t it to run. Is there anything I am missing?

Thank= s
Jeroen
--000000000000a5f54305fa3fefd0-- --===============3372980951993029129== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============3372980951993029129==--