shusaku_tr
Explorer
shusaku_tr
Explorer
Activity
Apr 14, 2024
08:05 PM
ありがとうございます! 動作の確認できました。 ちなみに、selected = true の場合、レイヤーの右側のOが選択選択されているようです。 ただ、アクションを通じた操作をスクリプトで行いたいので、青いラベルがつくほう(添付画像赤線)の選択状態を行うことは可能でしょうか?
... View more
Apr 14, 2024
06:18 PM
ありがとうございます! すみません、私の質問の仕方が良くありませんでした。 getByNameではなく、レイヤーのインデックスで選択を可能でしょうか? ちなみに、サブレイヤーが間に入っている場合も考慮できれば幸いです。 このような場合で、添付画像のCを選択するにはどうすればよいでしょうか..? また、フォーラムの仕組みについてありがとうございます。 日本で投稿した場合は日本のフォーラムに投稿されつつ、海外にお住まいの方は自動で英語翻訳されて閲覧できているという事なのでしょうか?
... View more
Apr 14, 2024
06:13 PM
Thank you! I'm sorry, my question wasn't very clear. Instead of using getByName, is it possible to select by layer index? By the way, if there are sub-layers involved, it would be great to consider those too. In such a case, how would one go about selecting C?
... View more
Apr 14, 2024
11:46 AM
How would you write to select path item "a" through a script in a situation like the one shown in the attached image?
... View more
Apr 14, 2024
11:22 AM
Is there a way to move layers within a layer outside using a script like this? thank you.
... View more
Apr 14, 2024
06:28 AM
Hello, how should I write a script to get the name of 'object_1'? app.activeDocument.activeLayer.layers[0].layer(2).name I couldn't retrieve them with this syntax.
... View more
Feb 27, 2023
07:41 AM
1 Upvote
Thank you! It's worked perfectly..!
... View more
Feb 26, 2023
06:38 AM
This script is a script created using After Effects' JavaScript with a dockable UI and three buttons. Currently, the top button that is not grouped can be variable, but the bottom two buttons cannot be variable. How can we modify it to make these buttons variable, as shown in the attached sample? Thank you. function createDockableUI(thisObj) {
var dialog = thisObj instanceof Panel ? thisObj : new Window("palette","Proxy Setter", undefined, { resizeable: true });
return dialog;
}
function showWindow(myWindow) {
if (myWindow instanceof Window) {
myWindow.center();
myWindow.show();
}
if (myWindow instanceof Panel) {
myWindow.layout.layout(true);
myWindow.layout.resize();
}
}
var dialog = createDockableUI(this);
dialog.orientation = "column";
dialog.alignChildren = ["center","top"];
dialog.spacing = 10;
dialog.margins = 16;
var button1 = dialog.add("button", undefined, undefined, {name: "button1"});
button1.text = "Button1";
button1.preferredSize.height = 30;
button1.preferredSize.width = 130;
var group1 = dialog.add("group", undefined, {name: "group1"});
group1.orientation = "row";
group1.alignChildren = ["center","center"];
group1.spacing = 10;
group1.margins = 0;
var button2 = group1.add("button", undefined, undefined, {name: "button2"});
button2.text = "Button2";
button2.preferredSize.height = 30;
button2.preferredSize.width = 60;
var button3 = group1.add("button", undefined, undefined, {name: "button3"});
button3.text = "Button3";
button3.preferredSize.height = 30;
button3.preferredSize.width = 60;
function resizeWindow() {
var button1Height = 30;
var button2Width = 60;
var button3Width = 60;
var dialogWidth = dialog.bounds.width;
var dialogHeight = button1Height + dialog.margins.top + dialog.margins.bottom;
button1.size = [dialogWidth - dialog.margins.left - dialog.margins.right, button1Height];
button1.location = [dialog.margins.left, dialog.margins.top];
group1.size = [dialogWidth - dialog.margins.left - dialog.margins.right, button1Height];
group1.location = [dialog.margins.left, button1.location[1] + button1Height + dialog.spacing];
button2.size = [button2Width, button1Height];
button2.location = [group1.location[0] + (group1.size[0] - button2Width - button3Width - group1.spacing) / 2, 0];
button3.size = [button3Width, button1Height];
button3.location = [button2.location[0] + button2Width + group1.spacing, 0];
}
dialog.onResizing = dialog.onResize = function() {
resizeWindow();
};
showWindow(dialog);
... View more
Jan 15, 2023
09:39 AM
Sorry, the code is hard to see, I will fix it. var folderPR = app.project.selection[0].file.fsName.replace(/\\/g,'/');
var indx = folderPR.lastIndexOf("/");
var folderPath = folderPR.slice(0,indx+1);
var folder = new Folder(folderPath);
var trgfiles = folder.getFiles();
... View more
Jan 15, 2023
09:36 AM
The code here stores all files on the folder where the selected footage exists in the array "trgfiles". var folderPR = app.project.selection[0].file.fsName.replace(/\\/g,'/'); var hoge = folderPR.lastIndexOf("/"); var folderPath = folderPR.slice(0,hoge+1); var folder = new Folder(folderPath); var trgfiles = folder.getFiles(); I would like to create a script to move all the files in trgfiles from here to the recycle bin. Here is the link I am referring to, but it does not work. https://community.adobe.com/t5/photoshop-ecosystem-discussions/delete-active-document-recycle-bin/m-p/10866551?profile.language=en
... View more
Jan 14, 2023
09:19 AM
Hello, I would like to combine the contents of the shape layer into one with a script, is there a good way to do this? I thought of using executecommandID to copy-paste, but it is unstable so I am looking for another way. Thank you.
... View more
Jan 14, 2023
09:07 AM
ありがとうございます!! こちらで実行できました・・!!
... View more
Jan 14, 2023
03:03 AM
ありがとうございます! remove()以外でファイルを削除する方法はないでしょうか?
... View more
Jan 14, 2023
02:01 AM
Hello, when I delete a file with remove(), it doesn't go into the recycle bin, but is completely deleted and the file seems to be unrecoverable. Is there any way to work around this? thank you.
... View more
Jan 09, 2023
02:28 AM
Thank you! It's worked!!
... View more
Jan 09, 2023
12:33 AM
Thank you! That's unfortunate...
... View more
Jan 08, 2023
11:48 PM
Hello, I wrote a simple script to get the path of the proxy folder selected in the project panel. fileTrg = app.project.selection[0].file;
folderObj = new Folder(fileTrg);
alert(folderObj.fsName) However, this alert returns my AfterEffects system folder. like this C:\Program Files\Adobe\Adobe After Effects 2021\Support Files\tmp0000001 How to get correct proxy folder path? Thank you.
... View more
Oct 10, 2022
12:31 AM
I would like to increase the "EditText" element when plus button clicked. My test script does not allow me to increase the element... Could anyone please tell me how to do this? thank you. var dialog = new Window ("dialog", "Test", undefined, {resizeable:true});
var group_ui = dialog.add("group", undefined, {name: "group_ui"});
group_ui.orientation = "row";
var plusBtn = dialog.group_ui.add("button", undefined, undefined, {name: "plusbtn"});
plusBtn.text = "+";
var minusBtn = dialog.group_ui.add("button", undefined, undefined, {name: "minusbtn"});
minusBtn.text = "-";
function ViewEditTextList(){
dialog.statictext = new Array();
for (i=0; i<myCount; i++){
dialog.statictext[i] = dialog.add("edittext", undefined, undefined, {name: "EditText"});
dialog.statictext[i].text = "text_test"
}
}
var myCount = 2;
plusBtn.onClick = function(){
myCount = myCount+1;
ViewEditTextList()
}
ViewEditTextList()
dialog.show();
... View more