Forum Replies Created
-
AuthorPosts
-
Finally got the 1st days layout done. I did something wrong on the 1st small mask, so I just went back and redid the steps and didn’t worry about deleting anything, so I have extra layers. I wasn’t able to select the original text and change it, so I just deleted those layers and added new ones.
Woodland Park, CO, USA West of Colorado Springs
It is fun to scroll through these posts and see where everyone is from.
Thanks, Carole
Hi Everyone – I have just finished reading (and taking notes) Lesson 21. Now I am going back to play with the new scripts from Lesson 19. I found that I do not have some of the scripts that were included in the Lesson. I have gone back and checked my Zip file, but they are not there. I am missing:
Explore Constants
Simple Caption – Is this the same, basically as Add Caption_08 from Suz? and
Center Layer – if you have them could you please send me a copy or link or let me know where to find them?
I also do not find Resource Manager or Scripting For Script Authors
Thank You
Carole – o.k. I finally got it! I thought the star in the middle was the selection, but it is an empty hole in the selection. Thank you, sometimes I can be really dumb.
The tube is mentioned in Lesson 18. When Suz is describing the GetRasterSelectionRect information from the API she shows a Bounding Box with an Ellipse then she says to add different shapes and look at the returned dictionary for each. #’s 5 and 6 say to place a tube in the image. Then in Challenge 3 she says to open a tube image and follow certain steps within the script.
I cannot locate the Lesson 18 video in my emails, would you please send it to me? Thank you. I did receive Lessons 19 – 22. I guess I am a little behind.
- This reply was modified 2 years, 11 months ago by Cyndi Roether.
I finally got back to the Suggested Practice for Lesson 18 – At the moment I do not understand why the star in image Lesson18-Exercise 2 does not fill when Test 21 is run or when I try to do the fill myself. I will watch the video Lesson 18 and see if that explains things. It is the result I expected after reading the instructions just because that is what I would expect Suz to do, but then when I actually placed the guides, they are in the middle of the star, so I do not understand and need to do some research to figure it out.
Carole – yes, your explanation about the size of the border/frame makes sense. When I was reading through it, it also occurred to me that I could also just say ‘print NewSize’ or ‘print “The New Size of the border/frame is ” , NewSize
One more question – What is a tube image? I cannot find anything in the PSP User Manual about it.
- This reply was modified 2 years, 11 months ago by Cyndi Roether. Reason: Lesson 18 Suggested Practice 3
Finished Lesson 17 including the challenges. My biggest problem was remembering that in a comparison statement you use a double equal sign (==) while in an assignment statement you use a single equal sign (=). On to Lesson 18 next and looking back to Lesson 16 for your Challenge.
Question – In Lesson 17 Challenge 2 one of the variations was to make the frame/border 10% of the shortest side. No problem I used NewSize * 0.1. I tried to treat ‘AddBorders’ like a dictionary to check the frame/border size, but it didn’t work. Is there a way to verify the frame/border size?
I definitely could have, thank you. I know I hit something on the keyboard right before Notepad++ started acting weird.
Lesson 15 – I got all of the practices done that Suz had for us. I had a few errors when entering the code for each one, but they were fairly easy to correct. My SOPs for each are shown along with the errors for Challenge 2.
Toward the end of Challenge 2 my Notepad++ started acting strange. When I tried to edit things it replaced or typed over what was already there. I looked through all of the settings, but couldn’t find any to change. I ended up opening a new file and typing my edits, including spaces, there and then using copy and paste to get them into the script. Does anyone know why?
Yes, Carole, it does. I don’t know why it works that way, but as long as I know it does that is fine.
Helen, You are doing fine. I have seen several of your posts. Thank you for your comments. Just take your time and ask anytime you have questions. Carole is always here to help, and the rest of us will help anytime we can. We can all do this together.
Carole – I will try this to see if it works, but, can I draw a shape using either selection or preset and then use the pen to add a line dividing the shape into separate sections for the fills?
For Lesson 14 Challenge 1 in Suz script she did not select the document before copying it. Is selecting the document not necessary if you only have one image open and it only has one layer? or is it just a good idea to always select what you want to copy? In my script I duplicated the layer the image was on and then resized it before pasting it as a new layer . I guess that is what Suz meant when she said you have to select all in the new document before you Paste Into Selection.
- This reply was modified 3 years, 1 month ago by Cyndi Roether.
Lesson 14 – I finally got all of the practice done. The first one took the longest to do and I had to ‘cheat’ by looking at Suz answer Script. I do not remember learning in any of the lessons assigning a variable that isn’t part of a dictionary. It seems to me that her stating Border = 25 came out of nowhere, but it works. It also took awhile to get the Contract amount to sync with the border. After I showed Challenge 3 to my husband he said can you do this and can you do this and I went into the script and changed it to pull the fill and shadow from the Materials Palette instead of them being saved in the script. It was really nice to be able to figure out what he wanted and make the script do it.
Carole – How would you frame an image if you wanted the texture or pattern to be different on different sides? Such as a wood frame with horizontal grain top and bottom and vertical grain on the sides and 45 degree corners? Only thing I can think of is to draw the pieces, fill them individually and then join them; then guess you would be able to save it as a frame and resize to the dimensions you wanted.
Lesson 12 Challenge 2 – In order to cover all of the bases I ended up with if-else statements inside if-else statements. But it worked. I told the user they needed an open image and asked them to click OK if they did (1st if-else). Then if the answer was OK I got and printed the Width then got and printed the Height and Then if Height > Width print the Landscape message, if Width < Height print the Portrait message, else print This Image is a Square, therefore either Landscape or Portrait. Else print The User Pressed Cancel.
Lesson 11 – I really didn’t have much trouble with these, the SOPs are below. Technically I have the challenge finished but I do not have the steps recorded yet for Choice 1 and 2. I need to play with those before adding their steps to the script. I played with the spacing on the Msg Box and for the SOP print until I got it to look nice. I am going to spend the weekend playing with the image itself for the challenge (that is where I need a lot more work) and going back to add notes to my Lesson files. I really like this scripting and the lessons to learn it. It is getting to be fun!
Lesson10-Challenge – This is really fun when it works!
Carole, I enjoy watching your videos of these lessons. It is good to hear the information as well as read it and it reinforces, or corrects, what I read. I also make notes and take screenshots while going through both the written and video lessons. Then I type my notes into a word document and paste in the screenshots, the SOP’s and my jpg’s so I can go back and review everything.
Lesson10-2 I got the coding correct as far as the text and font choice went but could not get the correct gradient. I had used what I learned prior about the Get Material command where I was putting the pattern information under Pattern instead of under Material. It didn’t work this time so I went back and recorded again a short script using a gradient and then copied ALL of the Gradient information into the material section and it works fine. How do we know whether to use the Tupperware Container or the Recipe?
Lesson 10 — I didn’t have any problems with this except what I get when I run the script doesn’t match what I record. I had this same problem when we first recorded text but didn’t get around to asking about it.
I recorded the text for this lesson using Arial at 48 pixels. The script stores it as 11.5 points. I don’t see where to change points to pixels so I just changed the points to 60. I am pretty sure this isn’t the correct way to do it.
The images below show what I recorded vs what the script gave me along with a portion of the script and my Text settings.
Do I have some settings somewhere goofed up? I have reinstalled PSP twice since we started started this study group.
Carole – I went on to Lesson10 and in the review I compared my script to the one Suz wrote. In the Fill Material I had a full dictionary entry for Pattern with Name (FillPat), Image, Angle, and Scale . Suz script just had ‘Material’ : Material1. So I shortened mine and used FillPat as my ‘Material’ and it works fine. I thought we were supposed to put the Pattern Information (the variable we set up) under Pattern. Now I need to go back and see if I did that in other scripts.
Does this make sense?
Lesson09 1 and 2 didn’t include any images, just msgbox and SOP so I used Lesson08 which asked for border information and added the Msg Box and Echoed it to the SOP. Here is the Lesson09-2 result.
Lesson09C — I got this to run correctly but it doesn’t show that way. I kept running the script and getting the wrong fill. I finally added a print line to retrieve the variable chosen by the user for the fill so I could see what it was doing. The name of the fill in the SOP is correct but the fill actually used is not. PSP is pulling the first pattern in the list under ‘corel paintshop pro \ 2020 \ patterns and using that for the fill. You can see the pattern and shadow selected in the material palette.
What is the ‘Text/TextEx command’ that Suz refers to?
I understand many things about the Text Command but cannot find any references to Text Ex
Lesson08 Challenge 1
I planned out my script step by step using the instructions and examples from previous lessons. 1st run the fill was a success but the borders were all the same color pulled from the last value. I had one of the ‘Is Primary’:False and I had my colors as Border1 not Border1[‘Color’].
Lesson08 Challenge 1
I planned out my script step by step using the instructions and examples from previous lessons. 1st run the fill was a success but the borders were all the same color pulled from the last value. I had one of the ‘Is Primary’:False and I had my colors as Border1 not Border1[‘Color’].
- This reply was modified 3 years, 2 months ago by Cyndi Roether.
- This reply was modified 3 years, 2 months ago by Cassel.
Hi Carole –
Still Here and doing well, I think. I am not having any problems understanding the information or doing the Lessons. I am about half way through Lesson 08 then on to Lesson 09 probably tomorrow. I am interested in finishing the course, especially if we have continued access for a while after for review. I have a feeling it keeps getting more complicated/intricate. I enjoy the stimulation and solving the puzzles.
Cyndi
Carole – Lesson07-1
When I went through the script step by step it executed the first fill then gave the error message
I deleted the version line and the error message moved to line 123
I ### commented out all of the Select None command lines and it runs fine
Does that mean there is an error in that command group? or is PSP just being a pain?
Lesson 07
I have not seen the video yet I am just going through the original text lesson. I supposedly have an error in my script on line 124 but I cannot find it. I have tried backing out the spaces and replacing them, copying the line from earlier in the script and from another script and deleting the line and re-entering it. I just cannot see my error. Help, please and thank you.
Carole – It runs the script and then freezes. I am running PSP2020. The 2nd screen shot below shows I have a paper open and minimized then set as the pattern. The script ran but didn’t get to where it is supposed to print the Materials Information and PSP froze. The 1st screen shot shows I selected a random saved pattern and the script ran.
Cristina – I have the same problem with the Lesson 06 Challenge; no matter what image I try to use (even a simple plain paper jpg) my program shuts down and sometimes I need to restart the computer to get it to run again. Everything else in the script runs fine.
In doing the review of Lesson 06 at the beginning of Lesson 07 I got curious
We had printed the Foreground Material Keys; Then we found out that sometimes the answers were themselves dictionary keys (such as the Angle of a Gradient); So I was wondering could I print the keys for a dictionaries sub dictionary; so I tried
print “The Foreground Pattern Keys are ” , FG_Mat [‘Pattern’].keys(),
and it worked! The SOP is below
On Lesson06 Challenge 1 I have a strange problem No matter what saved image I open and set as the pattern I get the message “an undefined error has occurred %u”
and PSP freezes and needs to be restarted or will not restart and I need to reboot my computer
Everything else runs fine I can use an already saved pattern, gradient or color
Cyndi
-
AuthorPosts