Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script-Fu
#6
(12-20-2023, 06:10 PM)PixLab Wrote: Try to put an integer (0 / 1) where it's written INT32 instead of the Boolean value (true / false)

explanation in the procedure browser can be.... what we don't expect Wink



Also use the curve bend and save the curve (on your desktop) to look into it (with a text editor) might help with what is written
I got this in the file.point # there are upto 17 points where unused points are set to -1  Wink
I might be wrong, I'm not good with TinyScheme and I don't know this filter in a coding way
Code:
POINTFILE_CURVE_BEND
VERSION 1.0

# points for upper and lower smooth curve (0.0 <= pt <= 1.0)
# there are upto 17 points where unused points are set to -1
#       UPPERX     UPPERY      LOWERX    LOWERY

POINTS +0.000000  +0.500000   +0.000000  +0.500000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   +0.435294  +0.243137
POINTS +0.486275  +0.654902   -1.000000  +0.490196
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS -1.000000  -1.000000   -1.000000  -1.000000
POINTS +1.000000  +0.500000   +1.000000  +0.500000

# y values for upper/lower freehand curve (0 <= y <= 255)
# there must be exactly 256 y values
#     UPPER_Y  LOWER_Y

VAL_Y 128  127
VAL_Y 128  127
VAL_Y 128  126
VAL_Y 129  125
VAL_Y 129  125
VAL_Y 129  124
VAL_Y 130  123
VAL_Y 130  122
VAL_Y 131  121
VAL_Y 131  121
VAL_Y 131  120
VAL_Y 132  119
VAL_Y 132  118
VAL_Y 133  117
VAL_Y 133  117
VAL_Y 134  116
VAL_Y 134  115
VAL_Y 134  114
VAL_Y 135  113
VAL_Y 135  112
VAL_Y 136  112
VAL_Y 136  111
VAL_Y 137  110
VAL_Y 137  109
VAL_Y 137  108
VAL_Y 138  107
VAL_Y 138  107
VAL_Y 139  106
VAL_Y 139  105
VAL_Y 140  104
VAL_Y 140  103
VAL_Y 140  102
VAL_Y 141  102
VAL_Y 141  101
VAL_Y 142  100
VAL_Y 142   99
VAL_Y 143   98
VAL_Y 143   98
VAL_Y 143   97
VAL_Y 144   96
VAL_Y 144   95
VAL_Y 145   94
VAL_Y 145   94
VAL_Y 146   93
VAL_Y 146   92
VAL_Y 146   91
VAL_Y 147   91
VAL_Y 147   90
VAL_Y 148   89
VAL_Y 148   88
VAL_Y 148   88
VAL_Y 149   87
VAL_Y 149   86
VAL_Y 150   86
VAL_Y 150   85
VAL_Y 150   84
VAL_Y 151   84
VAL_Y 151   83
VAL_Y 152   82
VAL_Y 152   82
VAL_Y 152   81
VAL_Y 153   80
VAL_Y 153   80
VAL_Y 153   79
VAL_Y 154   78
VAL_Y 154   78
VAL_Y 154   77
VAL_Y 155   77
VAL_Y 155   76
VAL_Y 156   75
VAL_Y 156   75
VAL_Y 156   74
VAL_Y 157   74
VAL_Y 157   73
VAL_Y 157   73
VAL_Y 158   72
VAL_Y 158   72
VAL_Y 158   71
VAL_Y 158   71
VAL_Y 159   70
VAL_Y 159   70
VAL_Y 159   69
VAL_Y 160   69
VAL_Y 160   68
VAL_Y 160   68
VAL_Y 161   68
VAL_Y 161   67
VAL_Y 161   67
VAL_Y 161   66
VAL_Y 162   66
VAL_Y 162   66
VAL_Y 162   65
VAL_Y 162   65
VAL_Y 163   65
VAL_Y 163   64
VAL_Y 163   64
VAL_Y 163   64
VAL_Y 164   64
VAL_Y 164   63
VAL_Y 164   63
VAL_Y 164   63
VAL_Y 165   63
VAL_Y 165   63
VAL_Y 165   63
VAL_Y 165   62
VAL_Y 165   62
VAL_Y 165   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 166   62
VAL_Y 167   62
VAL_Y 167   62
VAL_Y 167   62
VAL_Y 167   62
VAL_Y 167   62
VAL_Y 167   63
VAL_Y 167   63
VAL_Y 167   63
VAL_Y 167   63
VAL_Y 167   63
VAL_Y 167   63
VAL_Y 167   64
VAL_Y 167   64
VAL_Y 167   64
VAL_Y 167   64
VAL_Y 167   65
VAL_Y 167   65
VAL_Y 167   65
VAL_Y 167   65
VAL_Y 167   66
VAL_Y 166   66
VAL_Y 166   66
VAL_Y 166   67
VAL_Y 166   67
VAL_Y 166   67
VAL_Y 166   68
VAL_Y 166   68
VAL_Y 165   68
VAL_Y 165   69
VAL_Y 165   69
VAL_Y 165   69
VAL_Y 165   70
VAL_Y 165   70
VAL_Y 164   70
VAL_Y 164   71
VAL_Y 164   71
VAL_Y 164   72
VAL_Y 164   72
VAL_Y 163   72
VAL_Y 163   73
VAL_Y 163   73
VAL_Y 163   74
VAL_Y 162   74
VAL_Y 162   75
VAL_Y 162   75
VAL_Y 162   75
VAL_Y 161   76
VAL_Y 161   76
VAL_Y 161   77
VAL_Y 161   77
VAL_Y 160   78
VAL_Y 160   78
VAL_Y 160   79
VAL_Y 160   79
VAL_Y 159   80
VAL_Y 159   80
VAL_Y 159   81
VAL_Y 158   81
VAL_Y 158   82
VAL_Y 158   82
VAL_Y 157   83
VAL_Y 157   83
VAL_Y 157   84
VAL_Y 157   84
VAL_Y 156   85
VAL_Y 156   85
VAL_Y 156   86
VAL_Y 155   86
VAL_Y 155   87
VAL_Y 155   87
VAL_Y 154   88
VAL_Y 154   88
VAL_Y 154   89
VAL_Y 153   89
VAL_Y 153   90
VAL_Y 153   90
VAL_Y 152   91
VAL_Y 152   91
VAL_Y 151   92
VAL_Y 151   93
VAL_Y 151   93
VAL_Y 150   94
VAL_Y 150   94
VAL_Y 150   95
VAL_Y 149   95
VAL_Y 149   96
VAL_Y 149   96
VAL_Y 148   97
VAL_Y 148   98
VAL_Y 147   98
VAL_Y 147   99
VAL_Y 147   99
VAL_Y 146  100
VAL_Y 146  100
VAL_Y 146  101
VAL_Y 145  102
VAL_Y 145  102
VAL_Y 144  103
VAL_Y 144  103
VAL_Y 144  104
VAL_Y 143  104
VAL_Y 143  105
VAL_Y 142  106
VAL_Y 142  106
VAL_Y 142  107
VAL_Y 141  107
VAL_Y 141  108
VAL_Y 140  109
VAL_Y 140  109
VAL_Y 140  110
VAL_Y 139  110
VAL_Y 139  111
VAL_Y 138  112
VAL_Y 138  112
VAL_Y 138  113
VAL_Y 137  113
VAL_Y 137  114
VAL_Y 136  115
VAL_Y 136  115
VAL_Y 136  116
VAL_Y 135  116
VAL_Y 135  117
VAL_Y 134  117
VAL_Y 134  118
VAL_Y 134  119
VAL_Y 133  119
VAL_Y 133  120
VAL_Y 132  120
VAL_Y 132  121
VAL_Y 132  121
VAL_Y 131  122
VAL_Y 131  123
VAL_Y 130  123
VAL_Y 130  124
VAL_Y 130  124
VAL_Y 129  125
VAL_Y 129  125
VAL_Y 129  126
VAL_Y 128  126
VAL_Y 128  127
VAL_Y 128  127
VAL_Y 128  128

for this curve
i have fixed the int32 params but still can't get a result from the script-fu, and i can't be making the image curvy and save it because i may change this image so it'ts not a practical way to use the script anymore.
My old script paste an image to the specified layer but i want to make it look real using the curve bend.
Also I can't find any documentation about this operation how to use it in script-fu.


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Script-Fu - by Alan - 12-19-2023, 10:24 AM
RE: Script-Fu - by programmer_ceds - 12-19-2023, 10:46 AM
RE: Script-Fu - by Alan - 12-20-2023, 07:42 AM
RE: Script-Fu - by PixLab - 12-20-2023, 08:14 AM
RE: Script-Fu - by PixLab - 12-20-2023, 06:10 PM
RE: Script-Fu - by Alan - 12-21-2023, 08:47 AM
RE: Script-Fu - by rich2005 - 12-21-2023, 08:52 AM
RE: Script-Fu - by rich2005 - 12-25-2023, 11:06 AM
RE: Script-Fu - by Alan - 12-27-2023, 09:25 AM
RE: Script-Fu - by Ofnuts - 12-27-2023, 10:12 AM
RE: Script-Fu - by rich2005 - 12-27-2023, 01:00 PM
RE: Script-Fu - by Ofnuts - 12-27-2023, 02:12 PM
RE: Script-Fu - by rich2005 - 12-27-2023, 02:30 PM
RE: Script-Fu - by Ofnuts - 12-27-2023, 04:42 PM
RE: Script-Fu - by Alan - 12-28-2023, 07:39 AM
RE: Script-Fu - by Ofnuts - 12-28-2023, 08:47 AM

Forum Jump: