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

How to retrieve a text font, text colour, text size from the text layer?

$
0
0

How to retrieve a text font, text colour, text size from the text layer?


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 ?

Issue with applying plugin in non-English version of AE on non-English version of Windows

$
0
0

Hi There,

 

I am encountering an issue related to my plugin and differing language versions of AE.  When I apply my plugin to a layer within a project opened in an English version of AE, everything behaves as expected.  However, when I apply the same plugin, in the same manner, on a non-English version of AE, I get an error message.  I am dealing with this debug process on Windows 8 in Spanish.  Here is the error I am receiving from the the Spanish version of CS6 on Windows8 (Spanish):

 

"After Effects error: no se pudo cargar el plugin "Debug.aex" (126).

 

( 48 :: 46 )

 

That basically says that the plugin could not be applied.  Is there any reason why I might get this error in the Spanish version and not receive it in the English version?  Do I need to setup VS2012 to build in release mode for it to work?  Am I missing something?

 

Thanks,

Arie

Put a picture(like .png)into Composition Window .

$
0
0

Hi,everybody!

Firstly,i have to admit that I did a 'stupid' thing...I am trying to do a simple plugin for 'play'...

Now,i am getting in the trouble.  So i come here for some help.

I want to konw how i can let my plugin put a picture(i have edited) into composition window.(like the plugin'Optical Flares', but i just let my plugin put one picture.)

And i can do some simple adjustment(such as width,height,center).

I am puzzled about the code.If someone can provide an example or way,it will be very helpful.

(I am a CS5 user)

 

Thank You!

build .plugin file

$
0
0

Hi

 

I wrote a small plugin that exports some data from after effects into a .txt file. I used the project dumper example as my base, and now i am trying to figure out how to build it that i can send the .plugin file to some people. Is there a special setup i need to do to create a plugin file that is ready for dist?

 

the plugin works fine when i run it through xcode, i did notice a .plugin file in the debug folder but running that without xcode seem to no export my .txt file

How to default a parameter's twirly to be open?

$
0
0

Hello all,

 

I've read in the SDK documentation that one can set a parameter or a parameter group's twirly to default to either opened or closed.

 

I've seen this paramete flag:  PF_ParamFlag_COLLAPSE_TWIRLY

 

Which seems to be great if you want it to default to closed but I'm not sure how to do the opposite.

 

What am I missing?

 

cheers,

-Gareth

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

How don't use too much memory with undo group, or delete one undo action?

$
0
0

Hi everyone!

 

I am experiencing a cruel dilemma:

 

We developed a plug-in for AE CS6 to export selected compositions to a specific file format (for games...).

The actual developed stuff creates many composition copies to optimize data, animations etc.. to respect AE logic (interpolations etc...), then exports resulting compositions to a file and finally deletes all created stuff.

 

The problem with that way, it creates many undoable actions in an undo-group.

With a complex compositions and sub-layers with lot of images, this can use to more than 7GB only with the undo buffer!!!!

(Optimizations to limit creation of undoable action, like usage of startAddKeyFrames() - endAddKeyFrames(), is used).

 

If I don't use the undo group, the stored undoable actions is limited to history limits (32 by default).

This use few memory (10~20MB) because actions in the undo buffer are deleted one by one, but, unfortunately, the user undo history before exportation is destroyed too!

 

I need to keep the user undo history but I don't want use too much memory while processing.

 

Actually we are thinking to refactor the entire plug-in with a kind of copy of AEGP layer and composition handle and function set, and don't call any AEGP undoable action anymore, but this will take some months...

 

There is no way in SDK or with script to purge or delete (not to undo it) the memory used by one/last undoable action and keep memory clean while processing?

 

Or more globally, There is no way to don't use undo buffer for an undoable action? (So actions are not undoable anymore.)

 

Already tried to use StartUndoGroup(NULL) that create an hidden undo group but this consume memory like any undo group!

 

Thank you for any help


Precision problem, bug? 8/32 bits

$
0
0

Hi everyone.

I am trying to create a Keying effect. So I was trying to understand how after effects works with 8/16/32 bits.

And I ran into a big problem... i wonder if it is a bug of after effects

 

So here i am.

I am trying to be sure that i will get the same result in 32 bits and 8 bits. So if i have some colors in 32 bits it will be rounded to 0-255 values and it should still work the same way.

 

So here is my reasoning.

Get a 32 bits float point value between  0 and 1.

Multiply by 255.

Round up to the closest integer.

 

Should work right?

 

So here is my test.

I compute 1/255 in float. 1/255 = 0.0039215686274509803921568627451

I compute the half of it: 1/255*1/2 = 0.00196078431372549019607843137255

If you had it up you get: 1.5/255 = 0.00588235294117647058823529411765

This last value is important.

It means :

     if i have a value of 0.005882 it correspond to a value of 1 in 8 bits

     if i have a value of 0.005883 it correspond to a value of 2 in 8 bits

     if i have a value of 0.0058 it correspond of course also to a value of 1 in 8 bits

     if i have a value of 0.0059 it correspond of course also to a value of 2 in 8 bits

I give this last two value because from after effects UI, it is impossible to specify input of more than 4 digits when creating a color (you can input it but it will be ignored), which by the way is crazy, since it means a precision inferior to 16bits... but that s another discussion.

 

So here is my experiment:

-in 32 bits mode create a layer with a color of 0.0058

-in 8 bits mode, look at the info panel: you will see a value of 1, great.

-in 32 bits mode create a layer with a color of 0.0059

-in 8 bits mode, look at the info panel: you will see a value of 2, great.

So at that point i think: i m right! Great.

 

But since i m picky, i say: i need to check the 5th and 6th digit, to be sure i get the full precision in 32 bits and that my keying threshold will be really precise

So i decided to use tranparency to check it out.

-in 32 bits mode create a layer with a color of 0.5882

-change transparency of the layer to 1%

-create a full black layer under the layer and precomp

-look at the info panel for a color in the precomp: you will see a value of 0.0058, as expected.

-now go to 8 bits mode, look at the info panel: you will see a value of 2. oh oh...

I am in trouble,

I tried something even more tricky, because i said: maybe there is some rounding messed up after the 4th decimal, it should be 1 for 0.0057 right?

so i repeat the process:

-in 32 bits mode create a layer with a color of 0.5700

-change transparency of the layer to 1%

-create a full black layer under the layer and precomp

-look at the info panel for a color in the precomp: you will see a value of 0.0057, as expected.

-now go to 8 bits mode, look at the info panel: you will see a value of 2 again. oh oh...

I am in big trouble,

 

Can anyone find a rationnal explanation for what s happening to me? I tried to explain that by, computation before precomp is done in 8 bits so some rounding happens somewhere... but using the number i could not get to the number 2 anyways...

So is it a bug? and how should i expect After Effects to work??? so that i can write a real color key effect

 

This has been tested on After effects CS5.5.

 

Best Regards

Extending Extendscript with C

$
0
0

I need to expose some C code to ExtendScript and I'm stuck.

 

The After Effects Scripting Guide doesn't say much about that topic, but the JavaScript Tools Guide does (both are downloadable from the After Effects Developer Center). The latter isn't specific to After Effects.

 

So it's no surprise that symbols referred to by that latter document such as kTypeInteger or TaggedData are not defined in a header belonging to the After Effects SDK.

 

I would suspect there to be another SDK, an ExtendScript SDK - but I can't find it. (EDIT: The second document indeed refers to an "Adobe ExtendScript SDK", but where is it!?)

 

Does somebody know?

 

My ultimate goal is to enable functionality for After Effects scripts that can't be done with scripting alone - such as accessing the clipboard and other things.

Having trouble linking dll file

$
0
0

Hey guys,

I'm having trouble linking a third part dll file in visual studio 2013.

I'm using a third part library called "tinyXml2" to parse xml file in my plugin. Here's my folder structure"Adobe After Effects CS6 Win SDK\Examples\AEGP\ServerRender\Win\tinyXml",

my project file is in the "Win" folder.

In my "tinyXml" folder I have 3 files "tinyxml2.dll", "tinyxml2.h" and "tinyxml2.lib".

I use "#pragma comment(lib,"tinyXml\tinyxml2.lib")" to link the lib file

but it doesn't work, I still get "error LNK2019" and "error LNK2001" errors says the compiler can't find the methods I'm using.

I have set the "Project Properties --> C/C++ --> Code Generation-->Runtime Library" to "/MT" too

 

Do you ever running into such problem before?  Please help me !!!

Premiere Pro never sends PF_Cmd_SEQUENCE_SETDOWN when project is closed?

$
0
0

(Posting in AE SDK because the PPro forum said to post questions about here if it's a plugin using the AE SDK).


I'm working on a video filter plugin written with the AE SDK which is supported on both AE and PPro. Testing with PPro CC, Mac OS 10.9.

 

We need to know when our plugin is no longer being used in the GUI. A basic case is, the user chooses New Project and the project that was using our plugin is closed.


AE sends us a PF_Cmd_SEQUENCE_SETDOWN when this happens, but the same plugin in Premiere Pro never sends that. In fact, Premiere Pro never sends any command to our EntryPoint function when the document is closed or a new document is created.

 

Has anyone else seen this, and is there a way to make it work, or (as a workaround) some reliable way to know the state of the plugin usage in Premiere Pro?

 

TIA,

Christopher

Newbie can't get plugin to show up in Effects menu

$
0
0
I really am an experienced software engineer, but this plugin stuff is baffling me. I've built a couple of the sample projects in the SDK and moved their .AEX and .R files (and .RC files, out of superstition) under the After Effects application folder, but none of the expected plugins show up in the Effects menu. Anyone have any ideas on what detail I'm overlooking like a rookie?

Can I set the blending mode of a layer?

$
0
0

Helo!

 

My plugin creates some comps and layers. I need to set some of that layers in "Add" blend mode, to ease some tasks. Is this possible? I try this but it doesn't work:

 

 

          AEGP_LayerTransferMode mode;
          mode.flags = AEGP_TransferFlag_RANDOMIZE_DISSOLVE;
          mode.mode = PF_Xfer_LINEAR_DODGE; //PF_Xfer_ADD
          mode.track_matte = AEGP_TrackMatte_NO_TRACK_MATTE;
          suites.LayerSuite6()->AEGP_SetLayerTransferMode( myLayer, &mode );

Plugin crashing by R6025: pure virtual function error

$
0
0

Hi,

 

I've been writing an effects plugin for After Effects CS3, and encountered an assertion error saying "R6025: pure virtual function".

I did some research on this, but I have no idea why this is happening. Is there any way I can avoid this problem?

 

What I am doing is the following:

 

1. Create a temporal layer by calling RenderSuite2()->AEGP_RenderAndCheckoutFrame(renderOption, NULL, NULL, &temp)

2. Copy the pixels of the temporal layer to the output layer by PF_COPY(temp, output, NULL, NULL).

 

The assertion occurs when PF_COPY is called.

The same assertion occurs when I try to copy the pixels via Iterate8Suite1()->iterate(),

but is OK when I copy pixel by pixel in a normal for-loop.

 

The thing that's giving me headaches is that this assertion error does not always happen.

I m repeating creation of temporary layers and iterations process some times. I tried to add another temporary layer and then it begun to crash.

I suspect some kind of memory issue.

 

I would like to know the cause of this assertion, and the way to avoid this (if any).

Thank you.


can popup mfc dialog from plugin in PF_Cmd_DO_DIALOG?

$
0
0

how to popup mfc dialog from plugin in PF_Cmd_DO_DIALOG command?

 

there are too many parameter to adjust,

 

so what to use popup dialog to show the solo parameters.

 

is there any way?

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!

AEIO_FileExt

$
0
0

Hi all,

I am writing an AEIO plugin.

I would like to set the file extension to 4 characters : i.e .webm

but AEIO_FileExt's is a constant A_char extension[3];

(i.e AE will show file type as .web)

any suggestions?

 

Thanks!

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.

Full Size Layer

$
0
0

Hello,

 

What i am trying to do:

I am trying to render some distance functions from an alpha channel.

For that i run a distance transform on the alpha channel.

 

The problem:

when composition size is smaller than the layer size, after effects decides in preRender stage of smart render, to give me an input request of : composition size + 20 % more pixels.

The max_result_rect is the size of the layer... fine.

But when i do my  checkout of layer pixels in smartrender, i get only a portion of the input layer equivalent to composition size + 20% more pixels.

ERR(extraP->cb->checkout_layer_pixels(in_data->effect_ref,   IN_LAYER, &input_worldP));

 

 

This can be enough... but not always, depending on my distance function i may need the FULL layer.

So I read the SDK guide and it says that i should specify the region i need in rendering at prerender stage.

So i tried something like:

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);

    //TODO: optimize to make it visible data + threshold

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

    UnionLRect(&fullLayer, &req.rect);

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

                                    IN_LAYER,

                                      IN_LAYER,

                                    &req,

                                    in_dataP->current_time,

                                    in_dataP->time_step,

                                    in_dataP->time_scale,

                                    &in_result));

  

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

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

  

    return err;

}

 

 

Then i get an error at execution, telling me that output rect can not be bigger than input->output_request...

How am i supposed to tell After effects that his rough evaluation of what pixels i need in the input layer is NOT big enough?

 

 

It seems obvious to do ... but i tried to modify the rect... nothing worked to give me after the checkout the full size layer i need...

 

If anyone can point my mistake i would be happy

Viewing all 73444 articles
Browse latest View live


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