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

Multiple fonts in text layer

Reply
 
Thread Tools
  #11  
Old 08-17-2005, 11:22 AM
MagiCat MagiCat is offline
Junior Member
 
Join Date: Feb 2005
Posts: 5
Kindof glad this board exists and I posted my code on it. Had to redo the project using a different color and I had reinstalled everything, losing the existing code, having the code here was a lifesaver.

Still wondering if anyone has figured out how to do what I was trying to do, but since it's only 4 items that have superscript, it was really easy to manually do them.
Reply With Quote top
  #12  
Old 09-08-2005, 09:21 AM
xbytor xbytor is offline
Member
 
Join Date: Aug 2004
Posts: 35
The ActionDescriptor route is still probably the best way to do this, though little bit different that Ro suggested.

You would have to:
1) Do a executeActionGet on the Document and traverse down to find the TextItem Layer that is currently active.
2) Modify the ActionDescriptor object so that it looks like what you want. Looking at ScriptListener code should give you a few clues.
3) Write up the ScriptListener code that does a text modification. Instead of futzing with that 74K beast, just pass in in the ActionDescriptor that you just modified.

This still isn't simple and easy, but doing it like this makes it tractable. The only thing that would throw a wrench in the works is if executeActionGet did not return information complete enough about the TextItem for you to use in an executeAction call to modify/replace the TextItem.

I'll try and take a crack at this over the the next week or two, time permitting.

ciao,
-X
Reply With Quote top
  #13  
Old 12-15-2005, 07:17 PM
xbytor xbytor is offline
Member
 
Join Date: Aug 2004
Posts: 35
TextRange.jsx

I've posted a beta of a script that can handle multiple fonts, colors, and sizes.
You can find it here. I'll post a notice when it's 'finished'.

ciao,
-X
Reply With Quote top
  #14  
Old 02-10-2006, 12:22 PM
xbytor xbytor is offline
Member
 
Join Date: Aug 2004
Posts: 35
Update to TextRange.jsx

Here's the current version of the newly named Text.jsx.

Use in peace.

-X
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
Tutorial 05: Converting a Color Image to Black and White grayscale BW DannyRaphael Photo-Art 101 17 05-22-2011 05:55 PM
help with german Photoshop commands please pure Photoshop Help 9 06-21-2010 03:33 PM
Layer Tutorials..again? zip022 RP Tutorials 21 11-18-2004 11:10 PM
select shape Peg Hidden Power Support 7 08-29-2004 07:10 PM
Help needed understanding these layers. peejay Photo-Based Art 3 01-16-2004 09:15 PM


All times are GMT -6. The time now is 04:30 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