EdgeTune2.0: freehand reworking of edgeloops by sliding verts.

EWOCprojects presents:

The second version of EdgeTune, two years later.

http://users.telenet.be/EWOCprojects/index.html

It is an original concept script that implements reworking eg. an edgeloop around the mouth of a character into another shape. So, a reshaping script. This is done by sliding selected vertices over the edges they are part of. Try it, it is worth it, easy, fast and intuitive modelling technique.

The new version has a new GUI, all code has been rewritten and optimized, and almost all shortcomings of the original are lifted.

Also, do take a look at the KnifePro script accessible from the same page.

Fantastic!

Wow, this script is awesome. It’s very useful for hard surface modeling. Thanks a lot!

hi! what am i doing wrong? it does not work, nor does the knife pro. perhaps it doesn’t work with 2.43? or are there any tricks? both scripts sound very good and handy, so i’d be glad if someone could help me.

stulliDPB: really I have no idea of what could be wrong. They work perfectly well with 2.43.

Did you, when installing the scripts, copy both scripts contained in the zip archive to your scripts directory ?
Did you switch to EditMode before starting the scripts ?
You are working on a polygon mesh, aren’t you ?
Also note, when working with more than one 3D view, you should first click one of them, before the script starts working.

Try this:
File -> New
Add -> Mesh -> Cube
<Tab> (go to EditMode)
Mesh -> Scripts -> KnifePro

When you move the mouse pointer over the cube’s edges at least you should see them turn orange.

This is all I can do for you, hope it helps…

thanks for your help, but still it doesn’t work. hm, weird…

Incredible ! :eek:

No more than a week ago i left a couple of posts on some forums requesting exactly THIS feature !
Exactly what i wanted… Too bad you have to exexcute a script to do just that.
I really hope your work (knife Pro too) will be implemented natively in Blender some day.
What do you think ?

You will have to pull the developers’ ears every single day ! Just make a lot of noise everywhere about how good the scripts are.

Or you could wait for me to learn C++, I ordered a book yesterday, so I just might look at implementing the scripts in the core myself, maybe.

Also I think we should all request the developers to implement a feature that enables us to assign scripts to some unused key combination. Now we have to use these menus and the “Scripts” entry is entirely on the top of the menu. How many times did I ‘miss’ the entry with my mouse. Very annoying. And when your window is badly placed, you might even find the Scripts entry falling off the screen, with you being unable to reach it.
Crazy.

Common people, lets start annoying those developers !

Great scripts, paleajed. Thank you ;). They work well on Windows, but I have also problems on Linux. They seem to work, but without “the visual part” - with Knifepro I click ot the edges and after pressing Enter new vertices are added. Same with EdgeTune - the vertices slide over the edges but without visual representation - no edge highlighting etc. - only the effect is seen (after pressing Enter).

that’s exactly my problem
hm…
:spin:

Or you could wait for me to learn C++, I ordered a book yesterday, so I just might look at implementing the scripts in the core myself, maybe

Blender is written in C not C++ . Here’s a link to a nice free (actually it’s beta) flash based intro to C programming .

Thanks for the scripts by the way . Should come in handy .

They work well on Windows, but I have also problems on Linux. They seem to work, but without “the visual part”

I tested KnifePro on my Musix Linux distro today and it works fine, including visuals.
The visuals use OpenGL commands to draw stuff on-screen, so maybe you need some OpenGL stuff installed (I really don’t know how Blender does this on Linux). Maybe Mesa or NVidia drivers or something. I really don’t know. Since Blender itself seems to be working for you, I’d expect script-OpenGL to work too but maybe Blender Python has a different approach to OpenGL than Blender itself does. Just guessing. Any gurus know something about this ?

hi,

what are “FGons” and “edgeloops”?

and how do you install a script into blender? i didn’t get that part.

could someone give me maybe a short instruction, please? :slight_smile: i’d like to try that script out too.

Blender can only use tris and quads in its models (polygons with 3 or 4 cornerpoints), unlike many other applications, who als support NGons, polygons with an unlimited amount of corners. Blender uses a fake method to simulate NGons, named FGons, the F stands for Fake, it uses a technique in which a number of tris or quads are joined together visually by not showing certain edges, but in essence its just tris and quads still. You have to explicitly create FGons.

An edgeloop is a long string of edges, open or closed, that for example wraps around a model and constructs part of your model. By clever placing of edgeloops you come to using a better topology for your model, by describing certain features by loops, which can be selected by clicking once (Alt + right click in Blender) for working quickly and easily. Check out the Spiraloid website for more information on edgeloop related topics.

Install scripts by copying them to Blender Foundation installation directory/Blender/.blender/scripts on your harddrive. Second method: when in Blender, LMB-pull the top menu bar down on its bottom rim. In this new screen you can make a lot of interesting settings, do look around. Theres a tab named File Paths, click this and enter a directory of your choice after the “Python” entry, then click the icon “re-evaluate scripts” next to it to register the scripts into the programs menus. Copy the scripts (be sure to first decompress zips) into this user directory.

There you go !

I LOVE knife pro… a lot more solid than similar tools in other packages… its only problem is the lack of ngons in blender… eg if using it to add a new edge loop it’d be good if the triangulation could be “smartly” removed when the loop is completed…

As a suggestion though, it seems to only use the “innervert” corner cut type (see the meshtools1 in edit buttons… it’d be nice if it respected the setting in the panel for corner cut type)

finally, when I try this on windows 2.45 I can rotate the view between adding points, on Linux (ubuntu 7.10 64bit) on svn builds I can’t rotate the view…

when bmesh finally arrives i hope you update this script (or integrate it) as it’d be perfect with those tools…

Here’s looking forward to a day when scripts can be more completely integrated to the interface as the only other niggle is that it’s tucked away as a script anf can’t have a custom keyboard shortcut or floating toolbar…

EDIT:- just tried again on ubuntu and it rotates fine between cuts… only, some of the triangles that get generated won’t merge…(normally when I select two adjacent triangles and hit “f” key they become a quad, and triangles that are a result of knife pro won’t do this… I don’t even get a context menu…

Hello, Paleajed, I have just discovered your Knife Pro script and I have to say that it is excellent. Much better than Blender original knife tool. I am just curious whether there may be some steps to to replace Blender one with your one in original Blender build. Or at least to have your script bundled besides other officially bundled scripts.

Thank you very much for this nice peace of code.

thank you so very much for writing and sharing this script Paleajed. Much appreciated :slight_smile:

I can’t get EdgeTune to work in Blender. Although I copied the two files
(edgetunedisplay.py and EdgeTune2.0.py) in my ~/.blender/scripts directory, I get this error message each time I try to use the script.

When I check the console, this is what I get :

 Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "/home/chef/.blender/scripts/EdgeTune2.0.py", line 299, in &lt;module&gt;
    loadedgetunedisplay()
  File "/home/chef/.blender/scripts/EdgeTune2.0.py", line 136, in loadedgetunedisplay
    scene.addScriptLink("edgetunedisplay.py","Redraw")
AttributeError: no such Blender Text

Could you tell me what I am doing wrong ?

It looks like a linux vs. winders thing…

On line 119 and 127 of EdgeTune2.0.py you have to change the backslash "" to a forwards slash “/” in the “\edgetunedisplay.py”] part and that’s it.

Thanks Uncle Entity !

I will try as soon as possible. I should have thought of it before.