Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Fu
#2
(06-07-2023, 12:03 PM)DoggoOfSpeed Wrote: Tried to create my first script to save all open files and while it works, I've encountered a strange issue.
For some reason, the function save_all() receives 4 arguments instead of the 2 requires (I added the variables x and y to accommodate that). Not only that, those variables actually contain the data from the PF_Option (in y) and PF_Dirname (in x) when I'd expect them to be in path_type and custom_path respectively. So my question is why and how do the 2 unwanted parameters appear there?
I think that the first two arguments to save_all() should be image and layer, then your dialog arguments (from PF_OPTION and PF_DIRNAME) follow.
Reply


Messages In This Thread
Python Fu - by DoggoOfSpeed - 06-07-2023, 12:03 PM
RE: Python Fu - by programmer_ceds - 06-07-2023, 04:35 PM
RE: Python Fu - by DoggoOfSpeed - 06-07-2023, 05:52 PM
RE: Python Fu - by Ofnuts - 06-07-2023, 09:52 PM

Forum Jump: