Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help! Unable to register Python script
#1
My first attempt at trying to modify an actual Python script.

I have taken the Uncrop script of Lloyd Konneker and modified it (using the Bluefish Editor) so that it "uncrops" on the left-hand side.
I was able to register this as uncrop-side1.py.

My next step was to add another slider so that I could specify the sample-width for the resynthesizer. However, all my attempts to register this as uncrop-side2.py have come to nothing!

I am obviously making a stupid mistake, but several days of searching has not helped. If someone could point out my obvious error it would be much appreciated.

I have substituted the appropriate parameters into uncrop-side1.py (without re-registering) to "uncrop" right, top and bottom, and that all worked. The intention was to add an additional PF_OPTION or PF_RADIO to select the side to uncrop and then re-register it under a suitable name. The end result will probably be of little value, but a useful education for me!

Attached are the two files - uncrop-side1 - (working) and uncrop-side2 - (not registering).

david.


Attached Files
.zip   plugin-uncrop-side1.zip (Size: 2.31 KB / Downloads: 275)
.zip   plugin-uncrop-side2.zip (Size: 2.33 KB / Downloads: 268)
Reply


Messages In This Thread
Help! Unable to register Python script - by david - 10-24-2018, 04:47 PM

Forum Jump: