RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photoshop Scripting Learning and sharing for all platforms

Very frustrated - SolidColor() property

Reply
 
Thread Tools
  #1  
Old 06-09-2009, 07:30 PM
sekatsim sekatsim is offline
Junior Member
 
Join Date: Jun 2009
Posts: 2
Angry Very frustrated - SolidColor() property

I'm very frustrated with PSCS4 scripting. This is my first attempt at scripting, and when I try and run

var solidColorRef = new solidColor()
solidColorRef.cmyk.cyan = 20
solidColorRef.cmyk.magenta = 90
solidColorRef.cmyk.yellow = 50
solidColorRef.cmyk.black = 50
foregroundColor = solidColorRef

(straight out of the adobe developer PDF for JS scripting for my version of photoshop)

I get "solidColor does not have a constructor" as an error message.

Any other scripts I copy out of the same PDF run fine-- but anything I use involving solidColor returns the same error message.

Can anyone help me with this problem?
Reply With Quote top
  #2  
Old 06-09-2009, 10:15 PM
DannyRaphael's Avatar
DannyRaphael DannyRaphael is offline
Moderator
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,300
Re: Very frustrated - SolidColor() property

I don't know much about scripting, but here are two very good resources where you can also ask (it never hurts to fish in multiple places):
· Adobe.com forums (there’s one specifically for PS Scripting)
· http://www.ps-scripts.com

I hope this helps...
Reply With Quote top
  #3  
Old 06-10-2009, 05:40 AM
sekatsim sekatsim is offline
Junior Member
 
Join Date: Jun 2009
Posts: 2
Re: Very frustrated - SolidColor() property

Danny,

I did actually fish in multiple places, and managed to get a reply from ps-scripts. In case anyone else is googling the same problem: "var solidColorRef = new solidColor()" should read "var solidColorRef = new SolidColor()" (note the capitalization).

This was a typo in the manual, on adobe's part. Hopefully someone will correct it for the next revision.

Thanks for your help.
Reply With Quote top
  #4  
Old 04-13-2010, 05:28 PM
marcel_911's Avatar
marcel_911 marcel_911 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Re: Very frustrated - SolidColor() property

Quote:
Originally Posted by sekatsim View Post
This was a typo in the manual, on adobe's part.
Thanks for that. I searched for the error and this thread was the first reference I found.
Reply With Quote top
Reply

  RetouchPRO > Tools > Software > Photoshop Scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New. Help. Please. Frustrated aswag74 Image Help 4 05-05-2007 01:59 AM
Frustrated...finding work 1STLITE Work/Jobs 7 01-14-2007 11:50 AM
Frustrated: Can't view filter windows in CS2 cindyinnc Photoshop Help 4 12-19-2006 02:17 AM
frustrated with new business jenjen Work/Jobs 10 12-31-2005 11:16 AM
I am SO frustrated.. please any advice? 1STLITE Image Help 10 05-19-2004 02:44 PM


All times are GMT -6. The time now is 04:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved