• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Design & Development v
« Previous 1 2 3 4 5 … 11 Next »
EMF / WMF paths plugin

 
  • 0 Vote(s) - 0 Average
EMF / WMF paths plugin

edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#1
11-10-2022, 07:02 PM
Hello,

I have been using wings for some time and wanted to make some plugins for it.

The first plugin I've made is a path importer from .emf and .wmf metafile files. As well as importing the path information, the importer also uses the fill colors of the shape.

Also, with .emf files, you can clip an image to a path in Inkscape, export as a emf file, and it will be imported as a texture on the shape.
[Image: OHFMZby6_o.png]

The plugin works on v2.2.6 and v2.2.9.

beam and source file:
wpc_wmf_file_paths.tar
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,676
Threads: 183
Joined: Jun 2012
#2
11-11-2022, 07:25 PM
Welcome edb and thanks for sharing this plugin.
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#3
11-11-2022, 08:05 PM
Thank you!
oort
Offline

3D Obsessed

Posts: 1,184
Threads: 69
Joined: Nov 2012
#4
12-25-2022, 05:04 PM
edb,

Thanks for your work on these import plugins.

oort
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#5
02-22-2023, 08:41 PM
oort Wrote:Thanks for your work on these import plugins.

You're welcome oort.


I should have updates to post soon. I've been testing this plugin and the SVG one for a while.
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#6
02-22-2023, 10:11 PM
Many changes and fixes to the WMF/EMF importer.

So far, EMF will import a 100pt square scaled to 1 unit from InkScape. Shown here with a 100pt square from a EPS file for comparison.
[Image: BtoMYQXd_o.png]

WMF will import a 100pt square scaled from InkScape and Affinity.
[Image: BPfgKXVs_o.png]

Files from other software might import fine but might not be the right scale.

The scaling of shapes is user adjustable with a default to 100pt.

updated beam and source file:
wpc_wmf_file_paths.tar
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#7
02-27-2023, 09:58 PM (This post was last modified: 02-27-2023, 10:31 PM by edb.)
Fixed some things and added a window to viewport scale factor used in some EMF files such as those exported by Affinity.

updated beam and source file:
wpc_wmf_file_paths.tar

Also, a new "fit scale within view" option rescales the shapes to fit in the camera view.

updated beam and source file:
wpc_wmf_file_paths.tar
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#8
04-10-2023, 12:46 PM
Updates of some small improvements, including an edge case for wmf files with inverted vertical window extents without an apparent viewport specified, which I've only seen being made by lotus presentation graphics.
wpc_wmf_paths.tar
Also the plugin was renamed to a shorter name from wpc_wmf_file_paths to wpc_wmf_paths, so the earlier plugin will need to removed from the plugins user folder or unchecked from the plugin manager.
edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#9
05-12-2023, 05:55 PM
A new build with recent fixes:
wpc_wmf_paths.tar
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode