AE ENHANCERS

Expressions/Scripts/Presets
It is currently Mon May 20, 2013 2:06 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Create a custom Control effect
PostPosted: Mon Feb 25, 2008 3:34 pm 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 456
Location: New York City, NY
explorer wrote:
If there is what would be a path returned by that dialog look like if one would navigate to the AE instal dir?


This code will give you the path to the enclosing folder of the AE application

Windows:
var appFolderPath = String(Folder.appPackage);

Mac:
var appFolderPath = Folder.appPackage.parent.toString();


-Lloyd

_________________
http://aescripts.com


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Mon Feb 25, 2008 4:44 pm 
Offline

Joined: Thu Mar 01, 2007 11:12 pm
Posts: 17
Location: Poland, Warsaw
ok. nevermind.

[EDIT]

Oh... hey... I didn't see your response :)
I figured it out a bit differently, but it works like a charm.
I'll be publishing this new great app soon.
I'll make sure to let you guys know.

Cheers


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Wed Feb 04, 2009 2:55 am 
Offline

Joined: Sun Mar 26, 2006 1:58 am
Posts: 18
Hey did anyone ever figure out how to use the "Popup" controller? It is defined at the beginning of the XML file but there is no example of the syntax anywhere.

BTW, this is my version of a JSX to invoke the custom effect once you've created it:

Code:
// Create Undo Group for Applying the Effect
app.beginUndoGroup("My Custom Effect");{
   //Check for selected comp with alert if one isn't selected
   var activeItem = app.project.activeItem;
   if (activeItem == null || !(activeItem instanceof CompItem)){
      alert("Please select a Comp first");}
   else {
      //Define comp
      var mainComp = app.project.activeItem;
      //Make a Null Layer to apply The Custom Effect
      newNull = mainComp.layers.addNull();
      newNull.name = "My Custom Effect Null";
      //Add the effect
      newNull.Effects.addProperty("My Custom Effect");
      // close the undo group
      app.endUndoGroup();}}


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Mon Feb 09, 2009 1:08 pm 
Offline

Joined: Fri Jul 20, 2007 11:13 pm
Posts: 12
Location: Seattle, WA, USA
I just talked with a couple of the After Effects software engineers about the Popup control.

For now, this control is just used internally by layer styles. It doesn't work for custom effects / animation presets.

If you want this functionality, please enter a feature request using the feature-request form.

_________________
----------------------------------------------------------
Todd Kopriva, Adobe Systems Incorporated
http://help.adobe.com/en_US/AfterEffects/9.0
----------------------------------------------------------


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Fri Feb 13, 2009 2:23 am 
Offline

Joined: Sun Mar 26, 2006 1:58 am
Posts: 18
Thanks Todd,

I figured it was probably internal-use only; but really nice to have the definitive answer.

Much appreciated.

LMN


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Fri Mar 04, 2011 7:15 pm 
Offline

Joined: Tue Feb 15, 2011 6:19 pm
Posts: 6
Is there any way to create my own effects, with several of the controller with a script, but without changing the xml file?
I have this script:
    MyControl = LayerVideoA.Effects.addProperty("Slider Control");
    MyControl.name = "Transition Duration"
    MyControl(1).setValue(2);
Its create standart Slider Control:
Image
But how can I rename the Slider, and add more sliders(or other controls) to my effect?


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Wed Apr 25, 2012 2:24 pm 
Offline

Joined: Mon Feb 06, 2012 2:01 pm
Posts: 12
Hey all,
I thought I would place an FYI for future folks here. I was trying like mad to build a custom UI the past couple of days. I have not had it fail like this in the past. Usually you miss a quote or something stupid. I spent so long looking at quotes and tag beginnings and ends and nothing was working / i.e. the thing was constantly failing. After breaking it down into smaller pieces to troubleshoot it, it turns out that there is a maximum of 30 characters allowed in the naming of the thing. I had "Use Velocity Drift for Master Rotation" (38 characters). Works great under 30 though.


Top
 Profile  
 
 Post subject: Re:
PostPosted: Fri Jun 29, 2012 8:44 pm 
Offline

Joined: Thu Aug 12, 2010 1:50 am
Posts: 3
nab wrote:


hi,
has anybody got this script from Nab to create Custom effects?

Does anybody know how to make a group inside such a Custom Effect?
cheers


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Mon Jul 02, 2012 6:04 am 
Offline

Joined: Mon Feb 06, 2012 2:01 pm
Posts: 12
I was never able to find it. But it is not hard to add them as described. Just be mindful of the formatting, and name length (see above).

<Group name="$$$/AE/Preset/Group_Name_Here=Group Name Here">

place your doodads in here

 </Group>


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Tue Jul 03, 2012 11:13 am 
Offline

Joined: Thu Aug 12, 2010 1:50 am
Posts: 3
MYX_2000 wrote:
I was never able to find it. But it is not hard to add them as described. Just be mindful of the formatting, and name length (see above).

<Group name="$$$/AE/Preset/Group_Name_Here=Group Name Here">

place your doodads in here

 </Group>

Hi,thank you it works :)

It would be great to have a script that writes the code directly into the XML file :!:


Top
 Profile  
 
 Post subject: Re: Create a custom Control effect
PostPosted: Sun Apr 28, 2013 9:11 am 
Offline

Joined: Tue Apr 22, 2008 4:22 am
Posts: 3
sahara wrote:
It would be great to have a script that writes the code directly into the XML file :!:

http://aescripts.com/slim-expression-controls/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group