Article View: adobe.photoshop.scripting
Article #1909Re: Changing selection into pattern (PS7/VB)
From: Mick_Murphy
Date: Mon, 05 Jul 2004 20:15
Date: Mon, 05 Jul 2004 20:15
21 lines
1379 bytes
1379 bytes
Hi syrtti
I think you are nearly there. You've definitely got the right idea. I think you have gone wrong in that you need to pass a string variable which contains the name of the pattern or use a string literal with the name of the pattern. You are passing an integer, not a string and the way you have set up your function is wrong. You have pttrn as an argument but you have passed it as a literal (leave out the quotes).
So your function should be something like:
Sub PatternFill(strPatternName)
all the stuff
Call desc99.PutString(id448, strPatternName)
rest of the stuff
End sub
Call PatternFill("Molecular")
'"Molecular" is the name of a pattern.
I think this should work.
Technical Details
Message-ID:
<3bb4e719.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4e719.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,ed85e94e6ec00a8c X-Google-Attributes: gidf5839,public X-Google-Language: ENGLISH,ASCII-7-bit From: Mick_Murphy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.photoshop.scripting Subject: Re: Changing selection into pattern (PS7/VB) Message-ID: <3bb4e719.2@webx.la2eafNXanI> Date: Mon, 5 Jul 2004 13:15:16 -0700 References: <3bb4e719.-1@webx.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit