
MFreemanRKS
Community Beginner
MFreemanRKS
Community Beginner
Activity
‎Aug 28, 2018
01:22 PM
Thank you both for taking a look at this. I have not had a chance to play with either solution just yet, probably wont be able to get to it until later this week. However I was using the selection as the templates use some things for screen printing that are CMYK registration colors. I have the script lock those layers and then select the layers it needs. Do you think that your method using "sel mydoc.pathitems" will see and grab things that are hiding in the locked layers? Merci!
... View more
‎Aug 23, 2018
01:14 PM
I have a script that needs to perform a variety of functions, and one part I am stuck on is getting the script to delete anything that's not black. Everything else in the script seems to be doing what it needs to but heres the part that keeps getting messed up: var myDoc=app.activeDocument; app.executeMenuCommand ('selectall'); var sel = myDoc.Selection for (var i = 0; i < sel.length; i++) { var item = sel.pathItems; if (item.fillColor.black = 100) {} else {app.executeMenuCommand('clear');} } so im wanting it to cycle through each path in the selection, identify if its fill is black and delete it if its not. Any Thoughts? Thanks!
... View more
‎Jan 02, 2018
06:01 AM
The script from there is actually really close to what I need. The only thing that I am having problems with is this script deletes the notes that are already in the file. Where in that script are you adding the information "# and working" into the note? Thank You!
... View more
‎Jan 02, 2018
05:46 AM
sorry about radio silence, been on vacation from work. I am looking into all of your responses. Thank you so much for all of your help thus far, I'm sure something in here will do what I need!
... View more
‎Dec 20, 2017
11:44 AM
creating a note in the photoshop file using the note tool would be ideal. Current work around I have going is just making a new text layer with the information I need and hiding it at the bottom of the file.
... View more
‎Dec 20, 2017
10:54 AM
I am working on a script that needs to be run on every file I work with. I have an action that does what I need it to, however I would like a way to document in the photoshop file that the action has been run. Since the action might need to be done multiple times per file, it would be ideal if the note would store some information so for future reference I can see what folders the action has been run on and how many times the action has been run. The action works just fine, I know how to make the action call up the script I need. I can create all the variables I need to fill the note with the information I want. I just cant find the script for creating a note/annotation and filling the note with the desired text. Is this even possible?
... View more
‎Oct 16, 2017
08:11 AM
1 Upvote
I have two demo files. In both demo files it does delete everything that is not black, however it is not applying the swatch color that it creates. Since I was getting this to work in my 2nd example listed in the problem I compared what you were doing to make things fill and what I was doing. I combined lines 99 and 100 to make this line: paths.fillColor = doc.swatches["Fill"].color; seems to be working fine from there. THANK YOU SO MUCH! I have been trying to figure this out for multiple days.
... View more
‎Oct 12, 2017
09:10 AM
I am working with a variety of files, all of which have various shapes and paths on them. I am trying to make a script that can look at everything in the selected layer, take anything that's black (working in cmyk, so k value of 100) and make it a swatch color named "Fill", if its not black then delete it. Part of what I am doing is bringing old files into a new template file so the template will always have this swatch. I haven't gotten to the deleting part, and the little tweaks and whatnots ive tried to the script below either brings up an error "undefined is not an object" or the script will do nothing or turn everything to "fill" including things that are not black or don't even have a fill color. Any ideas? This version of the script does not seem to do anything but I feel is closer to what I need, I'm just missing something. var doc = app.activeDocument; var layer = app.activeDocument.activeLayer; for(var i=0; i<layer.pathItems.length; i++){ var item = doc.pathItems; var blk = new CMYKColor ("0,0,0,100") if (item.fillColor = blk) { item.fillColor = doc.swatches["Fill"].color; }; }; This version just makes everything "fill" but I assume that's because I'm using "page item" instead of "path item" var doc = app.activeDocument; var item = doc.pageItems; for(var i=0; i<item.length; i++){ if (item.black=100) { item.fillColor = doc.swatches["Fill"].color; }; }; Thanks! (I'm pretty new to all this script stuff, so any help on the delete things that aren't black part would be amazing too! )
... View more