Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-bend-path
#51
(12-25-2017, 08:23 PM)Blighty Wrote:
(12-24-2017, 11:20 PM)Ofnuts Wrote: Btw, how did you generate that sine wave?

It is a script called Shape Paths, from here:
http://registry.gimp.org/node/59

(Does it create too many nodes?  Huh  Huh )t 

Shape path does work if you have the latest - v.0.3  -ofn-bend-path script.

Another way to get a similar curve with minimal nodes is the smooth path plugin
http://registry.gimp.org/node/20069  old works ok in linux. Make a zig-zag and 'smooth' it
Reply
#52
(12-25-2017, 08:23 PM)Blighty Wrote:
(12-24-2017, 11:20 PM)Ofnuts Wrote: Btw, how did you generate that sine wave?

It is a script called Shape Paths, from here:
http://registry.gimp.org/node/59

(Does it create too many nodes?  Huh  Huh )

Not a matter of count of nodes. It just generates a very special case of paths that triggers a bug in ofn-bend-path which has now been fixed.

This said, my own path-waves generates just as accurate sines using fewer nodes (4 per period instead of 8). Choose wisely Smile
Reply
#53
Time for another

   
Reply
#54
^
thats a good example where the guides option comes in handy for some padding !
Reply
#55
(12-25-2017, 08:45 PM)Espermaschine Wrote:
(12-25-2017, 08:23 PM)Blighty Wrote: It is a script called Shape Paths, from here:
http://registry.gimp.org/node/59

(Does it create too many nodes?  Huh  Huh )

*shock*

its mandatory to use only ofnuts path tools here !!!!!!!   Big Grin

the correct answer is: "dear ofnuts, of course i used ofn-path-waves"   Heart

Why should they be mandatory when their superior craftsmanship is enough to subjugate you? Smile

Dictatorships is one's acknowledgment of incompetency.
Reply
#56
I have just been playing again with the latest version of ofn-bend-path. Still finding problems.

I tried with the old version of my sea sick test (the one I uploaded; paths with too many nodes).
I get a different error: Bad file descriptor.

Tried a second time with paths made by ofn-path-waves
Same result, also Bad file descriptor

Tried a third time, simple paths as per version 1
Works fine


Attached Files Image(s)
   
Reply
#57
The script itself doesn't read any file, so I assume that there is a problem with the .PY file you installed and the message comes from the python interpreter (or Gimp's Python interface)(did you restart Gimp?). What says the "More information" area, once expanded?
Reply
#58
(12-26-2017, 12:41 PM)Ofnuts Wrote: What says the "More information" area, once expanded?

I have just done a complete re-install of Gimp (and Windows, and everything else)

Traceback (most recent call last):
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 736, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\32\lib\gimp\2.0\python\gimpfu.py", line 361, in run_script
return apply(function, params)
File "C:\Users\Blighty\.gimp-2.8\plug-ins\ofn-bend-path.py", line 308, in bendPath
topSpline,botSpline=splinesFromEnvelope(envelope)
File "C:\Users\Blighty\.gimp-2.8\plug-ins\ofn-bend-path.py", line 300, in splinesFromEnvelope
s2=Spline(envelope.strokes[1])
File "C:\Users\Blighty\.gimp-2.8\plug-ins\ofn-bend-path.py", line 157, in __init__
self.curves.append(curveFromPoints(s[i:i+8]))
File "C:\Users\Blighty\.gimp-2.8\plug-ins\ofn-bend-path.py", line 142, in curveFromPoints
trace('PointsX: %r, coeffsX: %r' % (pX,coeffsX))
File "C:\Users\Blighty\.gimp-2.8\plug-ins\ofn-bend-path.py", line 43, in trace
print s
IOError: [Errno 9] Bad file descriptor
Reply
#59
Ohh... Ok. If you have a decent code editor change the line (#40) that says 'debug=True' to 'debug=False' (with an uppercase F).

Otherwise just redownload the package, I just updated it.
Reply
#60
Thanks. Working great.
Reply


Forum Jump: