Pausing script to set layer opacity??

Moderator: Kathy_9

Post Reply
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Pausing script to set layer opacity??

Post by JoeB »

There is a thread about creating a sketch of a portrait here:

http://forum.corel.com/EN/viewtopic.php?f=56&t=60048

It's easy enough to record a script to do this and get a result close to what the OP was trying to achieve. However, people making a sketch might have different ideas about the best setting for various layer opacities to achieve their particular needs. Would the only way to be able to stop the script after pasting a layer (so as to be able to change the layer opacity before moving to the next step) be to use Gary Barton's Pause script? Or is there another command that would work?
Regards,

JoeB
Using PSP 2019 64bit
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Pausing script to set layer opacity??

Post by LeviFiction »

There is no pausing option in scripts.

Gary's pause script takes a very convoluted route to save your position and come back to that position in the script the next time you run it. If you want the user to be able to play non-stop Gary's pause script is the best option.

Another, less attractive option, is to build your own UI with TkInter and let the users adjust the values in the dialog, on every value update you change the opacity of the layer in script. This way the script never actually stops but the user can still change the opacity.

Personally I think Gary's pause script is easier.
https://levifiction.wordpress.com/
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Pausing script to set layer opacity??

Post by JoeB »

LeviFiction wrote:There is no pausing option in scripts.

Gary's pause script takes a very convoluted route to save your position and come back to that position in the script the next time you run it. If you want the user to be able to play non-stop Gary's pause script is the best option.

Another, less attractive option, is to build your own UI with TkInter and let the users adjust the values in the dialog, on every value update you change the opacity of the layer in script. This way the script never actually stops but the user can still change the opacity.

Personally I think Gary's pause script is easier.
Gary's Pause script is definitely easier for me! :-) I'm just doing this one as a diverting exercise given I made the suggestion in the original thread that a script would be more efficient for someone who might want to do this type of thing fairly often. For fun I have run the script (using the same settings, of course, I used to create the duplicate of the OP's attempt) on a couple of different types of color images with interesting results. Being able to change the opacity where requested could optimize those results.
Regards,

JoeB
Using PSP 2019 64bit
Post Reply