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

After Effects error:creating resource file on Windows

$
0
0

Hi

 

I have a problem with a set of plugins we are developing. We have about 20 different plugins. But after I apply the 10th plugin, it gives the following error on Windows only (CS6):

 

After Effects error:creating resource file "....aex" ( 3 :: 0 )

 

I can have as many instances of the same plugin but once I have a total of 10 different then this error always comes up

 

One thing that is being enabled in the plugin is this flag:

PF_OutFlag_KEEP_RESOURCE_OPEN

 

Is this the culprit?

 

Thanks in advance

DonJ


After Effects crash when calling ProjSuite5()->AEGP_OpenProjectFromPath

$
0
0

I'm running 12.2

 

I have code that opens a project.

The only time this code doesn't make after effects crash is in the ImportFile command method; however, I'm trying to run a server ontop of my plugin so I can control after effects remotely.

AEGP_ProjectH projH = NULL;

AEGP_SuiteHandler suites(S_sp_basic_suiteP);

A_UTF16Char templatePath[AEGP_MAX_PROJ_NAME_SIZE];

const wchar_t* wide_templatePath = L"C:\\Projects\\TT1.aep";

copyConvertStringLiteralIntoUTF16(wide_templatePath, templatePath);

ERR(suites.ProjSuite5()->AEGP_OpenProjectFromPath(templatePath, &projH));

 

 

I click debug and hook into visual studio and it's saying.

 

Unhandled exception at 0x000000003201B840 (Projector.aex) in AfterFX.exe: Stack cookie instrumentation code detected a stack-based buffer overrun.

 

 

I've even tried registering into the IdleHook and it still crashes.. Any ideas?

Executing AEGP from javascript

$
0
0

Hello guys,

Thanks to Sacahr I understood how to execute Javascript from AEGP.

There is two main problem to this method:

-the aegp execution goes on without waiting the end of parameter setting through UI

-getting the parameter values from the UI is hard not impossible though

 

So I was thinking about an alternative which would be to execute my AEGP plugin from the javascript.

Is there a way to do that? I looked into the docs and could not find any method for that.

Visual Studio 2010 with After Effects SDK?

$
0
0

The documentation explicitly references Visual Studio 2008 .NET (version 9.0) SP1 for Windows 7 (64).

 

Is Visual Studio 2010 supported as well?

how to install AE SDK in visual studio ultimate 2010

$
0
0

Hi,

      I want to make plugins from visual studio ultimate 2010 and i don't know how to integrate my visual studio with AE SDK it's like they are just files no package of setup so i can click and install but i guess i have to configure the sdk,i am working with android sdk in eclipse but don't know how to use this one.

 

BTW i am a new programmer and learning this cool new language and also doing job with after effects and 3ds max for past 5 years.

 

Help would be greatly appreciated.

 

 

Thanks

Odd stripey artifact in my pulgin's output

$
0
0

Hey everybody,

I've been experiencing an unpleasant bug in many of my plugins where I get an unpleasant stripey artifact in the output.

This happens in my plugins which involove several PF_ITERATE steps and some fast blurring. What it looks like is for certain rows of the image, an operation or two is skipped and not applied to those pixels.

It tends to happen when we're changing the value of a parameter with a slider or some such control and After Effects is rushing to complete the operations and something gets dropped at some point. These artifacts tend to go away when I turn the effect off and back on again but I'm not confident that it won't keep cropping up. Has anyone seen this type of behavior? Anyone hava an explanation/solution?

 

Any help is appreciated!

 

P.S. I'll try and post some screenshots later...

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.

AEGP_RenderQueueState_RENDERING status ignored on AE CC

$
0
0

I need to detect in my plugin if the composition in the rendering process.I use it like this:

 

    AEGP_SuiteHandlersuites(in_data->pica_basicP);

    AEGP_RenderQueueState  rqState;

    suites.RenderQueueSuite1()->AEGP_GetRenderQueueState(&rqState);

 

    if(rqState==AEGP_RenderQueueState_RENDERING){

 

        ///do smth

 

    }else{

 

      ///do smth

    }

 

it works great on AECS6 but on AE CC it skips to "else". Has something changed for AE CC?Anybody has any info realted to it?

 

Thanks.


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

My plugin just stopped loading (Windows)

$
0
0

Hi all.

 

I've recently taken over a codebase for an AEGP plugin. I am also new to AE in general. I've written a bunch of plugins for 3DSMAX over the years so I have some knowledge about how DLLs work and so forth but this one stumps me.

 

When I first arrived at this new gig, the debugging process went something like, "compile the stuff, then copy the AEX and the PDB to Support Files\Plugins, then copy other DLLs to the Support Files directory." I thought that was error prone and tedious at the very least so I set up symlinks (using mklink in a batch file) so that I could iterate on the plugins, leave them in the output folders and then AE (both CS6 and CC) would be able to automatically have the most recent build. This worked great. For two weeks.

 

Then a week went by where I didn't use AE or work on the plugin. Who knows what all changed in that time; a lot no doubt since I work on a big team but the plugin doesn't rely on any "external" code that might be getting changed. However, the plugin no longer loads.


As in, I open Process Monitor and the AEX file is not even touched. AE appears to be iterating the directory but then choosing not to even look at my plugin.

 

I undid the symlinks and manually copied all of the files. Same behavior. I copied the plugin from someone else and it loads but gives one of those errors that makes no sense; I haven't looked at it further because it's enough to know that there's something in my build that's just making the plugin get skipped.

 

I looked at the files (his and mine) in depends.exe and they both have an entry point named the same (EntryPointFunc per the sample plugins). I even rolled my code back to the last point in time when I know that it worked and got the same behavior.

 

I looked, just to be sure, and my VirtualStore folder is empty. At least, it appears to be. I'm not really sure how that works but let's just say I'm really bummed that there's no way to configure the plugin folder inside of AE.

 

I'm sort of at a complete loss as to how to diagnose this. Do any of you pros who've been at this a while have any tips for sorting this out?

 

While I'm at it, I have six folders in %APPDATA%\Adobe with "After Effects" in their names; all but one have some "garbage" unicode character prefixing the text "After Effects" and inside of each of them is a folder with a version number (i.e. 11.0 or 12.0) and inside all of the garbage-looking folders' version folders is a file called AfterEffects##.ini, where ## matches the version. (These folder names are not confidence inspiring.)

 

I just noticed the Plugin Loading.log in %APPDATA%\After Effects\11.0 and it has no mention of my plugin. Again- my plugin had been loading just fine. It just ... stopped and I'm not sure how to diagnose it from here.

 

TIA,

-tom!

AE SDK XCode 5

$
0
0

Hello

 

I recently installed XCode 5 on my OS X 10.9. Suddeny i having problem compiliny ma projects. I also tried the example Projects but non of them seem to work. Is there a solution ? Will there be an updated SDK ?

Using to Drawbot to render

$
0
0

Hi Shachar and everyone!

 

I have a simple question: is it possible to use Drawbot during the Render call and / or render what's drawn on the layer / comp?

 

Thanx,

François

Expanding Text Layer Size

$
0
0

It has been a while since I have asked a question so bare with me as I have been taking a break from AE development for a while

 

Below are two images that show the standard blur effect in After Effects

 

http://i.imgur.com/WGhsbUF.jpg

 

http://i.imgur.com/CGI3EkY.jpg

 

Notice how the blur effect is going outside the boundries of the layer the effect is being applied to (text layer).  My starting question is how this type of functionality can be achieved in a SmartFX plugin.  I have been messing with the max_result_rect, etc in the PreRender call trying to expand the area I am working with but have not been having much luck.  So before sinking too much more time into this I figured I would pose the question in case one of the other developers on here have looked into this before

 

Thank you 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

Bug related to text-layers when my plugin is applied.

$
0
0

Hi There,

 

I've encountered a bug with my effect plugin that I've been able to reproduce step by step, but am unable to fix it.  I thought I would post the question here to see if anybody could help

 

The problem is that a text layer with my effect will not allow me to type more than one character when it's in edit mode.  So, I apply my effect to a text layer, but then I decide I want to change the text layer.  I double click on the text layer and after I type one character the text layer exits out of edit mode.  I have to double click the text layer to get it back into edit mode.  So annoying, and users wouldn't appreciate that either. 

 

If I disable the effect then the text layer enters and exits its edit mode normally and gracefully.  Obviously, it's my plugin if disabling it solves the problem.

 

So, I want to fix it but where would I start the debugging process?

 

Thanks for your time and help!

 

Best,

Arie


Version of PF_ITERATE for 32bit (float) data?

$
0
0

Hello all,

 

I've been using PF_ITERATE and PF_ITERATE16 for all my iterative needs.

 

I figure there must be a 32-bit version, or at least a way to do the same thing with float pixels...

 

Anyone knoe the mystic secrets??

Save data to current project.

$
0
0

Hi, everyone,

 

Now I am working on an After Effect plugin.

Here is what I want to do.

First I apply my plugin to a layer of a project. Then I can change some settings of the plugin.

I want to save some data (like global data, not gui parameter data) to the current project when the project is saving.

So next time when the project is loaded, I can retrieve the data to my plugin.

How can I do it?

Thanks a lot for your help.

i have started to try to write a plug-in,but i am in trouble

$
0
0

After a long time study,i start to write a plug-ins.I try to write the plug in this website [removed by moderator]

But,i am in trouble now.There are many different place ,because this plug was written in 1999.

If someone can correct the code for me,so that i can compare to learn.Or someone has finsh this piug can show me the code to compare mine.

This link is the unfinished plug(in the skeleton)

Manually trigger PF_Cmd_USER_CHANGED_PARAMS event

$
0
0

Hi!

 

I'm quite new to AE programming and I have a problem with updating the UI controls.

 

In particular, i have 2 float sliders that are the input parameters for my application. However, if the silders are in default position or the application is called for the first time, these paramters are determined automatically within my application. So, when the parameters are computed automatically (and not set by the user), I want to updated the corresponding controls in the UI. As the documentation states that parameter values should not be changed in the PF_Cmd_UPDATE_PARAMS_UI command, I want to updated the values in my ParamsChanged() routine, which is called if the PF_Cmd_USER_CHANGED_PARAM event is triggered.

 

So, i want to ask, if there is a way to manually trigger the F_Cmd_USER_CHANGED_PARAM event? Or am I completely on the wrong track?

 

I am grateful for any hint!

How to install AEX in Premiere Pro 2.0?

$
0
0
Hi,

I copied my AEX (effect plugin) file into the following folder:

Adobe Premiere Pro 2.0\Plug-ins\en_US

and then started Premiere. But my plugin was nowhere to be found. Are there some installation steps required?

Thanks,
Neil
Viewing all 73444 articles
Browse latest View live


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