Using application icons
When I edit a script,I want to add a iconbutton in the window;
I want to konw how to use the After Effects application icons as the iconbutton's icons ??
When I edit a script,I want to add a iconbutton in the window;
I want to konw how to use the After Effects application icons as the iconbutton's icons ??
Still looking, but found this in the Javascript Tools Guide CC.pdf (pg 72). Unfortunately they mention Photoshop CC only.
The scripting environment can define icon resources, which are available to scripts by name. To specify an icon resource, set a control’s image property to the resource’s JavaScript name, or refer to the resource by name when creating the control. For example, to create a button with an application-defined icon resource:
myWin.upBtn = myWin.add ("iconbutton", undefined, "SourceFolderIcon");
Photoshop CC, for example, defines these icon resources:
Step1Icon
Step2Icon
Step3Icon
Step4Icon
SourceFolderIcon
DestinationFolderIcon
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.