discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

names of objects exported in .3mf files?

TA
Todd Allen
Tue, Feb 18, 2025 4:32 PM

If I export from OpenSCAD as an .stl to my_object.stl then when I import it
into OrcaSlicer I see it in the objects list named "my_object.stl".  But if
I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model".  Is
there a way to specify how OrcaSlicer names what OpenSCAD exports in .3mf
files?

If I export from OpenSCAD as an .stl to my_object.stl then when I import it into OrcaSlicer I see it in the objects list named "my_object.stl". But if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model". Is there a way to specify how OrcaSlicer names what OpenSCAD exports in .3mf files?
JB
Jordan Brown
Tue, Feb 18, 2025 4:53 PM

On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I
import it into OrcaSlicer I see it in the objects list named
"my_object.stl".  But if I export as a .3mf in OrcaSlicer's object
list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer
names what OpenSCAD exports in .3mf files?

No.

Issue #5089 https://github.com/openscad/openscad/issues/5089 "Add /
change Metadata for 3mf export".

(Of course I can't speak to whether there's a way to rename it in
OrcaSlicer.)

On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote: > If I export from OpenSCAD as an .stl to my_object.stl then when I > import it into OrcaSlicer I see it in the objects list named > "my_object.stl".  But if I export as a .3mf in OrcaSlicer's object > list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer > names what OpenSCAD exports in .3mf files? No. Issue #5089 <https://github.com/openscad/openscad/issues/5089> "Add / change Metadata for 3mf export". (Of course I can't speak to whether there's a way to rename it in OrcaSlicer.)
MK
Marius Kintel
Tue, Feb 18, 2025 4:59 PM

If we export a single object, we could technically write the name of the OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as the name.

See https://github.com/openscad/openscad/blob/10248bcfb5a76d03d8355f587595e9ac8942c657/src/io/export_3mf_v2.cc#L162

-Marius

On Feb 18, 2025, at 11:53, Jordan Brown via Discuss discuss@lists.openscad.org wrote:

On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I import it into OrcaSlicer I see it in the objects list named "my_object.stl".  But if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer names what OpenSCAD exports in .3mf files?

No.

Issue #5089 https://github.com/openscad/openscad/issues/5089 "Add / change Metadata for 3mf export".

(Of course I can't speak to whether there's a way to rename it in OrcaSlicer.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

If we export a single object, we could technically write the name of the OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as the name. See https://github.com/openscad/openscad/blob/10248bcfb5a76d03d8355f587595e9ac8942c657/src/io/export_3mf_v2.cc#L162 -Marius > On Feb 18, 2025, at 11:53, Jordan Brown via Discuss <discuss@lists.openscad.org> wrote: > > On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote: >> If I export from OpenSCAD as an .stl to my_object.stl then when I import it into OrcaSlicer I see it in the objects list named "my_object.stl". But if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model". Is there a way to specify how OrcaSlicer names what OpenSCAD exports in .3mf files? > > No. > > Issue #5089 <https://github.com/openscad/openscad/issues/5089> "Add / change Metadata for 3mf export". > > (Of course I can't speak to whether there's a way to rename it in OrcaSlicer.) > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
TP
Torsten Paul
Tue, Feb 18, 2025 5:03 PM

On 18.02.25 17:59, Marius Kintel via Discuss wrote:

If we export a single object, we could technically write the name of the OpenSCAD file as
object name in 3mf. Today, we just use “OpenSCAD Model” as the name.

We do save by default the file name as meta data title. I don't
know what Orca Slicer uses.

ciao,
Torsten.

On 18.02.25 17:59, Marius Kintel via Discuss wrote: > If we export a single object, we could technically write the name of the OpenSCAD file as > object name in 3mf. Today, we just use “OpenSCAD Model” as the name. We do save by default the file name as meta data title. I don't know what Orca Slicer uses. ciao, Torsten.
TA
Todd Allen
Tue, Feb 18, 2025 5:44 PM

No.

Thanks!  Actually though your answer is somewhat inaccurate.  I've learned
the .3mf file is a .zip and unpacking ones from OpenSCAD finds they contain
a folder <3D> which contains a single file 3dmodel.model which is an ascii
text XML file.  Near the top is:
<resources>
<object id="1" name="OpenSCAD Model" type="model" p:UUID="b3c95bf5-f70f-4776-9282-426dde406905">

So it should be possible to invoke command line OpenSCAD from a script to
produce a .3mf, upack it, edit 3dmodel.model and fix the name, repack it
and declare VICTORY!

On Tue, Feb 18, 2025 at 10:54 AM Jordan Brown openscad@jordan.maileater.net
wrote:

On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I import
it into OrcaSlicer I see it in the objects list named "my_object.stl".  But
if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model".
Is there a way to specify how OrcaSlicer names what OpenSCAD exports in
.3mf files?

No.

Issue #5089 https://github.com/openscad/openscad/issues/5089 "Add /
change Metadata for 3mf export".

(Of course I can't speak to whether there's a way to rename it in
OrcaSlicer.)

> No. Thanks! Actually though your answer is somewhat inaccurate. I've learned the .3mf file is a .zip and unpacking ones from OpenSCAD finds they contain a folder <3D> which contains a single file 3dmodel.model which is an ascii text XML file. Near the top is: <resources> <object id="1" name="OpenSCAD Model" type="model" p:UUID="b3c95bf5-f70f-4776-9282-426dde406905"> So it should be possible to invoke command line OpenSCAD from a script to produce a .3mf, upack it, edit 3dmodel.model and fix the name, repack it and declare VICTORY! On Tue, Feb 18, 2025 at 10:54 AM Jordan Brown <openscad@jordan.maileater.net> wrote: > On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote: > > If I export from OpenSCAD as an .stl to my_object.stl then when I import > it into OrcaSlicer I see it in the objects list named "my_object.stl". But > if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model". > Is there a way to specify how OrcaSlicer names what OpenSCAD exports in > .3mf files? > > > No. > > Issue #5089 <https://github.com/openscad/openscad/issues/5089> "Add / > change Metadata for 3mf export". > > (Of course I can't speak to whether there's a way to rename it in > OrcaSlicer.) > >
TA
Todd Allen
Tue, Feb 18, 2025 5:50 PM

If we export a single object, we could technically write the name of the

OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as
the name.

Or maybe name a single object as "filebasename.1" and a 2nd object as
"filebasename.2", ...

On Tue, Feb 18, 2025 at 11:00 AM Marius Kintel marius@kintel.net wrote:

If we export a single object, we could technically write the name of the
OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as
the name.

See
https://github.com/openscad/openscad/blob/10248bcfb5a76d03d8355f587595e9ac8942c657/src/io/export_3mf_v2.cc#L162

-Marius

On Feb 18, 2025, at 11:53, Jordan Brown via Discuss <
discuss@lists.openscad.org> wrote:

On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I import
it into OrcaSlicer I see it in the objects list named "my_object.stl".  But
if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model".
Is there a way to specify how OrcaSlicer names what OpenSCAD exports in
.3mf files?

No.

Issue #5089 https://github.com/openscad/openscad/issues/5089 "Add /
change Metadata for 3mf export".

(Of course I can't speak to whether there's a way to rename it in
OrcaSlicer.)


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

> If we export a single object, we could technically write the name of the OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as the name. Or maybe name a single object as "filebasename.1" and a 2nd object as "filebasename.2", ... On Tue, Feb 18, 2025 at 11:00 AM Marius Kintel <marius@kintel.net> wrote: > If we export a single object, we could technically write the name of the > OpenSCAD file as object name in 3mf. Today, we just use “OpenSCAD Model” as > the name. > > See > https://github.com/openscad/openscad/blob/10248bcfb5a76d03d8355f587595e9ac8942c657/src/io/export_3mf_v2.cc#L162 > > -Marius > > On Feb 18, 2025, at 11:53, Jordan Brown via Discuss < > discuss@lists.openscad.org> wrote: > > On 2/18/2025 8:32 AM, Todd Allen via Discuss wrote: > > If I export from OpenSCAD as an .stl to my_object.stl then when I import > it into OrcaSlicer I see it in the objects list named "my_object.stl". But > if I export as a .3mf in OrcaSlicer's object list I see "OpenSCAD Model". > Is there a way to specify how OrcaSlicer names what OpenSCAD exports in > .3mf files? > > > No. > > Issue #5089 <https://github.com/openscad/openscad/issues/5089> "Add / > change Metadata for 3mf export". > > (Of course I can't speak to whether there's a way to rename it in > OrcaSlicer.) > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > >
TP
Torsten Paul
Tue, Feb 18, 2025 6:12 PM

On 18.02.25 18:44, Todd Allen via Discuss wrote:

I've learned the .3mf file is a .zip and unpacking ones from
OpenSCAD finds they contain a folder <3D> which contains a
single file 3dmodel.model which is an ascii text XML file.

This is likely to be the case for files exported by OpenSCAD
for the time being. The spec allows for much more ways, so
relying on a single file will not work with all files (e.g.
saved in Bambu Slicer) and may even change for OpenSCAD at
any time.

ciao,
Torsten.

On 18.02.25 18:44, Todd Allen via Discuss wrote: > I've learned the .3mf file is a .zip and unpacking ones from > OpenSCAD finds they contain a folder <3D> which contains a > single file 3dmodel.model which is an ascii text XML file. This is likely to be the case for files exported by OpenSCAD for the time being. The spec allows for much more ways, so relying on a single file will not work with all files (e.g. saved in Bambu Slicer) and may even change for OpenSCAD at any time. ciao, Torsten.
RW
Rogier Wolff
Tue, Feb 18, 2025 7:25 PM

On Tue, Feb 18, 2025 at 07:12:03PM +0100, Torsten Paul via Discuss wrote:

On 18.02.25 18:44, Todd Allen via Discuss wrote:

I've learned the .3mf file is a .zip and unpacking ones from
OpenSCAD finds they contain a folder <3D> which contains a
single file 3dmodel.model which is an ascii text XML file.

This is likely to be the case for files exported by OpenSCAD
for the time being. The spec allows for much more ways, so
relying on a single file will not work with all files (e.g.
saved in Bambu Slicer) and may even change for OpenSCAD at
any time.

I have not followed the full discussion, but the way I understand
it... for further processing, the name "openscad model" needs to be
set differently for different models. The plan is now to unzip, edit
the file and rezip. That's a complicated workaround for "openscad is not
able to set the name of the model".

I have created a workaround where I have openscad-comments that
specify output file names and how to make them from that openscad
file.

What Todd would want is to be able to set the output model name either
in the scad or on the commandline so that his different model parts
(possibly coming from one or more scad files) end up having different
model names in the 3MF file.

I would still argue that it would be a good idea to have say
a:

$defaultfilename = "bottompart";

in the scad so that export-stl would suggest that as the filename
(as opposed to the basename of the source scad).
And in case of export 3MF, the model name would default to that.

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a** is going up.  -- Chris Hadfield about flying up the space shuttle.
**  'a' for accelleration.

On Tue, Feb 18, 2025 at 07:12:03PM +0100, Torsten Paul via Discuss wrote: > On 18.02.25 18:44, Todd Allen via Discuss wrote: > > I've learned the .3mf file is a .zip and unpacking ones from > > OpenSCAD finds they contain a folder <3D> which contains a > > single file 3dmodel.model which is an ascii text XML file. > > This is likely to be the case for files exported by OpenSCAD > for the time being. The spec allows for much more ways, so > relying on a single file will not work with all files (e.g. > saved in Bambu Slicer) and may even change for OpenSCAD at > any time. I have not followed the full discussion, but the way I understand it... for further processing, the name "openscad model" needs to be set differently for different models. The plan is now to unzip, edit the file and rezip. That's a complicated workaround for "openscad is not able to set the name of the model". I have created a workaround where I have openscad-comments that specify output file names and how to make them from that openscad file. What Todd would want is to be able to set the output model name either in the scad or on the commandline so that his different model parts (possibly coming from one or more scad files) end up having different model names in the 3MF file. I would still argue that it would be a good idea to have say a: $defaultfilename = "bottompart"; in the scad so that export-stl would suggest that as the filename (as opposed to the basename of the source scad). And in case of export 3MF, the model name would default to that. Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a** is going up. -- Chris Hadfield about flying up the space shuttle. ** 'a' for accelleration.
RW
Raymond West
Tue, Feb 18, 2025 7:52 PM

Are you 'saving project as' or 'export generic .3mf.'? It used to be
that bambu slicer (which Orca is based on, never mind the rest of the
forks') did not save as a standard .3mf.  I raised the issue some time
ago to bbl, I think they have changed it now (possibly added the 'export
as generic' choice.) afaik, it saves the project name by default.. It
saves the 3mf files named however I like, and any version opens in
openscad, but Inside it seems to be all binary.

I'm using Orca slicer v 2.0.0. beta. You realise that there will be
problems with bbl printers and orca in the future, since bbl are working
towards their closed system, and screwing up every one else.

On 18/02/2025 16:32, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I
import it into OrcaSlicer I see it in the objects list named
"my_object.stl".  But if I export as a .3mf in OrcaSlicer's object
list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer
names what OpenSCAD exports in .3mf files?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Are you 'saving project as' or 'export generic .3mf.'? It used to be that bambu slicer (which Orca is based on, never mind the rest of the forks') did not save as a standard .3mf.  I raised the issue some time ago to bbl, I think they have changed it now (possibly added the 'export as generic' choice.) afaik, it saves the project name by default.. It saves the 3mf files named however I like, and any version opens in openscad, but Inside it seems to be all binary. I'm using Orca slicer v 2.0.0. beta. You realise that there will be problems with bbl printers and orca in the future, since bbl are working towards their closed system, and screwing up every one else. On 18/02/2025 16:32, Todd Allen via Discuss wrote: > If I export from OpenSCAD as an .stl to my_object.stl then when I > import it into OrcaSlicer I see it in the objects list named > "my_object.stl".  But if I export as a .3mf in OrcaSlicer's object > list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer > names what OpenSCAD exports in .3mf files? > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
TA
Todd Allen
Tue, Feb 18, 2025 8:32 PM

The problem is with exporting 3mf files from OpenSCAD which doesn't allow
objects to have unique names.

On Tue, Feb 18, 2025, 1:53 PM Raymond West via Discuss <
discuss@lists.openscad.org> wrote:

Are you 'saving project as' or 'export generic .3mf.'? It used to be
that bambu slicer (which Orca is based on, never mind the rest of the
forks') did not save as a standard .3mf.  I raised the issue some time
ago to bbl, I think they have changed it now (possibly added the 'export
as generic' choice.) afaik, it saves the project name by default.. It
saves the 3mf files named however I like, and any version opens in
openscad, but Inside it seems to be all binary.

I'm using Orca slicer v 2.0.0. beta. You realise that there will be
problems with bbl printers and orca in the future, since bbl are working
towards their closed system, and screwing up every one else.

On 18/02/2025 16:32, Todd Allen via Discuss wrote:

If I export from OpenSCAD as an .stl to my_object.stl then when I
import it into OrcaSlicer I see it in the objects list named
"my_object.stl".  But if I export as a .3mf in OrcaSlicer's object
list I see "OpenSCAD Model".  Is there a way to specify how OrcaSlicer
names what OpenSCAD exports in .3mf files?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

The problem is with exporting 3mf files from OpenSCAD which doesn't allow objects to have unique names. On Tue, Feb 18, 2025, 1:53 PM Raymond West via Discuss < discuss@lists.openscad.org> wrote: > Are you 'saving project as' or 'export generic .3mf.'? It used to be > that bambu slicer (which Orca is based on, never mind the rest of the > forks') did not save as a standard .3mf. I raised the issue some time > ago to bbl, I think they have changed it now (possibly added the 'export > as generic' choice.) afaik, it saves the project name by default.. It > saves the 3mf files named however I like, and any version opens in > openscad, but Inside it seems to be all binary. > > I'm using Orca slicer v 2.0.0. beta. You realise that there will be > problems with bbl printers and orca in the future, since bbl are working > towards their closed system, and screwing up every one else. > > On 18/02/2025 16:32, Todd Allen via Discuss wrote: > > > If I export from OpenSCAD as an .stl to my_object.stl then when I > > import it into OrcaSlicer I see it in the objects list named > > "my_object.stl". But if I export as a .3mf in OrcaSlicer's object > > list I see "OpenSCAD Model". Is there a way to specify how OrcaSlicer > > names what OpenSCAD exports in .3mf files? > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >