Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Define variable with PSD's Filename?
show user profile  9krausec
I know I've been trolling on here lately, but I have a serious question for ya'll.

I'm trying to place a small watermark of a text field with the PSD's file name in the text field. I'm having issues figuring out a way to do this.

I've looked at defining variables and the closest thing I could find is creating an excel spreadsheet to drive the definitions (which isn't going to work so swell). Does anyone know of a way inside of PS to batch watermark with the files name or perhaps a free 3rd party solution to do this?

As always, much appreciative of any input given here.

- Portfolio-

read 985 times
10/21/2014 3:52:58 PM (last edit: 10/21/2014 3:52:58 PM)
show user profile  reeves1984
What do you mean you've looked at defining variables?

You can write a js (jsx?) script and then run it, I made one once upon a time somewhere..

Simon Reeves - VFX Artist & Blog
twitter <-- I work here

read 974 times
10/21/2014 4:59:08 PM (last edit: 10/21/2014 4:59:08 PM)
show user profile  9krausec
I looked into it as being driven by data sets (I believe). I have not the slightest clue how to write javascript either. If it can be done in javascript I'll tinker perhaps in the future. Was looking for more of a UI solution that didn't involve coding.

Been years since I've touched Java and that's my only experience with ze code. Thanks for getting me going in the right direction though Reeves.

Edit: @Reeves-

Seriously. I had no clue you could do this sort of black magic with Photoshop. This is exactly what I need. It'll just take some doing for a rook like me. Thanks a ton man!

- Portfolio-

read 966 times
10/21/2014 5:20:46 PM (last edit: 10/21/2014 5:46:39 PM)
show user profile  reeves1984
Found it!

not sure how much of it works, but theres loads of handy code in there

yeah you can do lots of nice stuff! Much better than actions if you can do it.

I made one that saves out my psd with '_[groupname].png' at the end (depending on what group you have selected) that I use all the time for textures, groups called 'Diffuse', 'Glossiness' etc.!

Simon Reeves - VFX Artist & Blog
twitter <-- I work here

read 958 times
10/21/2014 5:50:07 PM (last edit: 10/21/2014 5:52:01 PM)
show user profile  9krausec
Thanks Reeves. I'm going to dive in and dissect your code later this afternoon. Really appreciate you sharing your work and pointing me in the right direction. Like I said, I had no clue this stuff could even be done.

Sometimes I feel a bit overwhelmed at how much stuff their is to learn out there!

Edit: Reeves- Your script is working great. Thank you again.

- Portfolio-

read 954 times
10/21/2014 6:00:50 PM (last edit: 10/21/2014 9:03:39 PM)
show user profile  reeves1984
You are welcome!

Simon Reeves - VFX Artist & Blog
twitter <-- I work here

read 923 times
10/22/2014 1:14:54 PM (last edit: 10/22/2014 1:14:54 PM)
show user profile  9krausec
Reeves! I don't know what's going on, but now when I'm firing your script all of the sudden I'm getting font that is only 2.88 large no matter what size the canvas size is.

I'm super jacked that you helped me out by giving me the script to use, but I'm not sure what's going on now, the code is completely solid. I know how to read code, may not know the exact syntax of Javascript, but I understand what is going on.

Any idea why I'd be getting this result? I wrote some comments in the code if you wanna take a peak. Perhaps I screwed up the code when dinking around? I just had to format the work computer and I might of lost the original :/

 photo code_zpse59c71b7.jpg

Thanks man. This was working right before the format.

- Portfolio-

read 788 times
11/21/2014 10:56:36 PM (last edit: 11/21/2014 10:57:47 PM)
show user profile  9krausec
So I stripped down the code to the bones and I've been reading up on JS inside of photoshop. The issue still is that the text field in which I am creating is not taking the font size I'm entering.

Everything else is working and the documentation I found online shows that the code is sound. This is messing with my mind. If anyone knows why Photoshop isn't playing nice please throw me a line.

Line 42 is where the size is being set. Line 27 is where the variable being used is set.

EDIT: So I get the proper results from Adobe CS6. It looks like Adobe CC is treating things differently. Will research more and let you guys know what's going on.

- Portfolio-

read 740 times
11/24/2014 7:20:43 PM (last edit: 11/25/2014 12:05:53 AM)
show user profile  9krausec

Found the answer. Code is apparently broken in Adobe Cloud.

- Portfolio-

read 720 times
11/25/2014 2:13:38 PM (last edit: 11/25/2014 2:13:38 PM)
show user profile  9krausec
K guys. This probably does not affect anyone here really, but figured I'd let everyone know that in the last update of PS CC 2014, Adobe fixed this bug.

The font size JS command is now working fine in CC.


- Portfolio-

read 622 times
12/19/2014 4:42:57 PM (last edit: 12/19/2014 4:42:57 PM)
#Maxforums IRC
Open chat window