Effects-Perspective, Python, Sources.
Hi all,
Youtube tutorial on perspective is absolutely outstanding! I compiled Inkscape 0.45.1 from sources over the platform ,but by Perspective effect seems to not work too much properly, I know that The Object working as perspective should have 4 and only 4 nodes. Moreover I tried to work in the same way as in movieclip - the effect: all my objects stood in place as created.
Are there any other requirements for good perspective effects other than '4 nodes' ? Maybe the problem is in python or that my Inkscape was compiled form sources?
Paul.
Hi, people!
I am using the latest Inkscape version in a Mac (PPC) and I get the following error message:
"The inkex.py module requires PyXML. Please download the latest version from http://pyxml.sourceforge.net/."
Is this something that we have to compile, or we just need to install it? I got to check it out... I didn't know Inkscape needed this, and probably a lot of guys out there feel the same about this... Maybe Inkscape should include all these dependencies, whenever it does not rely on the standard operating system configuration... Or, at least, there should be some advide in the website to download them together with the Inkscape binaries.
Victor Domingos (inkscaping from Braga, Portugal) http://lojamac.com/blog
Em 2007/05/29, às 09:56, Donn escreveu:
Are there any other requirements for good perspective effects other than '4 nodes' ? Maybe the problem is in python or that my Inkscape was compiled form sources?
Perspective bends the mind, not the objects on the canvas. I've also yet to get it working. :D
/d
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On Tuesday 29 May 2007 09:25, Victor Domingos wrote:
Hi, people!
I am using the latest Inkscape version in a Mac (PPC) and I get the following error message:
"The inkex.py module requires PyXML. Please download the latest version from http://pyxml.sourceforge.net/."
Is this something that we have to compile, or we just need to install it? I got to check it out... I didn't know Inkscape needed this, and probably a lot of guys out there feel the same about this... Maybe Inkscape should include all these dependencies, whenever it does not rely on the standard operating system configuration... Or, at least, there should be some advide in the website to download them together with the Inkscape binaries.
Further the latest version according to sourceforge is from 2004 and is no longer being maintained. Is it safe to download and install?
I agree that it's not clear up from the website. But I did find some instruction on the wiki here:
http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Enabling_python_effe...
I'm running it on XP and on Linux and I didn't have a problem, but I know of others who have. It should be made more clear.
RQ
Begin forwarded message:
I am using the latest Inkscape version in a Mac (PPC) and I get the following error message:
"The inkex.py module requires PyXML. Please download the latest version from http://pyxml.sourceforge.net/."
Is this something that we have to compile, or we just need to install it? I got to check it out... I didn't know Inkscape needed this, and probably a lot of guys out there feel the same about this... Maybe Inkscape should include all these dependencies, whenever it does not rely on the standard operating system configuration... Or, at least, there should be some advide in the website to download them together with the Inkscape binaries.
On 2007-May-29 , at 18:55 , Richard Querin wrote:
I agree that it's not clear up from the website. But I did find some instruction on the wiki here:
http://wiki.inkscape.org/wiki/index.php/ CompilingMacOsX#Enabling_python_effects
I'm running it on XP and on Linux and I didn't have a problem, but I know of others who have. It should be made more clear.
You don't have to compile them and if you downloaded the latest stable version of Inkscape for PPC, it has those python packages included in it (in the dmg you have the Inkscape application that you need to drag to Applications and two other folders that you need to drag to the corresponding python folder. All this should be made quite self-explanatory by the background image). Once the python packages are installed, you can safely update Inkscape to a development build if you wish and the python packages will stay there and work. It would be better to include those packages into the Inskcape application itself but then we'll need to modify Python search path to point it to the correct place. This is probably doable and would be a welcomed improvement. Inkscape being an open source project, it only grows features when people who want something actually come in a do it. This feature does not involve deep coding into Inskcape sources so is probably doable by anybody who is willing to take the time to do it. Feel free to try to produce a patch ;)
JiHO --- http://jo.irisson.free.fr/
Em 2007/05/29, às 18:38, jiho escreveu:
You don't have to compile them and if you downloaded the latest stable version of Inkscape for PPC, it has those python packages included in it (in the dmg you have the Inkscape application that you need to drag to Applications and two other folders that you need to drag to the corresponding python folder. All this should be made quite self-explanatory by the background image).
Hi, JiHO!
It seems that someone has forgotten to include the python files. The background image does show an arrow with the word "Python", but there is no alias, nor files, nor folders. Just the Inkscape itself and an alias to the Applications folder.
Victor Domingos http://lojamac.com/blog
On 2007-May-29 , at 19:59 , Victor Domingos wrote:
Em 2007/05/29, às 18:38, jiho escreveu:
You don't have to compile them and if you downloaded the latest stable version of Inkscape for PPC, it has those python packages included in it (in the dmg you have the Inkscape application that you need to drag to Applications and two other folders that you need to drag to the corresponding python folder. All this should be made quite self-explanatory by the background image).
Hi, JiHO!
It seems that someone has forgotten to include the python files. The background image does show an arrow with the word "Python", but there is no alias, nor files, nor folders. Just the Inkscape itself and an alias to the Applications folder.
Hu? I have everything here. It is only in the PPC version, maybe you downloaded the universal one?
JiHO --- http://jo.irisson.free.fr/
On Tuesday 29 May 2007 14:07, jiho wrote:
Hu? I have everything here. It is only in the PPC version, maybe you downloaded the universal one?
JiHO
What (or who) is a PPC? I run on Slackware 11 Linux. I had enough trouble chasing down a version of Gnome that would work.
I'll wait until there is a version for Linux that has all this python/xml stuff included. Is there an ETA for this?
On 5/29/07, John R. Culleton <john@...1668...> wrote:
On Tuesday 29 May 2007 14:07, jiho wrote:
Hu? I have everything here. It is only in the PPC version, maybe you downloaded the universal one?
JiHO
What (or who) is a PPC? I run on Slackware 11 Linux. I had enough trouble chasing down a version of Gnome that would work.
I'll wait until there is a version for Linux that has all this python/xml stuff included. Is there an ETA for this?
-- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com
PPC is PowerPC, the processor in the Macintosh prior to Intel. I run Ubuntu Linux and I believe the standard install of Inkscape (plus maybe the python package installed in ubuntu by default) had everything I needed. I didn't have to install or compile anything to get the effect to work.
RQ
Em 2007/05/29, às 17:55, Richard Querin escreveu:
I agree that it's not clear up from the website. But I did find some instruction on the wiki here:
http://wiki.inkscape.org/wiki/index.php/ CompilingMacOsX#Enabling_python_effects
I'm running it on XP and on Linux and I didn't have a problem, but I know of others who have. It should be made more clear.
RQ
Thank you very much! I have just installed Inkscape_Python_Packages.PPC.dmg and now it worked fine.
However, I still get an error message:
(inkscape-bin:17204): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17204): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17226): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17226): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17248): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17248): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17270): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17270): WARNING **: Format autodetect failed. The file is being opened as SVG.
By the way, I have another question.
I use Portuguese locale in my Mac, but Inkscape ignores that setting and keeps running in English all the time. I know that Inkscape is available in Portuguese, at least in the Windows version. Does anyone know if it is possible to make it use the Portuguese localization?
Thanks in advance, Victor Domingos (inkscaping from a rainy Braga, in Portugal) http://lojamac.com/blog
On 2007-May-29 , at 19:56 , Victor Domingos wrote:
Em 2007/05/29, às 17:55, Richard Querin escreveu:
I agree that it's not clear up from the website. But I did find some instruction on the wiki here:
http://wiki.inkscape.org/wiki/index.php/ CompilingMacOsX#Enabling_python_effects
I'm running it on XP and on Linux and I didn't have a problem, but I know of others who have. It should be made more clear.
Thank you very much! I have just installed Inkscape_Python_Packages.PPC.dmg and now it worked fine.
Glad to know it solves the problem.
However, I still get an error message:
(inkscape-bin:17204): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17204): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17226): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17226): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17248): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17248): WARNING **: Format autodetect failed. The file is being opened as SVG.
(inkscape-bin:17270): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
** (inkscape-bin:17270): WARNING **: Format autodetect failed. The file is being opened as SVG.
This is "normal", though unwanted indeed. The locale warning is present every time you start Inkscape. You just don't see it because you don't start it from a terminal. The second warning is because python script take the full document, do their things and give it back to Inkscape but do not specify the extension so Inkscape has to suppose it's SVG.
By the way, I have another question.
I use Portuguese locale in my Mac, but Inkscape ignores that setting and keeps running in English all the time. I know that Inkscape is available in Portuguese, at least in the Windows version. Does anyone know if it is possible to make it use the Portuguese localization?
Argh, it seems we can't get rid of this problem. It should work automatically. This locale warning is probably related, now that I think of it. What version exactly are you using (stable or development, universal or ppc only etc.)?
JiHO --- http://jo.irisson.free.fr/
Em 2007/05/29, às 19:06, jiho escreveu:
Argh, it seems we can't get rid of this problem. It should work automatically. This locale warning is probably related, now that I think of it. What version exactly are you using (stable or development, universal or ppc only etc.)?
I have been using the latest stable (universal), although I also I have tested a recent development version, and I found the same problem.
Is there any workaround for the localization problem, meanwhile?
Victor Domingos
On 2007-May-29 , at 19:56 , Victor Domingos wrote:
I use Portuguese locale in my Mac, but Inkscape ignores that setting and keeps running in English all the time. I know that Inkscape is available in Portuguese, at least in the Windows version. Does anyone know if it is possible to make it use the Portuguese localization?
That's strange. Localization works for me in French, German, Spanish (with some problems with bold text though) but not Portuguese. The Portuguese locale file (I assume it's the one in the "pt" directory) is smaller than the others... strange.
JiHO --- http://jo.irisson.free.fr/
Em 2007/05/29, às 19:17, jiho escreveu:
That's strange. Localization works for me in French, German, Spanish (with some problems with bold text though) but not Portuguese. The Portuguese locale file (I assume it's the one in the "pt" directory) is smaller than the others... strange.
JiHO
Well, I think that the "Portuguese Portuguese" localization is not complete. Usually, I reccomend the "Brazilian Portuguese" to my students, because it is far more complete (it should be one only locale, in my oppinion, but this is not the place for that kind of discussion).
Probbably, that's the reason for being a smaller file, right?
Victor Domingos
Just watched the Heathenx's perspective screencast, neat.
Just throwing this on to the list:
To use the perspective effect in linux you need to have the numpy and linalg python modules installed. The easiest way to do this, in Ubuntu at least, seems to be to install the scipy module (not the numpy module). This is the ubuntu package called 'python-scipy' and can be installed with the package manager or from the command line by entering:
sudo apt-get install python-scipy
Hope that helps someone.
Cheers -Terry
(in case telling you you need numpy and then telling you not to install it doesn't make sense: scipy includes both numpy and linalg, whereas numpy doesn't include linalg, and you can't install scipy and numpy).
Terry Brown wrote the following on 5/29/2007 2:37 PM:
Just watched the Heathenx's perspective screencast, neat.
Just throwing this on to the list:
To use the perspective effect in linux you need to have the numpy and linalg python modules installed. The easiest way to do this, in Ubuntu at least, seems to be to install the scipy module (not the numpy module). This is the ubuntu package called 'python-scipy' and can be installed with the package manager or from the command line by entering:
sudo apt-get install python-scipy
Hope that helps someone.
Cheers -Terry
Ahh, that's Richard Querin's screencast. But I'll take full credit for it. He won't care...
heathenx
On Tue, 29 May 2007, heathenx wrote:
Terry Brown wrote the following on 5/29/2007 2:37 PM:
Just watched the Heathenx's perspective screencast, neat.
[snip]
Ahh, that's Richard Querin's screencast. But I'll take full credit for it. He won't care...
heathenx
Whoops, sorry Richard, wasn't paying attention :-} Anyway, nice tutorial.
Cheers -Terry
On 5/29/07, Terry Brown <terry_n_brown@...12...> wrote:
On Tue, 29 May 2007, heathenx wrote:
Terry Brown wrote the following on 5/29/2007 2:37 PM:
Just watched the Heathenx's perspective screencast, neat.
[snip]
Ahh, that's Richard Querin's screencast. But I'll take full credit for
it. He
won't care...
heathenx
Nahhh.. go right ahead heathenx. Can you pay my monthly mortgage while your at it? ;)
Whoops, sorry Richard, wasn't paying attention :-} Anyway, nice
tutorial.
Cheers -Terry
No problemo. Glad you liked it. There are several there. The production *seems* to get a little better each time (hopefully). Now if you're interested in drawing a 'butt' then check out heathenx's shield icon screencast too. ;) - sorry, just couldn't resist - I love payback. :)
Richard Querin wrote the following on 5/29/2007 3:01 PM:
On 5/29/07, *Terry Brown* <terry_n_brown@...12... mailto:terry_n_brown@...12...> wrote:
On Tue, 29 May 2007, heathenx wrote: > Terry Brown wrote the following on 5/29/2007 2:37 PM: >> Just watched the Heathenx's perspective screencast, neat. [snip] > > Ahh, that's Richard Querin's screencast. But I'll take full credit for it. He > won't care... > > heathenx
Nahhh.. go right ahead heathenx. Can you pay my monthly mortgage while your at it? ;)
Whoops, sorry Richard, wasn't paying attention :-} Anyway, nice tutorial. Cheers -Terry
Ha. Sure. Mortgage on a pop tent can't be too expensive...shoot, I'll just pay it off for you. Wiring the money now. Sending a little extra for a new lawn chair.
heathenx
Feature idea.
I have no idea how hard this would be to implement, or even if it is possible. But it would be an interesting effect.
In Blender, you can take a mesh and add what is called a "lattice" modifier to it. The mesh is usually fairly complex from a face count standpoint. The lattice is usally simpler. It is just a "box" that surrounds the mesh with a few subdivisions.
What is neat is, that if you grab one of the verts in the lattice and move it, it acts like a sort of "bezier" control handle for multiple verts in the mesh, so by moving one vert in the lattice, you can deform a more complex mesh in a controlled fashion.
Could this sort of an idea be adapted to Inkscape? Say you have some text, you convert it to a path, maybe add some nodes. Then you surround it with a box that has a user definable number of nodes per side. If you grab one of those nodes, and drag it, it reacts with a certain number of nodes in the text path, dragging them like a magnet.
With something like this, you could flex and bend an object however you wanted.
____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097
On 5/30/07, Elwin Estle <chrysalis_reborn@...12...> wrote:
Feature idea.
Could this sort of an idea be adapted to Inkscape? Say you have some text, you convert it to a path, maybe add some nodes. Then you surround it with a box that has a user definable number of nodes per side. If you grab one of those nodes, and drag it, it reacts with a certain number of nodes in the text path, dragging them like a magnet.
With something like this, you could flex and bend an object however you wanted.
The node sculptinghttp://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Editing.html#Paths-Node-Sculptingfeature of the node tool in the current release of Inkscape kind of does this. Although it's probably a little more detailed in it's operation than what you're after.
Node sculpting kind of does that, yes, but it isn't quite the same.
Here is a link to the Blender wiki to give some idea of what I am talking about. Admittedly, this is 3D, but it has the gist of the idea.
http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Basic_Animation/Lattice
And a somewhat older link
http://www.blender.org/documentation/htmlI/x10279.html
As you perhaps can see, the whole model is selected. I am guessing that each node in the lattice has a certain "sphere of influence" and whatever mesh vertices that are inside a given sphere are affected proportionally.
--- Richard Querin <rfquerin@...155...> wrote:
On 5/30/07, Elwin Estle <chrysalis_reborn@...12...> wrote:
Feature idea.
Could this sort of an idea be adapted to Inkscape? Say you have some text, you convert it to a path, maybe add some nodes. Then you surround it with a box that has a user definable number of nodes per side. If you grab one of those nodes, and drag it, it reacts with a certain number of nodes in the text path, dragging them like a magnet.
With something like this, you could flex and bend an object however you wanted.
The node
sculptinghttp://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Editing.html#Paths-Node-Sculptingfeature
of the node tool in the current release of Inkscape kind of does this. Although it's probably a little more detailed in it's operation than what you're after.
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/%3E _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
____________________________________________________________________________________Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=...
On 2007-May-30 , at 18:39 , Elwin Estle wrote:
I have no idea how hard this would be to implement, or even if it is possible. But it would be an interesting effect.
In Blender, you can take a mesh and add what is called a "lattice" modifier to it. The mesh is usually fairly complex from a face count standpoint. The lattice is usally simpler. It is just a "box" that surrounds the mesh with a few subdivisions.
What is neat is, that if you grab one of the verts in the lattice and move it, it acts like a sort of "bezier" control handle for multiple verts in the mesh, so by moving one vert in the lattice, you can deform a more complex mesh in a controlled fashion.
Could this sort of an idea be adapted to Inkscape? Say you have some text, you convert it to a path, maybe add some nodes. Then you surround it with a box that has a user definable number of nodes per side. If you grab one of those nodes, and drag it, it reacts with a certain number of nodes in the text path, dragging them like a magnet.
With something like this, you could flex and bend an object however you wanted.
Inkscape already has a feature very similar to what you describe actually, it's called "node sculpting". Take your text converted to path for example, select the node tool, with this tool select all the nodes you'll like to take part in the deformation and then alt+drag one of them: the rest of the nodes react in a smooth way to your operation on a single node. This way you can deform objects smoothly. It can produce really cool effects (Ex: take a profile picture of you, trace it, select the nodes corresponding to your nose and alt- drag one of them... oops you're pinocchio now ;) )
JiHO --- http://jo.irisson.free.fr/
Elwin Estle escribió:
Feature idea.
I have no idea how hard this would be to implement, or even if it is possible. But it would be an interesting effect.
In Blender, you can take a mesh and add what is called a "lattice" modifier to it. The mesh is usually fairly complex from a face count standpoint. The lattice is usally simpler. It is just a "box" that surrounds the mesh with a few subdivisions.
What is neat is, that if you grab one of the verts in the lattice and move it, it acts like a sort of "bezier" control handle for multiple verts in the mesh, so by moving one vert in the lattice, you can deform a more complex mesh in a controlled fashion.
Could this sort of an idea be adapted to Inkscape? Say you have some text, you convert it to a path, maybe add some nodes. Then you surround it with a box that has a user definable number of nodes per side. If you grab one of those nodes, and drag it, it reacts with a certain number of nodes in the text path, dragging them like a magnet.
With something like this, you could flex and bend an object however you wanted.
If I follow you correctly, this could indeed be very useful, not for a single path "node sculpting" but rather for multiple selections/groups of paths. For instance, in the example you gave, suppose you have a text line composed of several characters each a path and grouped together, if a "latice-like" tool was available in Inkscape, then you could simply put a box around the group of objects and select the number of nodes for that bounding box, then simply use "node sculpting" in the bounding box to the effect that the individual nodes of the actual paths to be modified accordingly, that would be one heck of a way to get for instance wavy text without resorting to text-on-path (creating first the wave path, then make the text follow such path), though text-on-path for this particular application is a better solution, for multiple path editing is not, suppose that the before mentioned text were characters of different sizes and shapes (different "font faces") then a tool like this would be very useful. It would be like "mass node sculpting". I think it would actually be very nice, IMO.
On 5/29/07, Paweł Gęga <gega.pawel@...155...> wrote:
Are there any other requirements for good perspective effects other than '4 nodes' ? Maybe the problem is in python or that my Inkscape was compiled form sources?
Pawel,
Things to check:
- Is the object you want to transform actually a path? If it's a rectangle, text object or something else, make sure you convert it to a path first.
- The 4-node path defining the perspective shape should be created starting from bottom left and then proceeding clockwise.
- Make sure you select the 4-node path first, and then the path object you want to transform. Doing this in the opposite order will not work (I think).
If you still get nothing, maybe you should try opening a terminal window and launching inkscape from there. Then when you try out the perspective effect it might print out some messages in the terminal that might give a clue as to what is wrong. Failing that, you could try downloading a package of the latest version for your distro (what are you running?).
RQ
participants (10)
-
Donn
-
Elwin Estle
-
Gian Paolo Mureddu
-
heathenx
-
jiho
-
John R. Culleton
-
Paweł Gęga
-
Richard Querin
-
Terry Brown
-
Victor Domingos