Quantcast
Channel: Adobe Community : Popular Discussions - After Effects SDK
Viewing all 73444 articles
Browse latest View live

How to run AEGP?

$
0
0

I am very new to After Effects SDK and I did some reading on the structure of the SDK and examples. Now I was trying to build the examples, and it works fine for Effect plugins. I am on Mac and for making the effect examples, all I need to do is changing the Build Settings in xCode. Then copy the built file under `Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/personal/paramarama.plugin`. Then I restart After Effects and it gets shown in the effects list.

 

However, when I try the same thing for AEGP examples, it doesn't work. I noticed that both extensions are .plugin but paramarama says 'Effect' on its file and ProjDumper says 'General'. So this doesn't get shown on the effects.

 

I got pretty confused. What am I missing here?

 

How can I run/test AEGP plugin? I think I couldn't really connect the dots between effect plugins and aegp. I'd be grateful for any help.

 

*Edit: As far as I understand, AEGPs run on the start of After Effects. If so how do I test them?


Can't access params in sequence setup

$
0
0

Hi. I'm getting bad access if I try to access a parameter in sequence setup, even though sequence setup is passed the params array and is called after params setup function. Is there a reason that params can't be access here?

 

I was hoping to have a param slider called seed, and then in sequence setup use that param as the seed. If the seed slider changes, then I'll call SequenceResetup.

Thanks.

Setting format and format options in Output module settings for render queue item

$
0
0
Hello,

I am unable to set the "Format" and "Format options" for video in output module settings programatically using After effects apis.
I referred the after effects cs3 sdk guide for the apis.

I find apis for all other options in the "outputmodule settings " like :
AEGP_SetEmbedOptions
AEGP_SetOutputChannels
AEGP_SetStretchInfo
AEGP_SetSoundFormatInfo

But there is no api listed for setting the options available in the "Format" tab and "Format options" tab.

The "Format" tab and "Format options" tab is available in the dialog that opens when user clicks on the Output module settings for the render queue item.

The format tab when clicked shows a drop down list with aff different formats. By default "Video for Windows" is set.
The drop down list contains following format options
Adobe Clip Notes
Adobe Flash video
...
Quicktime movie
...
Video for Windows
...

I need to be able to set the "Quicktime movie" option in the Format tab programmatically and then set the compression type as "Animation" in the compression settings programatically using the api functions available in AE CS3 SDK
Please suggest the suitable api to do so.
I need to write my own plugin to export to Quicktime movie using the after effects apis.
I follow below steps to do so.
1. AEGP_InsertMenuCommand and add export option to AE with my own plugin name
2. In the command hook, select active item using AEGP_GetActiveItem
3. Add it to render queue
4. Set the output module settings for 0 th output module using
suites.OutputModuleSuite1()
5. Use different functions from suites.OutputModuleSuite1() to set the output module settings like EmbedOptions,StrechInfo etc.
6. Till this step, I am doing it right. But I am not able to find any api for setting Format options using suites.OutputModuleSuite1()

I also checked all other suites available for setting FormatOptions but no luck.
Please help.

Thanks,
-Namita

getting "Unable to run script at line 1: syntax error" error?

$
0
0
Hi,

I want to run a script using the AEGP_ExecuteScript() function. but I got an error "Unable to run script at line 1: syntax error". what could be the rea son for this? shall I inlcude anything extra info in my project?

Below is the code ...

char scriptPath[] = "F:\\Documents and Settings\\akshays\\Desktop \\Active Shutter.jsx";

A_Boolean platform_encodingB = 'B';
AEGP_MemHandle outResultPH0;
AEGP_MemHandle outErrorStringPH0;

utilitySuite5->AEGP_ExecuteScript( pluginID, scriptPath, platform_encodingB, &outResultPH0, &outErrorStringPH0 );

please help me.

Thanks
Manjunath

Can I create Paint Effect brush strokes from code?

$
0
0

Hi,

 

Long time reader, first time poster.

 

Will the SDK enable me to draw "Paint Effect" brush strokes from path data with per-vertex pressure information? 

 

I have been using ExtendScript to copy-and-paste the Path property from a paint stroke to a temporary Mask to access the shape data (ie. number of vertices and vertex positions), and while it is possible to paste an altered path back to the stroke, I would really like to be able to create brush strokes directly from code.  I have reached the limit of Extendscript, as the "Path" property is labeled a Custom Value Type.

 

I have read through the SDK, but couldn't find anything definitive.  It's going to be a big learning curve from ExtendScript to C++ and I'm just looking for a nod of "it's possible, go for it!" before diving in.

 

TIA.

Make parameter disabled depending on layer type.

$
0
0

Is it possible to make a parameter disabled dependant on the type of layer it is applied to?  For example, if I apply the plugin to a TextLayer can I disable certain params, but enable them if I apply the same plugin to an Image layer?

 

In the SDK, I read, that PF_PUI_DISABLED "Disables (grays out) the parameter, usually in response to PF_Cmd_USER_CHANGED_PARAM" but how would I disable the parameter immediately by checking the type of layer.  I was thinking of using javacript to detect the layer type, but maybe that's too much overhead.  Is there any way to:

 

1.  Programatically fire off PF_Cmd_USER_CHANGED_PARAM

2.  Detect the layer type with the SDK instead of resorting to calling a javascript from within the plugin's code?

 

Thank you for your time and help!

 

Best,
Arie

Any way to click a button on an effect?

$
0
0

Hi there.

 

I'm trying to figure out a way to simulate a user pressing a button on an effect.  I've seen others asking about this w/o success:

http://forums.creativecow.net/thread/227/23289

http://forums.adobe.com/message/5289079#5289079

 

Seems like this is not possible to do with an script.  I'm wondering if it could be done via a compiled plugin.  I'm no stranger to writing code, but before I jump down the rabbit hole of making a custom ae plugin (AEGP plugin?) I'd like to know if its even possible.  It seems like it might be done via OS specific libraries, but I was hoping I could do it directly with the AE SDK and avoid special case code for each OS.

 

 

Thanks in advance for your help!

-Andy

Is it possible to create Qt Widgets inside After Effects using the SDK?

$
0
0

Hi,

 

I would like to use Qt to create Dialogs and Widgets inside AfterEffects.

 

I started out with the Panelator example in the SDK. I can include QtGui into the project, but as soon as I create any object with QObject as a base-class After Effects crashes immediately with the following error: '[...] could not be loaded (48::46)'

When I try delay load QtCore.dll and QtGui.dll I can at least start the plugin and see, that the crash happens in the initializer of the QObject.

 

I use

VS 2010

QT 4.8.5

and my buildenvironment is x64

 

I was wondering if there is any kind of incompatibility of embedding Qt in After Effects (due to linker/compiler setting or defines or something like this).

 

This is the debugger output:

 

Locals:

locals.PNG

 

Threads:

threads1.PNG

My code in the Panel-constructor function:

 

    int argc = 0;

    char *argv[1] = {""};

 

 

    QApplication* a = new QApplication(argc, argv); // THE ERROR OCCURS IN THIS LINE. for a test I exchanged it to QWidget* w = new QWidget(); and it happens as well.

    QWidget* w = new QWidget();

    w->show();

    a->exec();

 

Outside of AfterFX Qt works fine and I also can delay-load QtGui and QtCore.

 

If anyone of you already has experience in using QT in AfterEffects, I would really appreciate your help!

 

Thanks in advance.


Project files crash after adding new parameters to an effect plugin

$
0
0

Hi There,

 

As I was developing an effect, I built projects to test things out.  Now, however, I added a new parameter to an effect and when I open the projects that contain the old build of the same effect, I get the following three error messages:

 

1.  After Effects warning: effect control conversion required in effect "Test Plugin".  Some effect controls will be reset.  To avoid silently resetting these same effect controsl on all subsequently loaded projects, save this project and then quit & re-launch After Effects. (25 :: 0)

 

2.  After Effects error: missing data in file. (33 :: 4)

 

3.  After Effects warning: your project file is apparently damaged (skipped sections: 3).  Please save using a different name.  (26 :: 0)

 

Why does this happen, and what can I do, if anything, to avoid this from happening.

 

Thanks for your time and help!

 

--Arie

How to edit AF files without open After Effects application

$
0
0

Hello, guys.

 

I am trying to edit aep files without opening After Effects application? ,by CMD command or SDK whatever...

My concern is that I open aep files without opening After Effects application.

and then run some jsx scripts then save and close the files. And after that, I render them out.

The whole process what I need is not to open the application.

Is there anyone knows this task?

 

Thanks.

How to debug sdk example on visual studio?

$
0
0

Hi all, does anyone know how to debug sdk project on visual studio?

 

I have set the output folder to 'C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files\Plug-ins\Effects',

and set debug command  to 'C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files\AfterFX.exe'

QQ截图20151111103800.png

 

QQ截图20151111103823.png

 

then I set some breakpoints and press the debug button, AfterFx.exe runs and it creates a .aex file in the folder 'C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files\Plug-ins\Effects'.

But when I select the plug-in in AE, nothing happend, still could not debug it

How to Debug the project, did I miss something?


thx for help!

Possible to call / load an external DLL in GlobalSetup()?

$
0
0

Hi Again

 

So, I'm needing to use a DLL provided to me by a third party.  I need to call a function from it in GlobalSetup().  I've linked the DLL (x64) correctly as Visual Studio is building the .aex just fine.  However, when I go to debug and apply the effect to a solid, for exampe, AE tells me:

 

After Effects error: plugin "testplug.aex" could not be loaded (126).

(48 :: 46)

 

Then, I click 'OK', and when I apply the effect again it gives me the following error:

 

After Effects error: invalid filter

(25 :: 3)

 

From my experience this usually means that After Effects cannot find some kind of DLL, but I might be wrong.   When this error comes up, I do see the following in Visual Studio's debug output:

 

First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083AE78.

First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083AFAC.

First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083B610.

 

I doubt that means anything, but just thought I would share that info in case it does.

 

I've pinned down the problem to the first line of code that calls a function from the third-party DLL.  When I comment out that line, everything is okay, but when I uncomment it, I get the errors above.  So, my question is if there is anything I can further to do debug the DLL issue.  The DLL was just shipped with an SDK, so I don't have access to the source.

 

If there is any insight you all can offer, I would be most appreciative.

 

Thanks and best,
Arie

how can i run an extention(html5 panel) from c++ plugin file

$
0
0

hi. i am new in after effects. i tried to run an extention(html5 panel) from a plugin c++ code...

is it possible? if not possible how can i run jsx file instead of extention?

Crash while communicating from AEGP to custom Effect.

$
0
0

Hi,

     I'm using AEGP_EffectCallGeneric() to communicate from AEGP to custom effect. If there are ten effects and I call each of them ten times from AEGP, there is a random crash on MAC.

 

Here is one of the generated crash report :

 

#0    0x0080d07c in CPanoProjItem::DrawGuides
#1    0x008106a8 in CPanoProjItem::DrawBasicOverlay
#2    0x007704e1 in CComposition::CollectMRUDownstreamComps
#3    0x0080f22f in CPanoProjItem::DrawOverlay
#4    0x0081031b in CPanoProjItem::DrawImpl
#5    0x0077f000 in CComposition::CollectMRUDownstreamComps
#6    0x00812e1c in CPanoProjItem::Draw
#7    0x006cc51a in CPane::DrawAll
#8    0x00812cff in CPanoProjItem::DrawAll
#9    0x006cb09b in CPane::Pane_Draw
#10    0x006c42a3 in CChore::Perform
#11    0x006cc5e4 in CPane::DrawAll
#12    0x006cb09b in CPane::Pane_Draw
#13    0x006c42a3 in CChore::Perform
#14    0x006cc5e4 in CPane::DrawAll
#15    0x007028ac in dvacore::utility::SearchLiveHelp
#16    0x032584a4 in dvaui::ui::OS_View::UI_HandlePlatformDrawEvent
#17    0x02d4ce16 in dvacore::config::ErrorManager::ExecuteFunction<void>
#18    0x00662946 in EggMain
#19    0x00662a71 in EggMain
#20    0x02d4bcf5 in dvacore::config::ErrorManager::ExecuteFunctionWithTopLevelExceptionHandler<void>
#21    0x02d4dc83 in dvacore::config::ExecuteTopLevelFunction<void>
#22    0x0324a99a in -[DVAMacContainerView drawRect:]
#23    0x8358da6f in -[NSView _drawRect:clip:]
#24    0x8358b1b4 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topVi ew:]
#25    0x8358bbfb in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topVi ew:]
#26    0x8358bbfb in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topVi ew:]
#27    0x8358bbfb in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topVi ew:]
#28    0x8358a4e4 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topVi ew:]
#29    0x83586d4a in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
#30    0x834c4617 in -[NSView displayIfNeeded]
#31    0x032563b4 in dvaui::ui::OS_View::UI_UpdateNow
#32    0x007d4c33 in CPanoProjItem::RenderFrameGuts
#33    0x007d07a5 in CPanoProjItem::RenderFrame
#34    0x007d4746 in CPanoProjItem::Diddle
#35    0x0077f85c in CComposition::CollectMRUDownstreamComps
#36    0x0061bbc2 in CEggApp::DiddleWindowsFrontToBack
#37    0x00620bd6 in CEggApp::Dawdle
#38    0x006b6dd6 in PT_RegisterTracker
#39    0x006d1fa3 in CSwitchboard::DoIdle
#40    0x006d308c in CSwitchboard::IdleTimerFunc
#41    0x00470bc3 in dyld_stub_vsnprintf
#42    0x02d4ce16 in dvacore::config::ErrorManager::ExecuteFunction<void>
#43    0x00662946 in EggMain
#44    0x00662a71 in EggMain
#45    0x02d4bcf5 in dvacore::config::ErrorManager::ExecuteFunctionWithTopLevelExceptionHandler<void>
#46    0x00470cb6 in dyld_stub_vsnprintf
#47    0x81afa952 in __NSFireTimer
#48    0x843a8245 in CFRunLoopRunSpecific
#49    0x800bbd0e in RunCurrentEventLoopInMode
#50    0x800bbaa3 in ReceiveNextEventCommon
#51    0x800bb9ef in BlockUntilNextEventMatchingListInMode
#52    0x834c1e70 in _DPSNextEvent
#53    0x834c17b1 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#54    0x834bb523 in -[NSApplication run]
#55    0x006b6a12 in PT_RegisterTracker
#56    0x00660dcc in SetAPETerminateFunc
#57    0x00661494 in EggMain
#58    0x000043b8 in main
#59    0x00003895 in _start
#60    0x000037b1 in start

 

Any ideas? What could be the issue?

Debugging information cannot be found. Symbols not loaded.

$
0
0

When i try an example project and try to debug it with After Effects, then i get the following error:

 

"Debugging information for 'AfterFX.exe' cannot be found or does not match. Symbols not loaded."

 

Here's what i did. I opened an example project from the "Effects" folder.

 

In Visual Studio 2008 i opened the:

Project properties > Configuration Properties > Linker > General > Output file: I specified this to the plugins directory of After Effects.

 

So the plugin is build into:

"C:\Program Files\Adobe\Adobe After Effects CS4\Support Files\Plug-ins\test"

 

I also went to:

Project Properties > Configuration Properties > Debugging > Command -> "C:\Program Files\Adobe\Adobe After Effects CS4\Support Files\AfterFX.exe"

 

So it automatically debugs with the AfterFX.exe file.

 

It was documented like this in the documentation. But when i do a clean build. rebuild and run, then i keep getting the above error....

 

Anyone any idea what the problem could be...??


How to compile .rc file?

$
0
0

Hi everyone.

 

I'm trying to change a version of my plugin in the .r file, but it does not recompile the resource file - the version number stays the same.

 

I tried copying custom build settings from other project to the .r file, but it doesn't seem to work at all. The .rc file stays the same despite the changes in .r file. If I remove the resource file from the project it is not linked, and if I remove it from the project directory, it says that it can't find the file, and does not compile it.

 

Can anyone help me?

Dependent parameters, keyframing.

$
0
0

I'm looking for some help creating dependent parameters that interact correctly with keyframing/expressions/scrubbing.

 

 

As an example imagine I have 2 float sliders: SLIDER1 and SLIDER2.  I want my effect to copy the value of  slider1 into slider2.  I've discovered the PF_ParamFlag_SUPERVISE flag, so when the user adjusts slider1 I can copy the value into slider2 during the PF_Cmd_USER_CHANGED_PARAM callback:

 

    params[SLIDER2]->u.fs_d.value = params[SLIDER1]->u.fs_d.value;

    params[SLIDER2]->uu.change_flags |= PF_ChangeFlag_CHANGED_VALUE;

 

 

 

That works but fails when SLIDER1 has been keyframed (or uses an expression).  If I add 2 keyframes on SLIDER1 and then just scrub the timeline then PF_Cmd_USER_CHANGED_PARAM is never called.  The supervisor sample just seems to use a non time-varying supervised parameter so that's not so helpful.

 

 

Are there any callbacks/flags/idioms/hacks to create the effect I want?   It's not ideal but I'm thinking about baking keyframes in SLIDER2 whenever SLIDER1 is changed :-(

 

Thanks!

Is there a download link for the CC 2015 version of the After Effects SDK anywhere?

$
0
0

With all this news of updating plugins for CC 2015, I was hoping to find the SDK here so that I could update mine as well. Imagine my disappointment to only find 2014. I think I originally had to use an older version the last time I developed for AE. Has anyone seen it anywhere? Thanks!

Some ideas needed...

$
0
0

Hi All,

 

I've a question regarding AE effects.

 

Let's take an example:

 

If I create a solid layer and apply to it   Generate->Cricle effect the underlying solid becomes transparent.

 

Any ideas how this effect achieved?

 

 

Best regards,

Yuri

How to approach multithreading

$
0
0

Hello. I have created a box blur plugin using the following guide:

http://elynxsdk.free.fr/ext-docs/Blur/Fast_box_blur.pdf

 

Unfortunately it only uses one thread. My question is, would it be easier to somehow modify the code that I have written to make it multithreaded, or would it be easier to remake the plugin using the convolve function defined in PF_WorldTransformSuite1?

 

The SDK mentions that using existing functions is good because they are already optimised for multithreading. Thank you.

Viewing all 73444 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>