jdhoek / inkscape-isometric-projection Goto Github PK
View Code? Open in Web Editor NEWInkscape extension for converting objects to an isometric projection
License: GNU General Public License v3.0
Inkscape extension for converting objects to an isometric projection
License: GNU General Public License v3.0
I have ubuntu 21.10, and I moved files .inx and .py in inkscape extention.
I restarted inkscape, and I launched isometric transformation, but I had an error on the 164 line of the axonometric_projection.py file.
So, i imported numpy and I removed "tr = transform @ effect_matrix" with "tr =np.dot(transform, effect_matrix)" and it works.
I share my experience
Previously, on my old laptop (unbutu 22.04 LTS), I enjoyed isometric transformation and I didn't need to do that, curious.
Thanks for your extention
Using inkscape 1.0.2 on debian 10 'buster'. When run this 3.0 extensions, get error. The older version 2.1 run no error.
Traceback (most recent call last):
File "axonometric_projection.py", line 184, in
effect.run()
File "/usr/share/inkscape/extensions/inkex/base.py", line 140, in run
self.save_raw(self.effect())
File "axonometric_projection.py", line 164, in effect
tr = transform @ effect_matrix
TypeError: unsupported operand type(s) for @: 'Transform' and 'Transform'
Best regards
On windows I added the files in this C:\Program Files\Inkscape\share\inkscape\extensions
folder.
Hi I got this message after installing the extension on Win 10 Inkscape 1.0
isometric_projection.py:11: DeprecationWarning: inkex.localize was moved to inkex.localization.localize
inkex.localize()
isometric_projection.py:78: DeprecationWarning: Effect.OptionParser oroptparse
has been deprecated and replaced withargparser
.You must changeself.OptionParser.add_option
toself.arg_parser.add_argument
; the arguments are similar.
self.OptionParser.add_option(
isometric_projection.py:82: DeprecationWarning: Effect.OptionParser oroptparse
has been deprecated and replaced withargparser
.You must changeself.OptionParser.add_option
toself.arg_parser.add_argument
; the arguments are similar.
self.OptionParser.add_option(
isometric_projection.py:198: DeprecationWarning: Effect.affect is nowEffect.run()
. Theoutput
argument has changed.
effect.affect()
isometric_projection.py:162: DeprecationWarning: Effect.selected is now a dict in the svg. Useself.svg.selected
.
if len(self.selected) == 0:
isometric_projection.py:172: DeprecationWarning: Effect.selected is now a dict in the svg. Useself.svg.selected
.
for id, node in self.selected.items():
isometric_projection.py:173: DeprecationWarning: simpletransform.computeBBox -> sum([node.bounding_box() for node in aList])
bbox = computeBBox([node])
Traceback (most recent call last):
File "isometric_projection.py", line 198, in
effect.affect()
File "C:\Program Files\Inkscape 1.0\share\inkscape\extensions\inkex\deprecated.py", line 180, in affect
return self.run(args=args)
File "C:\Program Files\Inkscape 1.0\share\inkscape\extensions\inkex\base.py", line 123, in run
self.save_raw(self.effect())
File "isometric_projection.py", line 174, in effect
midpoint = self.getMidPoint(bbox, node)
File "isometric_projection.py", line 119, in getMidPoint
x = bbox[1] - (bbox[1] - bbox[0]) / 2
TypeError: 'BoundingBox' object is not subscriptable
I have tried installing the extension on a win64 PC. However I seem to get the same error message no matter what side I try to convert (top, left or right side):
Traceback (most recent call last):
File "isometric_projection.py", line 7, in
from simpletransform import Transform
ImportError: cannot import name Transform
I am on Inkscape v. 0.92.5
Thank you very much for this amazing tool. I tested it and it works flawlessly in Windows 7 64 bit. ;-)
I would just like to add, if possible, the following
Windows 32 bit > C:\Program Files (x86)\Inkscape\share\extensions
Windows 64 bit > C:\Program Files\Inkscape\share\extensions\
If you don't want or don't agree it's fine as well. Thank you once more!
Just want to say that I love this extension! Unfortunately, the move to Inkscape 1.2 has broken the extension...is there any chance the extension could be updated? Thanks again!
I downloaded and added isometric_projection.inx and .py file ti inkscape 1.1
The extension menu pops up but doe not do the transformation I get error.
Any way to resolve the problem
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:11: DeprecationWarning: inkex.localize was moved to inkex.localization.localize.
inkex.localize()
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:78: DeprecationWarning: Effect.OptionParser or optparse
has been deprecated and replaced with argparser
. You must change self.OptionParser.add_option
to self.arg_parser.add_argument
; the arguments are similar.
self.OptionParser.add_option(
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:82: DeprecationWarning: Effect.OptionParser or optparse
has been deprecated and replaced with argparser
. You must change self.OptionParser.add_option
to self.arg_parser.add_argument
; the arguments are similar.
self.OptionParser.add_option(
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:198: DeprecationWarning: Effect.affect is now Effect.run()
. The output
argument has changed.
effect.affect()
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:162: DeprecationWarning: Effect.selected is now a dict in the SvgDocumentElement class. Use self.svg.selected
.
if len(self.selected) == 0:
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:172: DeprecationWarning: Effect.selected is now a dict in the SvgDocumentElement class. Use self.svg.selected
.
for id, node in self.selected.items():
C:\Program Files\Inkscape\share\inkscape\extensions\isometric_projection.py:173: DeprecationWarning: simpletransform.computeBBox -> sum([node.bounding_box() for node in aList])
bbox = computeBBox([node])
Traceback (most recent call last):
File "C:\Program
Inkscape has received additional data from the script executed. The
script did not return an error, but this may indicate the results will
not be as expected.
D:\Program Files\Inkscape\bin\pythonw.exe: can't find 'main' module in 'C:\Users\ZEXAL\Desktop\icons'
I use windows10, Inkscape 1.2. And I tried to import the ". SVG" file, which also failed to work
This does not seem to work in Inkscape 0.92.3 (2405546, 2018-03-11)
x64 bit Windows 10 Pro.
Using Inkscape 1.0.2 on OS X, under Extensions --> Axonometric Projection, the "Isometric Projection" option is unselectable (grayed out).
Hi,
great tool ... but there's a tiny glitch when drawing a bow.
I draw a square of 10x10, then duplicate it 3 times, then use the tool to generate the right, left, and top side. Then I assemble them, it looks good ... except that looking closely at the top side right corner, I could see the right side going a little bit too far.
I spend a few minutes adjusting it and now it looks good.
Thanks for a great tool, any way.
(Hi there, Louis from Twitter!)
I've updated your excellent plugin to also do trimetric projections. I'm no python expert so there may be bad code but it's just a few lines... also I hopefully updated the relevant comments too.
I've tested each side of iso, di and tri, forward and reverse, and fingers crossed haven't broken anything.
Inkscape extension definition files updated to handle 2 angles.
https://gist.github.com/l-keal/6b10160f415d5872bf252258f183527d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.