schroef
Advisor
schroef
Advisor
Activity
‎Feb 15, 2024
05:09 AM
@Sergey Osokin Ow yeah I remove that restore section. But otherwise, it's way easier to work with vs those old files like we see in photoshop. Where each prop always has the parent prop etc etc before it. It makes referencing a bit more complicated
... View more
‎Feb 14, 2024
04:07 PM
1 Upvote
Yeah found that. Pretty cool tool by the way. Very impressive since I read you started development in 2020. I guess by that you meant learn to code right? Ps do you know of the website by Jonas to create dialog layouts for scriptui. It's super handy for creating precise and much shorter code for dialogs Checkout out: scriptui.joonas.me
... View more
‎Feb 14, 2024
11:16 AM
Thanks for confirming this, I had an issue with a script I made a dialof for. One user also had this issue, after lots of messages back and forth. I believe we came to the same issue.
... View more
‎Feb 14, 2024
10:45 AM
Is that perhaps why your palette does not "show all menu commands" as in one of your videos. If i search for it, it doesnt appear. If i go into the preferences, the initial menu item which shows, it doesnt show neither
... View more
‎Feb 14, 2024
09:10 AM
Probably due to wrong plugin version, i guess you're using an old plugin version for a newer version of AI. Im writing this for feature users running into the same issue
... View more
‎Feb 13, 2024
10:18 AM
Nice, i jsut noticed that some columns are hidden For instance the English column
... View more
‎Feb 08, 2024
04:46 AM
@DNVCJ88 Do you get an error when you use that folder with jog files or something? Ps are they jpg or jpeg, I'm not 100% sure this script will read the last. Should be updated if not
... View more
‎Feb 01, 2024
05:25 PM
You could try to add the part of the builitinside that smart object. That way it would keep the effect
... View more
‎Feb 01, 2024
09:15 AM
1 Upvote
@Kevin Stohlmeyer Title says MAC, why link a Windows version?
... View more
‎Jan 23, 2024
12:01 PM
Thats pretty clever storing the PDF as a AI while its actually a PDF with ai editablity
... View more
‎Jan 19, 2024
06:34 AM
@femkeblanco This works like a charm! I keep hold of this code. For now i moved away from this idea. Since my solution know doesnt need to look at what artboard it is per set. Thanks for the help and the code you shared, much appreciated!!! I made a test with 18 artboards and 3 sets. I correctly return 3 sets; "0-5", "6-11", "12-17"
... View more
‎Jan 18, 2024
05:49 PM
@AnkMaan So a free certificate will be approved by adobe exchange. That's kinda weird, I mean why would other pay for a certificate then. I'm just curious why this free one would work
... View more
‎Jan 17, 2024
04:24 PM
Intried my best to explain, that's why I added an image and a video. Indeed l is an array as well and n represents the number of artboards. Var l is added as a prefix to each artboard. So each can have number of artboards, mostly they should be the same amount per set. Though the number of o can change, it can b1 to t can be 2,3 or 4. Currently I made a decision to bypass this. I now simply add the info imprint again no matter what. The imprint updates when I adjust the margins per artboard. The issue was that it would not get the Pröpper set depending on which logotype was used, which is var l. Does that make sense? Edit Well I flipped the n and l, so lnis total of artboards and n are the logotypes. This is a variable array with min 1 and max 4 items.
... View more
‎Jan 17, 2024
12:40 PM
1 Upvote
No worries! Nice videos by the way
... View more
‎Jan 17, 2024
08:17 AM
1 Upvote
Hi all, im trying to get artboards number ranges depending on length of a dynamic set length. Im using different logo types (max 4 in length) to get all the artboard numbers of that set. Each set starts with the logo type as name and has more data in the artboardname. for example i use 3 logo types; logo, logotype, logomark. Each set has 6 artboards with a total of 8. I can of course make 4 different function according to the logotype and then make the ranges. But is it possible to do this all dynamic in a short function? So in this example the artboards are like this example of 3 logotypes with a total of 18 artboards Ive found a piece of code on stackexchange to divide that into 3 ranges. Which is like this, changed it to work in illustrator var logtypesLen = logotypes.length;
// https://math.stackexchange.com/questions/385514/algorithm-to-separate-an-array-of-numbers-into-low-medium-and-high-ranges
// list.sort();
// part1 = list[0 : n/3];
// part2 = list[n/3 : 2*n/3];
// part3 = list[2*n/3 : n];
var abs = docRef.artboards;
var n = abs.length;
// var part1 = abs[0] +" "+abs[n/3-1];
// var part2 = abs[n/3] +" "+abs[2*n/3-1];
// var part3 = abs[2*n/3] +" "+abs[n-1];
var part1 = (0) +" "+(n/3-1);
var part2 = (n/3)+" "+(2*n/3-1);
var part3 = (2*n/3) +" "+(n-1); I could make this so it would work in logo types set of 4, but i feel that uses more code than needed. Since i also need to have function for a set of 1 and a set of 2. Here is example of how it now works. I made this logo packer CEP panel. When i change the margins and have logotypes set to all, all work nice. The small logo info imprint gets placed neatly around all artboards. But when i use a single artboard, it gets misplaced. This is because im not getting the proper range of artboards. Ps dont mind the alerts, this is to check my example code i pasted The imprint basically says per row logotype and then per each row has either; full color, inverted, black, white & possible extra colors. This info is placed as the small imprint in fuchia. If i can get the correct artboard range. Than when i edit a single artboard, i only need address that row of imprint data. I was also thinking of just updating everything no matter what. Perhaps that is a better choice without making it to complicated. Im trying to explain my need as best as possible. Hope you understand
... View more
‎Jan 17, 2024
07:29 AM
I was trying to understand the code. Am i correct that say we use TOPLEFT for sort. It than records the abrect, remove the artboard and adds a new one at the bottom of the list so the order is correct again
... View more
‎Jan 17, 2024
07:10 AM
Wow this script is written so compact, i can learn from this. Passing function as a parameter is so nice. Always forget thats possible
... View more
‎Jan 13, 2024
12:33 PM
1 Upvote
Do so if you like. Be sure to show them where to get it! Ps post the video here if you can. Link it in a comment if possible or add a link to the post. Like to see it
... View more
‎Jan 12, 2024
05:19 PM
yeah i believe UXP can do panels or dialog as well. Im also holding off, though photoshop seems to be converting to them rather to fast. I feel its hardly polished though. I also find the language more complex. It pretty hardcore coding. Well the image processor scripts are not that many. Though they use a different method in the dialog part. the way props are defined with Joonas ScriptUI website is much more intuitive and way faster to edit
... View more
‎Jan 12, 2024
01:14 PM
@Paul Riggott I was wondering what the use is for that graphic. I see var d declared. But it doesnt have a size, nor is it applied to anything. Was this something to give the progressbar a background. The photoshop progressbar in ScriptUI seems to be missing a background, illustrator does have one. Edit my mistake, wasnt paying attention. You apply it to the background of the palette. I noticed doesnt work anymore. Only when i change that to a dialog. But this got me an idea how to give the progressbar a dark background so user see how long the bar will be See the result sorry mp4 wasnt possible
... View more
‎Jan 12, 2024
06:35 AM
@Stephen Marsh i understand, i know what the hustle. For some scripts it can explode and take days to get it working properly. Im busy on such a case. PS ive added your code into that script, of course added you as author. Its a script to batch replace a smartObject which also has layereffects and hasperspective transform on it. Being abble to export in more file-formats and being able to store every thing with ObjectToDescriptor is a big hustle. But im almost there and learned some stuff along the way For instance, getting the listbox to worktook long. But than getting it to work but also store these setting took a couple days actually. The issue was ObjectToDescriptor doesnt work on arrays so i converted it to a string. Than when i reload the script. The String is converted back to an Array. But then i had issues with the filepath's not being an Object but a String.. Took me while to figure that one out. But also getting the UI to work. For instance i had to make your code work with the UI, so a user can actually change those settings if needed. That now works. I think im gonna update all Adobe scripts which can export in different file formats and add webp every where. Like layercomps to files, export layers to files UI design for the script ReplaceSmartObject
... View more
‎Jan 11, 2024
04:44 PM
That's possible but would need quite some overhaul. At least, if you want to see the files you select. Otherwise it's not that hard to implement. @Stephen Marsh could add a drop-down menu with option for files or folder, either one would use its own method. It's the same method layerstack script uses which comes with photoshop
... View more
‎Jan 08, 2024
08:46 AM
Does anyone know why the files list is not changed after using splice(). Ive tried to catch the file type using typeOff, so im sure im using the correct method. After the splice(), the files list doesnt seem to be changed. Edit i guess the issue for me was, initially i had copy/paste the function from CreateStackImages.jsx where it declared i as a variable. But this was used throught out the script a couple times more. I now gave it a unique name and this seems to help. Though i wonder why that is. Because i is declared inside other function, its not a global var name. But if i used i, it would return the wrong file name. Ive now updated it with different var name and it seems to be working correct now function removeOnClick(){
var file, s;
var selList = sourcePathLst.selection;
for (s in selList){
for (file in filesPathLst) {
if(typeof(filesPathLst[file])=="string"){
fileName = File(filesPathLst[file]);
if (File.decode(fileName.name) == selList[s].text){
filesPathLst.splice(file,1);
break;
}
}
if(typeof(filesPathLst[file])=="object"){
if (File.decode(filesPathLst[file].name) == selList[s].text){
filesPathLst.splice(file,1);
break;
}
}
}
sourcePathLst.remove(selList[s]);
}
}
... View more
‎Jan 05, 2024
09:08 AM
I found the issue. The issue is than when the array is made of strings, File.decode(fileName[i].name) returns undefined But when i do it like this, it does seem to work if(typeof(filesPathLst[i])=="string"){
fileName = new File(filesPathLst[i]);
if (File.decode(fileName.name) == selList[s].text){
filesPathLst.splice(i,1);
break;
}
}
if(typeof(filesPathLst[i])=="object"){
if (File.decode(filesPathLst[i].name) == selList[s].text){
filesPathLst.splice(i,1);
break;
}
} The reason why the array changes, is because i also use ObjectToDescriptor to store all the settings. Since that doesnt take an array, i convert it to a string, than on opening i convert it back to a list. But than the filepaths are string and not object.
... View more
‎Jan 05, 2024
07:26 AM
Well i still see an issue, when the array is build from a string using this method var filesPathLst = new Array();//[]; //
// Generate list from exportInfo
filesPathLstStr = exportInfo.filesPathLst.split(',');
for (idx in filesPathLstStr){
if (filesPathLstStr[idx]!="")
filesPathLst.push(filesPathLstStr[idx]);
} splice() seems to work But when the array is filled with files from a dialog and they are an object, splice will not work. Do you know how to remove an item than.? EDIT its actually the otherway arround. When its an object it works. But when the items are made from a string it doesnt. How can i remove/delete items when they are made of a string?
... View more
‎Jan 04, 2024
05:12 AM
I'll try that method. Was doing some reading about splice. Look quite handy
... View more
‎Jan 03, 2024
04:53 PM
@Chuck Uebele Am I correctly understijg that only splice() is the correct method of removing and item from an array? I tried JavaScript methods but that won't work. Also remove() and delete() don't work
... View more
‎Jan 03, 2024
03:59 PM
How are items removed from an array. I've tried so many things but it simply won't work. Why I test typeof(arrayName), it returns an object even though declared as array. I believe estk tells an array to be an object. But I can get it to work to remove an item of that array.
... View more
‎Jan 02, 2024
07:32 AM
1 Upvote
Ah i see, in photoshop 21 and 23 it doesnt work for the text highlight. Like @Marc Autret states, i was wondering perhaps its an OSX thing where it still works. Also tried Illustrator, there the input show white, but does not turn red on errors
... View more
‎Jan 01, 2024
09:54 PM
1 Upvote
Sorry, I am bon englsi speaker. I guess I used the wrong words in this case. I meant it in a very positive way
... View more