I'm trying to get a script to use a fill foreground I've selected. I can get it ask me to select the foreground color but it always saves the foreground color used when I save the script. I can't figure out how to get it to use the current foreground color.
I'd appreciate any assistance on this.
Help with a fill script to use current foreground color
Moderator: Kathy_9
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- 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: Help with a fill script to use current foreground color
Two ways, both require you to actually edit the script.
1) You can simply remove the "Material" parameter from the "Fill" command. Doing so will force it to use the current foreground color.
2) You can use the "GetMaterial" command to return a color object. Then use the values in that color object to set the "Material" parameter of the "Fill" command.
You know, which ever seems easiest to you.
1) You can simply remove the "Material" parameter from the "Fill" command. Doing so will force it to use the current foreground color.
2) You can use the "GetMaterial" command to return a color object. Then use the values in that color object to set the "Material" parameter of the "Fill" command.
You know, which ever seems easiest to you.
https://levifiction.wordpress.com/
-
df
- Posts: 1224
- Joined: Mon Feb 08, 2010 11:21 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: GIGABYTE Z690 AERO G DDR4
- processor: 13th Gen Intel Core i7-13700K
- ram: 64gb
- Video Card: RTX 3060 Ti 8gb GDRR6
- Hard_Drive_Capacity: 1 Tb
- Location: Washington State
- Contact:
Re: Help with a fill script to use current foreground color
How did you record the script? If you pressed record, did your steps, then save, you needed to uncheck Save Materials (or whatever it's called) in the dialog box that you name it in. If you don't want to resave another script you can select it in the Scripts Toolbar, then select Text Editor and find the section that LeviFiction stated and use his commands.
Regards, Dan
"Smoke me a kipper, I'll be back for breakfast."
"Smoke me a kipper, I'll be back for breakfast."
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- 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: Help with a fill script to use current foreground color
You know I forgot about that. It's broken for me in PSPX3 and X4 so I never use it anymore.
https://levifiction.wordpress.com/
