itsenouphoto
Explorer
itsenouphoto
Explorer
Activity
‎Mar 12, 2025
02:23 AM
Thanks for your detailed description, I have used it many times when I could not remember how it works. And now I came back again to supplement this Parameters addTracks(0, 0, 1, 3) for audio: addTracks(addVideoNum, addToVideoIndex, addAudioNum, audioType, addToAudioIndex) - addAudioNum and addToAudioIndex are similar to addVideoNum (how many tracks to add) and addToVideoIndex (at what index to add) - audioType: 0 = Mono 1 = Adaptive 2 = 5.1 3 = Stereo
... View more
‎Mar 01, 2025
04:47 AM
UPD: Sorry, I'm an idiot confused by myself. The second variable is not a boolean int. It's like the first one, but for audio - the number of tracks to move an audio to
... View more
‎Mar 01, 2025
04:36 AM
I googled the parameters of this function and found that I had figured this out last year, but there was one mystery left. Now I have solved it, at least sort of I don't know what to call it more precisely, but while trying to create copies of not only video but also audio, I found that the second parameter (0 /*unknown, int?*/) disables the ability to move clips on audioTracks This parameter in the value 1 does not make the function copy the audio linked with the video or selected with it or something like, but the value 0 simply disables the ability for the function to move/duplicate the audio clip subject. In this case, I needed to move/duplicate the audio along with video to the top tracks. To do this, I found audio clip (var qeAudio) corresponding to the video clip (in my case, it was enough to find a clip with the same parentTrackIndex and start.seconds, but this option will not suit everyone ofc) and applied qeAudio.moveToTrack((seq.audioTracks.length - findSelAudio.parentTrackIndex - 1), 1, "00:00:00:00", 1)
... View more
‎Oct 28, 2024
02:31 PM
I found this same problem while developing another extension. Luckily, it was early on so I didn't have to search through too many options. Everything is fine if I reload the extension with - location.reload() It was tiring to figure out every time what was updated on reload and what wasn't, so I used - location.reload(true) more often to at least clear the cache and increase the chance that I wouldn't have to go through line by line looking for an issue that was already fixed, but a function just didn't update. It seems that trying to clear the cache in some cases (maybe one of the options is connecting to Chrome for debugging) breaks something. I'll keep an eye on this
... View more
‎Aug 15, 2024
02:13 AM
Hi. I'm trying to set up debugging of the CEP panel in VSKCode instead of debugging in Chrome DevTools. In general it works, but when I run run debug "attach" request in VSCode something strange happens with styles and elements. Some text elements had broken style settings. And the main - a white rectangle appears over part of the page after each launch. It disappears if I call some changes in styles through, for example, disabling some style in Chrome DevTools or in the JS script. But not everywhere. Sometimes I switch to another extension page and the rectangle is there too, and of a different size. Chrome DevTools displays it the same way when opening localhost, but does not allow you to select it as an element and does not display anything in the page code Experimentally, it has been found that this happens if switching extension pages occurs by changing style.display from null to something else (flex in my case, but I tried a block and got the same result). And the text becomes readable if I reset its font-family css to the default in Chrome DevTools (it is currently set as the @Blissful_help0D4E-face variable) I set up launch.json like this (with some attempted changes hoping to fix this issue) https://gist.github.com/zlovatt/da7376bd3a53519732fa8754d4959940 I would be very grateful if someone could tell me how to fix this.
... View more
‎Jul 19, 2024
10:42 PM
Surely someone Googles this and opens this link with the same hope as I did qeClip.moveToTrack( 1 /*trackIdShift, int*/, 0 /*unknown, int?*/, "00:00:01:00" /*timeShift timecode ss:msms, string*/, 1 /*1 = duplicate, int bull*/) trackIdShift- If you want to move a clip from track 2 to track 5 then here is 5-2 = 3. -3 for vice versa work too unknown, - ... (I did a bunch of tests and couldn’t find out what was changing, I’d be glad if someone figured it out) timeShift - move clip forvard to 1 sec in "00:00:01:00" case duplicate - if 1 move the clip to a new track while maintaining the source one, else 0
... View more
‎Nov 20, 2022
08:37 AM
Its about a script running. As I said, I configured this stage. But VS Code asks me to select an application to which to apply the launch.json file itself when I start VS Code, before running the script I have also tried adding targetSpecifier and hostAppSpecifier to the settings in both launch.json and the workspace settings file. But I still don't know how it works very well because I switched to VS Code quite recently
... View more
‎Nov 20, 2022
01:43 AM
I'm continuing to get used to VS Code and come across a new question. I tried googling, but several hours of searching didn't get me anywhere near the answer. I set up the ExtendScript Debugger config and it works when I run the script to debug. But before that, every time I open (or reload) VS Code, I need to select target application for launch.json. Is it possible to automate this somehow? It's ideal to assign a default application to the workspace, as I've created different workspaces for script projects for Illustrator and Photoshop. Windows 10, VS Code 1.73.1 (latest)
... View more
‎Nov 17, 2022
05:56 AM
1 Upvote
If you have the spot color in the selection[0].fillColor, then you get exactly spot. But if you want to get exactly just RGB color then you can get it by selection[0].fillColor.spot.color Or maybe it will need to take for each channel (dont sure, cant test it now): selection[0].fillColor.spot.color.blue //( , red, green) If you work in ESTK then you can to see this properties in the Data Browser window (and if not, I really advise you to try it. When I discovered it, it opened up new horizons for me) I usually create a variable to which I assign the necessary item and see what happens inside it
... View more
‎Nov 17, 2022
12:21 AM
1 Upvote
text.fillColor = app.activeDocument.selection[0].fillColor; //or text.strokeColor for strokes respectively
... View more
‎Nov 15, 2022
05:04 AM
Hi @m1b . Sorry for the long answer, I decided that first I need to complete the task with the tools that allow it, and then figure out how the new ones work. Here is the link to the all files: https://drive.google.com/drive/folders/1J6t0FxhRAKnTs0bIRRw9R0C21s_3HtwF?usp=sharing (.aia Action file is not supported here) And the text of the function: var targetDoc = app.activeDocument;
cleanByBotL();
$.writeln("\n---rdy");
function cleanByBotL(){
var targetObj = targetDoc.layers[0].pageItems.getByName("Traced_Image");
var lrsList = [];
for (i = 0; i< targetObj.pageItems.length; i++){
lrsList[i] = targetObj.pageItems[i].name;
}
lrsList = lrsList.reverse();
//for (i = 0; i< 1; i++){
//$.writeln("Fix lrsList["+i+"] = " + lrsList[i]);
var i = 3; // for test on one item
var groupToMin = targetObj.groupItems.add();
groupToMin.name = "grToMinus";
groupToMin.move(targetObj.pageItems.getByName(lrsList[i]), ElementPlacement.PLACEBEFORE);
var numGr = i;
targetDoc.selection = null;
for (numGr; numGr < lrsList.length-1 ; ){
numGr++;
targetObj.pageItems.getByName(lrsList[numGr]).duplicate(groupToMin);
$.writeln("Fix lrsList["+ numGr +"] = " + lrsList[numGr]);
}
targetDoc.selection = null;
groupToMin.selected = true;
app.executeMenuCommand("compoundPath");
targetObj.pageItems.getByName(lrsList[i]).selected = true;
$.writeln("tst 1"); // Here I can see where the AI freesing
app.doScript("Path_2" , "Lines_js_action", false); // So thats the problem
//app.executeMenuCommand("Live Pathfinder Subtract"); // Here too, but it just not working
$.writeln("tst 2"); //or not freesing
app.executeMenuCommand("compoundPath");
targetDoc.selection[0].name = lrsList[i];
targetObj.pageItems.getByName(lrsList[i]).selected = true;
$.writeln("targetDoc.selection = " + targetDoc.selection);
//}
} By the way, I tried a few more tests and realized that after reinstalling the VS Code ExtendScript extension to any version, most often this line works when I start it for the first time. And then it starts crashing again.
... View more
‎Nov 14, 2022
03:51 PM
Hello everyone. I finally ran into a problem with which I decided to write here. A few days ago I decided to take a chance on debugging in VS Code. Everything was well but today I lost several hours in the process of writing a draft of one of the functions trying to figure out what was doing wrong. And then I decided to run the same code in ESTK and - surprise! - it worked as it should. Win10, Illustrator 2023 The problem occurred when calling Pathfinder -> Substract (and Minus Back). At first I did it via app.executeMenuCommand("Live Pathfinder Subtract"), but it just didn't work (or was wrong sometimes). I carefully checked everything and tried different options, nothing helped and I decided to use app.doScript. This worked if it was the only line in the script. But when it's inside a function, the illustrator just freezes at the moment the action is executed. I have another calls of executeMenuCommand and doScript in my current developing script and it works as it should be. I've tried restarting VS Code and Illustrator, googled a lot, restarted the computer couple times. Nothing helped until I remembered that there is an old, but familiar ESTK, open it and app.doScript worked without problems. Although app.executeMenuCommand("Live Pathfinder Subtract") still doesn't work. As a result, I reinstalled the ExtendScript Debugger extension by reducing the version to 1.1.2 and in VS Code it now also works. So, the question is: the problem is in me and can it be fixed, or is it better not to upgrade to the latest version yet so that with every error I don’t think it’s me stupid or the debugger again decided to waste a couple of hours of life? Perhaps I need to somehow clear the test results that remain in memory ... Thank you for your attention, I will be grateful for any comments.
... View more