Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

including rather complex path objects in javascript

Community Expert ,
Jan 28, 2009 Jan 28, 2009
When passing data-CDs or -DVDs on to customers I like to provide a cover containing a screenshot of the content in list-form (so that the change-dates can be verified) with background, logo, date and some graphic elements added.
Which works fine as an Action (with some small Scripts recorded in).
But what with Configurators capability to include Scripts I would like to move the whole thing into JavaScript so as to be able to pass a Configurator-Panel on to colleagues without them having to install separate Actions as well.
Therefore Im looking for a way to include the generation of a relatively complex path (several hundred points, multiple subPathItems) for an illustrative logo-element in the Script.
I may be trying to use the less fitting mechanism in looking for a way to do with a Script what an Action can achieve so effortlessly with »Insert Path«, but could any of You tell me a way to get all the necessary info from an existing path into Script-form?
Or would You advise me to simply desist from the intention for Script-length-reasons/other considerations?
TOPICS
Actions and scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 28, 2009 Jan 28, 2009
You could just convert your actions to scripts...

http://ps-scripts.cvs.sourceforge.net/viewvc/*checkout*/ps-scripts/xtools/apps/ActionFileToJavascript.jsx
http://ps-scripts.cvs.sourceforge.net/viewvc/*checkout*/ps-scripts/xtools/apps/ActionToJavascript.jsx


Let me know if you run into any problems with the scripts.

-X
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2009 Jan 28, 2009
Thanks for the quick reply!
I will try that.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2009 Jan 28, 2009
Ive tried it with ActionFileToJavascript.jsx, but so far I havent gotten far.
»Error 25: Expected: (.« I can avoid by removing »1« between »function« and »() {« in line 8, but »Error 2: _main is undefined« has me baffled (Refers to the line »_main.loadSymbols = function () {»). That seems to happen on invoking in Photoshop.
But trying from ESTK I get »Cannot execute Script. (Target Photoshop CS4 provides no engine for debugging.)«.
Could You tell me how I can avoid that?

Im working on Photoshop 11.0 on May OS X 10.4.11 by the way.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2009 Jan 28, 2009
Ups  Â»1« was the name of my Action which as the name for the function seems to be inaproproate as its mistaken for a number.
»_main is undefined« on the other hand still eludes me, but I can run the Script from ESTK.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2009 Jan 28, 2009
Sorry, Ive redone it with »ActionToJavascript.jsx« and the resulting jsx works fine.
Thanks, xbytor!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 28, 2009 Jan 28, 2009
> Sorry, Ive redone it with »ActionToJavascript.jsx« and the resulting jsx works fine.

Good to hear.

-X
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 29, 2009 Jan 29, 2009
LATEST
Compliments on a great and greatly useful script!

Thanks,
pfaffenbichler
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines