Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help to declare a variable or a function in scheme
#3
Thanks @pixelmixer, but no, that was not the problem Wink

I found out why it was not working, and also I found out that I i comparison with a hard number was also wrong

First I did not declare isInteractive in the top list of variable declaration, because I over looked this part where there is (let* (yeah I know... I should have paid attention)
Then it was working backward, because of i comparing with 1 or 2, because I did not see i that i was the list of opened image misused by 1 on each loop, as I thought it was and ordered count number starting by 0 or 1, then I understood that I needed to save the original first count of the images somewhere for comparison, thus I created j which keep the full original number of the images in the list and the everything went according to the plan  Big Grin

and tada... YEaaaa, all tested and working super nicely (it looks so simple now, but what a struggle  Big Grin Big Grin  Big Grin )

   

EDIT:
What a disappointment this script language...
it runs RUN-WITH-LAST-VALS not the way as I expected,
it seems to take in count the last values you did exported using File > Export... or the original quality of the JPG, I said "or", because it seems to be inconsistent. (need more tests to find out where come those values)

In all case it does not take in count the last value of RUN-INTERACTIVE the first time the script is launched, NOR the hard coded values I did input in the script

Also, if you add some more opened images after running the script, the next time you re-run the script, all added images AFTER the script first run will run in INTERACTIVE > you do need to refresh the script for the added images to not run interactive...

I feel I did all that for nothing, I' thinking I'd just keep my first version with setting in the code itself, this version is consistent and does follow the settings coded
Patrice
Reply


Messages In This Thread
RE: I need help to declare a variable or a function in scheme - by PixLab - 12-08-2023, 03:51 AM

Forum Jump: