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

AEGP_GetEffectLayer returns error 515 in PPro CS4.1

$
0
0

Hi,

 

I'm trying to bring a plugin that we have working on AE CS4 over to PPro CS4. I can't seem to get a layer handle in the latest PPro - though I'm fairly sure this code worked in PPro 2.0

 

if (! in_data->pica_basicP ) return;
      
AEGP_PFInterfaceSuite1*    i_pf_interface_suiteP = 0;       
       
if ( 0 != in_data->pica_basicP->AcquireSuite(kAEGPPFInterfaceSuite, kAEGPPFInterfaceSuiteVersion1, (const void**)&i_pf_interface_suiteP) ) return;
       
AEGP_LayerH    layerH = {0}; A_Err err;
if ( (err = i_pf_interface_suiteP->
AEGP_GetEffectLayer(in_data->effect_ref, &layerH )) == 0 ) {

//... do stuff...

}


The call to AEGP_GetEffectLayer is giving back an error of 515. I can't look up the code using AEGP_GetLastErrorMessage as PPro doesn't seem to provide a AEGP_UtilitySuite, and I can't find this error code in the SDK headers (I'm using the AE CS3 SDK).

 

Can anyone help?

 

thanks,

Hugh


Reload plugin after building...

$
0
0

Would like to enquire about "SLICK DEBUGGING TRICKS" in After Effects SDK Guide (in pdf) for AE CS5 (version 10). Perhaps somebody is successful following the steps!?

I see a few problems as follows:

 

1) AE application keeps a file lock on Filter plugins (or plug-ins)

 

even if one could overwrite an effect plugin when AE process is running...

 

2) Purge All (in menu Purge -> All or Ctrl - Alt - key '/' on the numpad) does not reload the plugin; in fact this is being called in the following order:

    PF_Cmd_FRAME_SETUP,
    PF_Cmd_RENDER,
    PF_Cmd_FRAME_SETDOWN,

no request for PF_Cmd_GLOBAL_SETUP or PF_Cmd_GLOBAL_SETDOWN is made. also this thread already mentions it: http://forums.adobe.com/click.jspa?searchID=3907456&objectType=2&objectID=1798812

 

 

3) VS does not allow Edit & Continue or x64, and CS5 seems to be x64 only - how could you make use of this functionality? or documentation does not seem to be updated completely for SDK for CS5?

 

Greetings

 

mike

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

Unable to open resource file

$
0
0

Somehow in my development efforts I did something that makes After Effects put up a message when it starts saying "Unable to open resource file SmartyPants.plugin 3::54".  I have been struggling with effects based on SmartyPants and even tried at one point to build an older version of SmartyPants.  I can just click OK and After Effects carries on, but since I am starting it over and over again during the day, I'd like to get rid of the message.  I have used Finder to remove every file on my computer with SmartyPants in its name and I have uninstalled and reinstalled After Effects.  I still get the message.

 

Does anyone know what is causing this message and how I can stop it?

Getting After Effects version name

$
0
0

I need to identify the version of AE my plugin is running on. I can get the version number using major and minor versions from the PluginMain function.

However, I need the version String, like "After Effects CC 2017", "After Effects CC 2018", etc. I need this because I have to create a list of user presets, and for that reason I have to know the full path to the user presets so I can look for ffx files in there.

Effect control elements (Reset/Clear/Register/About)

$
0
0

Hi all,

 

There are links "Reset" and "About" near my plugin on the Effects Control Panel. But for some effects I noticed other links (at least "Register" and "Clear"). What is the correct way to add or remove these control elements? Is it possible?

 

Thanks!

Building error: cannot open Skeleton.aex

$
0
0

Hello, I am a very junior programmer so probably my mistake is very dumb, but I could not find and fix it.

I have: Adobe AE CC 2017 Win SDK, Visual Studio 2015.

Problem: when I try to build Skeleton project (or Build All solution) I get this error:

skeleton error.png

Is my Visual Studio failing to work with .aex files? Or it can be that I need to set some paths differently (I haven't changed anything in SDK solution)?

Breakpoints in Xcode 9

$
0
0

I'm having trouble making breakpoints work in Xcode 8 or 9.  They don't seem to function after I edit the code.  At first I thought I was changing something in the code that made the effect never render, but if I restarted my computer, deleted and re-selected the breakpoints in Xcode and then deleted my preferences when I started After Effects, then the breakpoints would work again (for a while).  Does anyone have any suggestions for where I should look for the cause of this problem?  Does After Effects store permanently the effect plugin in some way that means cleaning it and rebuilding it in Xcode does not completely replace it in After Effects?  Is there some setting in Xcode that I must be overlooking?  For instance if I attach to the process of After Effects do I also have to have After Effects selected as a custom executable for the Xcode project?

 

Any suggestions would be greatly appreciated.

 

Thanks.


how to purge all memory?

$
0
0

I'd like to purge all memory in plugin code.

is there any method for that?

 

 

Thank you.

How to pass string param to After Effects c++ plug-in?

$
0
0

Hi All,

I am new in After Effects. I just want to know, Is there any way to pass string parameters to After Effects plug-in from outside the application? Or is there any sample project or help file which I can refer?

 

Thanks,

Siddhesh

Create Puppet Pin programmatically

$
0
0

Hi all,

 

I'd like to ask whether is it possible to create puppet pins programmatically...

 

I have tried to copy stream structure ("ADBE FreePin3", "ADBE FreePin3 Mesh", "ADBE FreePin3 PosPin Position", ...) of manually created pins with

corresponding values, but when I create streams this way they are disabled (AEGP_DynStreamFlag_DISABLED - and greyed out in UI).

 

I suppose that the vertex index "ADBE FreePin3 PosPin Vtx Index" is just an index to the array stored internally as arbitrary data so the mesh and pins must be created somehow before setting these values.

 

I've found this thread where they try to do the same thing using scripting (also without success  )Create Puppet Pin on existing mesh via scripting

 

I have some ideas about how this could be done using SDK, but all of them involve diving in very dark waters..

- call the EffectSuite::AEGP_EffectCallGeneric method with fake mouse click events (PF_Cmd_EVENT) or some direct PF_Cmd_COMPLETELY_GENERAL commands if the FreePin effect supports it

- use "FreePin Suite" - which is not a part of public SDK but can be aquired using AquireSuite... - but as it's not public I suppose it operates with memory which is not so safe to touch even if I managed to get/create proper header file for this suite

 

Maybe there is a simple elegant way of creating these pins which I completely overlooked, so I would be really thankful for any suggestions

 

Thanks a lot!

 

Martin

AEGP communicate with CEP/ScriptUI?

$
0
0

I am building a "Properties Panel" plugin, which would be a panel that displays property info about the selected layer, also enabling the user to adjust these values directly from the panel.

 

I've been reading here in the forums and it seems the recommended method of doing anything with panels is the CEP/ScriptUI route. However, I will need AEGP functionality, so how do I get the AEGP and the CEP/ScriptUI to talk to one another?

 

For example, I will need the AEGP to listen for layer selection events, which is not possible with CEP/ScriptUI. Upon layer selection, the panel should populate with UI elements corresponding to layer properties (much like the Effects Control Panel, but for layer properties).

 

I know AEGPs can execute scripts, but can they can actually pass information back and forth (or even in just one direction)?

 

Any advice at all would be greatly appreciated.

 

Thanks,

Tom

checkout different layer

$
0
0

     hi,everyone!

     I'm now facing a problem about checkout different layer data. I have read the example project "checkout",and I can get frames of a video in different time using PF_CHECKOUT_PARAM. In this example, I also see a function PF_CheckoutLayerChannel which can get the data PF_ChannelChunk chunk, but I know little of PF_ChannelChunk from the After_Effects_SDK_Guide, so as the datatype PF_ChannelRef and PF_ChannelDesc. What I want to do is input two different videos in AE and get the correspondding frames of them seperately, How can I do it ?

     Any suggestions are welcome!

     Thank you!

my plugin can be loaded in my machine,but cann't be loaded in other machines

$
0
0

i put my plugin in the AE's plugin dir,my plugin can be loaded by AE and it acts normally,but i put my plugin in AE's plugin dir in other machines(x64),it cann't be loaded normally,the error code is 193(win10) and 126(win8).what's the problem? thanks in advance.

Best way to add a text input parameter to an effect plugin?

$
0
0

I'm trying to write a plugin that will generate formatted text (among other things) according to certain rules. The thing is, how do I get the text input in there... do I have to use PF_Param_ARBITRARY_DATA for this or is there an easier way? Also, if I were to create it using arbitrary data, could I support Unicode characters in that input field?

 

Thanks!


Checkout a layer with collapse transform

$
0
0

Does anyone know how to checkout a layer whose size is retained its original layer size regardless of collapse transform?

I try to write following codes at PreRender but it does't work. The size of resulting layer is always smaller than one of the original layer. 

 

static PF_Err

PreRender(

  PF_InData *in_dataP,

  PF_OutData *out_dataP,

  PF_PreRenderExtra *extraP) {

 

 

  PF_Err err = PF_Err_NONE;

  PF_RenderRequest req = extraP->input->output_request;

  PF_CheckoutResult in_result;

  AEGP_SuiteHandler suites(in_dataP->pica_basicP);

  PF_LRect fullLayer = {0, 0, in_dataP->width, in_dataP->height};

  UnionLRect(&fullLayer, &req.rect);

 

  ERR(extraP->cb->checkout_layer( in_dataP->effect_ref,

  LAYER_PARAM,

  LAYER_PARAM,

  &req,

  in_dataP->current_time,

  in_dataP->time_step,

  in_dataP->time_scale,

  &in_result));

 

  extraP->output->flags = PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS;

  UnionLRect(&in_result.result_rect, &extraP->output->result_rect);

  UnionLRect(&in_result.max_result_rect, &extraP->output->max_result_rect);

  return err;

}

 

I really appreciate all of your help.

After Effects error: Time argument is out of range.

$
0
0

QQ图片20160401125205.pnghi,all:

      i've written a keyframer plugin.the AE often prompt a dialog(which shows "After Effects error: Time argument is out of range.") when the plugin deletes some keyframes and inserts lots of keyframe.i checked out the time argument and found the time is valid.on what condition the AE will promt the dialog?

 

     thanks advance

Would like to hire an AE developer to tutor me

$
0
0

Hello

 

I'd like to hire an AE developer to do tutoring over Skype. Please send your name and rate to jameswhiffin@gmail.com. I have been receiving c++ tutoring and am currently experimenting with the supplied example plugins. Thank you.

Images and Installers

$
0
0

If I want to include graphic elements, e.g. bitmap images or custom mouse pointers where should they be located on disk?

 

Is there a way to include them as part of the .aex or .plugin file, or should they be loose in the plugins folder alongside the plugin files themselves?

 

If it's the latter, do you guys use an installer for putting everything in it's correct place? If so, any recommendations?

 

Thanks.

How to interface with After effects from external application

$
0
0

I have a midi (Mackie compatible) controller (jog wheel, sliders, encoders, display’s), and I want to control Adobe after effects with it.

 

The way I see it:

 

[MIDI CONROLLER] <===> [MY PROGRAM] <===> [After effects]

 

So my program needs to communicate bidirectional with the midi controller and after effects.

 

My main programming experience is Delphi (pascal language), and would like to develop the program in it. But if this is not possible or another language is more suitable than I’m willing to develop it in another language. I’ve some experience with C, Javascript, Php, Phyton.

 

The [MIDI CONTROLLER] <===> [MY PROGRAM] communication won’t be a problem, I’ve done this before and there is enough information on the internet.

 

The problem is communication with After effects. I don’t know where to start and I would really appreciate it if someone could give me some pointers how to handle it. I won’t mind if I need to run a script inside after effects to communicate with my program, but I don’t want the script to talk directly to the midi controller. (In a later stage I want to make the program compatible to other applications as well.)

 

There are several programming options inside after effects. You have the basic expression scripting, but these only affects the scripted layers (design elements). You also have scripts, and maybe this can communicate with a secondary application outside after effects. And I believe there is some kind of api, but I really don’t know nothing about it. The information and sample’s on the internet is sparse about this topic.

 

What do I need:

 

I want to know and control thinks like:

 

- the current timecode

- the opacity of selected layer

- the rotation of selected layer

- the scale of selected layer

- Preview / slice layer / select layer etc.

 

 

 

And it would be great if I can get some interrupt if one of these changes.

 

In my search I found a new device that can control these parameters:

https://palettegear.com/

 

That’s exactly what I want to create, only instead of a closed controller, I want to use universal midi controllers. So it seems possible, I only need to know how they did it.

Viewing all 73444 articles
Browse latest View live


Latest Images