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

Custom Expression Functions

$
0
0

Hi,

 

I'd like to know if it's possible to create custom expression functions with the plugin SDK.

 

For example, say I wanted to allow users to enter the following expression: "getThingamabob(2, 'yes')". is there any way to "provide" the "getThingamabob" function from a plugin with the SDK?

 

I've scoured through the SDK guide to see if it mentions anything, but haven't had any luck.


Force an AE undo/redo from a plugin

$
0
0

As the title says, is it possible to force an undo or redo from a plugin?

Didn't find any other function in the API related to undo/redo states except for the AEGP_StartUndoGroup and AEGP_EndUndoGroup;

How to stop AE caching every param change output?

$
0
0

Hi guys,

 

I am working on an after effects plugin  and for now I only have two params for testing purposes. What I am noticing is ae is caching the ouput image for every param change, even just when scrubbing the slider. How can I disable this? Another thing that happens is if I change the param fast it gives wrong ouput (e,g rotating a model will have wrong rotation param applied) and that combined with caching every param change output results in a very glitchy output animation. If I press ctrl and use the slider to change the param than I get correct results but fast param change gives me incorrect result possibly because the param changes so fast that the plugin is unable to render and copy it back to ae buffer within that time?  Or maybe I need to render lower res while the param is changing (scrubbing)? but how do I detect that the param is changing?

 

Trying to solve the param caching problem I have tried both smart render and regular render entrypoint and these flags  and I can't get it to work.

PF_OutFlag_PIX_INDEPENDENT |

PF_OutFlag_USE_OUTPUT_EXTENT |

PF_OutFlag_DEEP_COLOR_AWARE |

PF_OutFlag_NON_PARAM_VARY |

PF_OutFlag_FORCE_RERENDER;

Can we expect a Vulkan/Metal example in the next iteration of the SDK?

$
0
0

I have no clue how to set up Vulkan for AE, and since Apple doesn't support it anymore, it's something to be desired. So what do you devs think? A Vulkan/Metal sample for 2020?

Command Id For Undo

$
0
0

What are the command id for the Undo and Redo.

Can AEGP_DoCommand be used with these ids in conjunction with the AEGP_StartUndoGroup & AEGP_EndUndoGroup?

ECP does not update parameter display names - expected behaviour?

$
0
0

I have what seems to be a bug, in which renamed UI parameters revert to their original names in the ECP.

 

This occurs after the layer to which the plugin is applied is deselected, another layer is selected, and then the plugin layer is again selected.

 

The parameters have the correct names in the Timeline panel, and I can get the correct display names using AEGP_GetStreamName, even when the displayed name in the ECP is wrong. Since this is the case, I can easily set them on each PF_Cmd_UPDATE_PARAMS_UI using AEGP_SetStreamName with their existing display names. But this seems inefficient, and I wonder if I'm doing something else wrong, or this could be expected behaviour, that the plugin is supposed to manage.

Export controller from PP to AE

$
0
0

Hello,

Is there any way to developed export controller for After Effects, like the same for Premiere ?

Or, can be used the export controller *.prm in AfterEffects ?

adobe after effects play button

$
0
0

Hi, Can I use adobe ae play button ? when create something adobe ae using space bar to play video movie etc.So I want to use that play button( in scripting ). Is it possible ?. I don't want to play.onClick function.

Thank you.


AEGP_SetSelection preview render

$
0
0

I want my plugin to select some layers, and in order to do so, I'm using a collection and then the AEGP_SetSelection.

However, I noticed that when I use the AEGP_SetSelection function, a render is forced. Can I avoid this? I just want the layers to be selected in the UI and nothing else.

Command ID for the equivalent of Numpad+0

$
0
0

Anyone knows the ID for Numpad+0 (play preview from the start)?

Since there is no menu for this, the "app.findMenuCommandId" command doesn't help.

Detect dupplicates

$
0
0

Is it possible to know if a light/layer is a duplicate of another one?

 

My plugin creates some connections to lights, and I want to replicate this connections if a light is duplicated. However, I can't find a way to distinguish between a new light and a duplicate.

Reading and writing pixels at X,Y

$
0
0

Hi all;

 

Very new to the SDK but making great progress.

 

I see that using the following function, we can write pixels at a coordinate (as opposed to iterating through every pixel):

 

PF_Pixel *sampleIntegral32(PF_EffectWorld &def, int x, int y){

return (PF_Pixel*)((char*)def.data +

(y * def.rowbytes) +

(x * sizeof(PF_Pixel)));

}

 

And then we call it using:

 

PF_Pixel *myPixel = sampleIntegral32(*output,x,y);

myPixel->red      = 255;

myPixel->green  = 255;

myPixel->blue     = 255;

myPixel->alpha   = 255;

 

But how does one read a pixel at X,Y?

 

Thanks,

-Richard

After Effects CS6 SDK for Windows?

$
0
0

Please help: where can I find the AE CS6 SDK for Windows?

Thank you very much.

Wolfgang

Best Way to Create a Preset Browser Dialog

$
0
0

I'm updating my plugin to make browsing for presets easier. I can either do this as a dropdown menu in the effect itself (easy), or more preferably as a modal dialog box that will show thumbnails of the presets in a tabbed layout. Nothing too complicated, but much more visual than the dropdown method.

 

Forgive my naive question, but what's the best way to go about making one of these for an effect plugin? I'm thinking something like the attached:

preset_browser.JPG

 

I think I have a couple of options:

1) Use the IDE's built in dialog box editor to make one in C++, however this will require two separate pieces of code as I'll need to build for Mac and PC

2) Use an ExtendScript window run it using AEGP_ExecuteScript.

 

The second option suits me better as I have experience in writing script panels.

 

My data would be self-contained - i.e. the number of presets would be fixed with each release of the plugin, and the images static.

 

Does anyone have any wisdom they can impart, including the best place to store the images (I usually encode PNGs into a binary string I can include in the Javascript code so it's all one big text file)? How do you make your preset browsers or equivalent dialogs?

 

Thanks!

ZANZIBAR Hunter logs

$
0
0

I'm getting massive amounts of the following message in the logs of Visual Studio.

<2876> <ZANZIBAR Hunter> <5> ProcessFrom MAIN requested_sync: 92, proj=367

It's very annoying as it makes debugging my plugin much harder.

VS does not allow filtering of debug messages so I'm asking if is there any way of getting rid of this log message.


Hide the Point of a 3D Point Parameter in the Comp/Layer Window

$
0
0

Is it possible to hide the on-screen control handle of a 3D Point parameter in the comp/layer window?

 

point_3d.JPG

 

3D Point param controls don't move relative to a comp camera like lights, for example, nor do they move if their z-position changes, so always stay locked to the screen's 2D space. I can obviously make a custom comp UI (and indeed I have) that will do these things, but the small control will remain, and confusingly move differently to the custom UI handle.

 

As far as I know there isn't a way of disabling this (although I'm often wrong about these things!).

 

I need the 3D Point parameter in the ECW/timeline to remain however, so that they can be scrubbed, or manually entered, and keyframed.

 

Is it possible, and if so, how?

 

Thanks!

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!

Do AEGPs work with aerender?

$
0
0

Hello there. I have a very specific problem. I need to change fonts in an after effects project and render it without opening user interface. I can use only aerender.exe.

Previously I thought it was possible with scripting. So I invested about a month on learning javascript/extendscript. After that I was able to write a script, which could take a font name from external data and change in the project. But the problem was scripts refused to work with aerender. Even if I put scripts in startup folder aerender simply ignored them.

After a research I came across after effects SDK. I looked through it and found a sample project called Text twiddler, which basically could do some manipulation with text layers. Also I found out that AEGPs can run scripts internally. But have no idea if it can be done without opening after effects user interface.

I’m not a programmer, so I’m going to start learning C++ to implement my idea. But before doing it, I want to clarify, if it is possible to write a plugin which will take a font name from an external data (text file) and change text layers in project working with aerender.

Thanks!

Draft quality input layer

$
0
0

Hi guys,

Im building a plugin using region recognition of flat colors. Then I m building up region list by color and gathering it in clusters.

My problem is when using "Best quality" setting, After Effects generate some kind of anti aliased lines that I really dont want to have in my input (it make the number of region considerably bigger). It seems that this anti aliasing process occurs BEFORE the effect computation.

I would like to get an input layer without  the anti aliased lines (i.e in draft mode).

I can render it with aegp suites but it s really slow. I would love to be able to specify when checking out layers the pixels I want and their quality.

Does anyone know how to do it?

Thanks in advance.

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

Viewing all 73444 articles
Browse latest View live


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