after-effects

How to simulate a key-press in ExtendScript?

笑着哭i 提交于 2020-05-13 14:45:06
问题 currently I want to write a script for AE, which relieves me of some keyboard inputs. Once the script is running, I want to click with the mouse, and then some key-inputs for example X Y and Z should be simulated. The little GUI and the eventhandler are no problems, but the simulation of key pressing. Please help. var win = new Window ("dialog", "Dummy"); win.aButton = win.add ("button", undefined, "Start"); win.bButton = win.add ("button", undefined, "Stop"); //Start win.aButton.onClick =

AE Scripting : How to create a button in ExtendScript that stretches along with the width of panel in real time?

做~自己de王妃 提交于 2020-03-05 06:06:31
问题 As we cant set the width in percentage in ExtendScript. I am finding a way where my button can be stretch/resize in realtime while resizing the panel size. I tried setting the fill value - Button.preferredSize.width = 200; Button.preferredSize.height = 80; saveButton.alignment = ['fill', 'fill']; Didn't worked. Tried matching button width to panel width Button.preferredSize.width = panel.width; Didn't worked. 回答1: Just set it's alignment to fill horizontally. You can also specify it's size/

AE Scripting : How to create a button in ExtendScript that stretches along with the width of panel in real time?

此生再无相见时 提交于 2020-03-05 06:05:16
问题 As we cant set the width in percentage in ExtendScript. I am finding a way where my button can be stretch/resize in realtime while resizing the panel size. I tried setting the fill value - Button.preferredSize.width = 200; Button.preferredSize.height = 80; saveButton.alignment = ['fill', 'fill']; Didn't worked. Tried matching button width to panel width Button.preferredSize.width = panel.width; Didn't worked. 回答1: Just set it's alignment to fill horizontally. You can also specify it's size/

PHP exec() works in command line but not when executed via browser

 ̄綄美尐妖づ 提交于 2020-01-24 01:17:51
问题 I have the following line in a php file called batchrender.php: exec('/Applications/Adobe\ After\ Effects\ CC\ 2014/aerender -project /Users/abc/Sites/AETEST1.aep -comp "Komp1" -output /Users/abc/Sites/xyz.mov'); When I call this file via web browser it should render a movie with the aerender unix command. The output is PROGRESS: ...After Effects successfully launched... but that's all and it stops executing without any error. No movie is rendered. (No counting frames are displayed) When I

Is Windows 'clip' blocked in Adobe ExtendScript?

浪子不回头ぞ 提交于 2020-01-03 04:27:44
问题 In Adobe ExtendScript (based on java script) you can trigger system commands as if you are in a Windows console with 'system.callSystem()' This works: system.callSystem("notepad c:/test.txt") Notepad opens with the content of the file. But these examples that try to paste to the clipboard don't work:" system.callSystem('clip < c:/test.txt') system.callSystem('dir | clip') I've tried numerous variations with 'clip' and none of them work. Is 'clip' blocked from working with ExtendScript, or am

Trouble getting footage path after effects sdk

删除回忆录丶 提交于 2019-12-13 16:44:46
问题 Having trouble with the after effects sdk. Basically I'm looping through all of the footage project items and trying to get the footage path from them. Here's the code I have inside of the loop. AEGP_ItemType itemType = NULL; ERR(suites.ItemSuite6()->AEGP_GetNextProjItem(projH, itemH, &itemH)); if (itemH == NULL) { break; } ERR(suites.ItemSuite6()->AEGP_GetItemType(itemH, &itemType)); if (itemType == AEGP_ItemType_FOOTAGE) { numFootage++; AEGP_FootageH footageH; ERR(suites.FootageSuite5()-

Is there a way to change font color of a specific word in a string, in extendscript for after effects?

天涯浪子 提交于 2019-12-13 03:12:15
问题 I can change the font color of the entire text layer successfully, but I cannot find a way to change the color of a specific word in a string. For e.g. In this string "Trying to learn extendscript for after effects", I want to change the color of "learn" only. var mySourceText = currItem.layers.byName('line04').property("ADBE Text Properties").property("ADBE Text Document"); var myTextDoc = mySourceText.value; myTextDoc.fillColor = [0.5,0.5,0]; mySourceText.setValue(myTextDoc); But this would

Implementing Perfectly Timed Animations

巧了我就是萌 提交于 2019-12-12 03:34:47
问题 Creating Perfectly "up to spec" Animations I'm working with a designer right now that likes to work a lot with After Effects. They create beautiful, well timed animations that look great, but I'm having trouble actually implementing the designs. I can make everything look perfect, as in everything is the right size, shape, color, etc., but I can't get the movements to feel perfect, like they are in the spec. I can try my best to eyeball it, and tweak my animation parameters until things look

Open web page in After Effects with ExtendScript

大城市里の小女人 提交于 2019-12-09 07:16:29
问题 This may be a simple one but I can't figure it out. How can I open a web page in the main browser from extendscript as I would do with window.open() in Javascript? I am targeting After Effects and would like it to work on both OS X and Windows. 回答1: In After Effects you can simply do it using the system object, as Dirk mentioned. However you need several things for that: checking that the script can access the network: if (app.preferences.getPrefAsLong("Main Pref Section", "Pref_SCRIPTING

Adobe After Effects extend script - how to run script from command line and pass in arguments?

若如初见. 提交于 2019-12-03 14:19:27
问题 I'm trying to run an Adobe AE extendscript from the command line. I use the "-r" argument and I can run scripts fine. However, is it possible to pass in an argument to the script? Like, if i run this from the command line: C:\>"C:\Program Files\\Adobe\\Adobe After Effects CC\\Support Files\\AfterFX" -r "C:\Workspaces\MyAEScripts\AutomateSetup.jsx" hello is it possible to get that "hello" into my AutomateSetup.jsx script? I've been googling for a while and can't find a solution to this. 回答1: