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

Live Update - how to know if its on?

$
0
0

Has anyone ever required to find out if current render call is during live update or not?

 

I would have imagined that it should be available at AEGP_GetCompFlags(), but its not!

 


In such case a smaller size image is usually passed to the render, but for small enough layer/comp sizes (e.g. 700x500) AfterFX thinks you are good off with such a size, and most importantly you cannot tell if Live Update button is pressed!

 

 

greets

mike


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?

Does Adobe Pixel Bender work with AE CS6/Premiere Pro CS6

$
0
0

Hello All,

 

I want to create a GPU accelerated video processing plugin for After Effects/Premiere.

 

I just came across Adobe "Pixel Bender" here:

 

http://www.adobe.com/devnet/pixelbender.html

 

It seems to Pixel Bender allows you to code for the GPU in a GLSL-like programming language.

 

Can I use Pixel Bender in an After Effects/Premiere Pro CS6 plugin?

 

If not, how do I go about using the GPU in an AE/Premiere plugin?

 

Thank you very much for any Help,

 

                                                                Sumo B.

Calculating the blending ratio

$
0
0

Hey guys!

 

I'm trying to blend two images together using the WorldTransformSuite->blend function. I want to be able to control the blending ratio with a slider. Now, I looked into the AE_EffectCB Header where this function is defined, and a comment behind ratio states that 0x00010000 makes source 2 fully visible. Now I'm trying to figure out to calculate this number. It seems to be a weird blend of hex and binary...anybody know how this is done? It's propably super obvious and I'm just missing something

 

Thanks in advance,

Markus

Detect parenting event

$
0
0

Hi!

 

Is there a way to detect when user sets parenting on a layer?

PF_Event   may be?

 

Thanx,

François

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.

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

Flattening Data for Sequence Data & Arbitrary Data, is this so different from serializing data?

$
0
0

Howdy folks,

 

I have an effect plugin that needs to store persistent data.  I've read all the forum threads I could find discussing flattening/unflattening data, the SDK sections discussing this, as well as many external sites  discussing serializing data.   I've got a few questions, they aren't explicitly SDK related, so sorry in advance if this ends up being a bit broad.

 

It seems to me, that flattening data is essentially the same task as serializing data.  I'm using STL vectors to store data while my effect is doing its thing.   Obviously these cannot be stored/flattened due to their internal structure and use of pointers.  My current plan is to convert my data struct to JSON text, reserve a handle of proper size for the JSON, and memcopy the JSON data into the reserved memory space.

I'm sure there will be a performance hit when converting my data struct to JSON (and vice versa) but I found a terrific little JSON library that handles most of the work for me. 

Is this a terrible idea? 

I've read that Boost has a good serialization library, have people used it for the task of flattening/unflattening data in effects plugins?

 

Finally, my really stupid question:

In the SDK example of flattening data, they show an example where the sequence data struct contains a char pointer.  When they flatten the data, they use a different struct that has replaced the char pointer with a char array of a fixed size.  If I wanted to do something similar, how would one actually go about doing this when a portion of the struct has an arbitrary size (IE: the number of elements in my vector changes depending upon user settings, its parent layer, and other factors).  It seems to me that you have to do all the legwork of serializing data to accomplish this task (unless you set the fixed size of the flattened data array to be bigger than any user will ever need, which sounds like a bug/error waiting to happen).

 

thanks!

-Andy


Users receiving error: Couldn't find main entry point for myPlugin.plugin (48::72)

$
0
0

Hello all,

 

I've recently released a plugin into the wild and a few (1/20) people have been receiving this error.

 

A cursory search on that code doesn't really give me a lot of helpful information about what, if anything, could be going on in my code to generate it.

 

Maybe it has nothing to do with my code, and rather is a system configuration thing, but I'd like to know that for sure.

 

I've got one guy with this system:

OS - 10.6.8

AFX CS5

AFX CS3 + CS4 are also installed on the system


and another:


OS X 10.7.5 Mac Pro 2.66 ghz quad core
14 GB RAM
AE version CC (12.2)

 

Any ideas..?

CreateNewFolder: Mismatch between SDK function and documentation

$
0
0

Hi,

 

There is a mismatch between SDK documentation and actual API function.

 

SDK Documentation:

Creates a new folder in the project. The newly created

folder is allocated and owned by After Effects. Passing

NULL for parent_folderH0 creates the folder at the

project’s root.

AEGP_CreateNewFolder( 

          const A_UTF16Char *nameZ, 

          AEGP_ProjectH  projH), 

          AEGP_ItemH  parentH0), 

          AEGP_ItemH  *new_folderPH);


On the other side, the callback declaration looks slightly different:

SPAPI A_Err (*AEGP_CreateNewFolder)(

const A_UTF16Char        *nameZ,                                /* >> null terminated UTF16 */

AEGP_ItemH                        parent_folderH0,                /* >> */

AEGP_ItemH                        *new_folderPH);                        /* << allocated and owned by AE */



So the question is: what's teh parent_FolderH0 and how do I get it?


Best regards,

Yuri

 

         


Layer_parameter doesn't trigger any call

$
0
0

Hi!

 

my plugin's using position path from a null layer. I select this null with a Layer_parameter.

However, I don't get any call when this path changes... even with WIDE_TIME_INPUT set.

 

The 'solution' I have is with a slider parameter, checking the X value of this path via expression. If the path changes, the slider change too and triggers a re-render (this is not ideal, as value can change at a time and not another... and I can't guess what time to check).

Another problem is I can't hide this parameter. If I do, it doesn't trigger a call anymore...

 

Any solution?

 

Cheers,

François

set the size of the layer using resizer

$
0
0

Hi All,

     I try to understand the sample project resizer, and I have some problem.

     when I apply the effect "resizer" ,I find that I can only get a canvas which size is customer defined, but the layer size didn't change at all?

     So how can I change the size of layer or composition size?

   捕获.PNG

      Thanks & Regards,

Any tutorials/examples of using JUCE as a GUI for the Panelator?

$
0
0

Hi All,

 

 

I'm trying to replace the PanelatorUI_Plat class with Juce GUI.

 

Though, it should be simple and strait forward, I'm literally failing to make the things work.

Any examples/tutorials for doing that?

 

 

Best regards,

Yuri

Getting footage file paths from project file

$
0
0

Maybe this isn't the best place to ask, but I'm curious if there is a way to get a list of all of the footage files in a project and list their file paths, using only the .aep project file.

 

My goal is to simply be able to take the project file and output a list of the footage files & their location on the disk.  While I've found this is possible using scripts or by writing a plugin (a little overkill for this I think), I'm trying to do this from outside of After Effects. Any help is appreciated.

.Plugin Files

$
0
0

Dear After Effects Developer Community,

 

Sorry for being annoying and posting lots of questions, but hopefully this is the last one.

 

I've finished with the code for my plugin, and I'm ready to test it out with after effects. I read in the SDK on the bottom of page 40 where it tells you to change the output folder. I've done that, but when Xcode builds, it builds a .plugin file.

 

I currently don't own after effects, and have just been messing around with the SDK so far (as crazy as that sounds) and I think I have some initial code ready to test out. Ideally, I want to make sure that I'm doing everything correctly before installing after effects so I don't end up having to pay for two months instead of only one.

 

Anyhow, I'm just wondering if a .plugin file will work, or if there's an extra step I'm missing that will convert it into a .aex file. Thank you!


Why would rowbytes be negative and 4 times larger?

$
0
0

When receiving input and output worlds in Premiere (registered with pixel format of PrPixelFormat_BGRA_4444_32f), I keep getting the world that has the rowbytes equal to -30720 (for a typical 1920x1080 clip), while the new worlds, created using:

 

world_suiteP->PF_NewWorld(in_data->effect_ref, output->width, output->height, true, PF_PixelFormat_ARGB128, &moved_in));

 

Has the rowbytes equal to 7680, suggesting an 8-bit world, not 32-bit one. Interestingly, if I use PF_PixelFormat_BGRA32 the rowbytes value is the same.

 

Any thoughts on this discrepancy and suggestions on how to resolve it?

Layer Parameter Returning Cropped Pixels

$
0
0

How can I get a smart plugin to return me all pixels from a "texture" layer parameter, when this layer is bigger than the effect layer?

 

Example - I have a 2048x2048 pixel "texture" layer that I reference in my layer parameter. My effect layer is 1920x1080. When I check out the texture layer pixels the resultant PF_EffectWorld has a width of 2048 but a height of only 1188 pixels.

 

I must be doing something wrong in PreRender when I check out the layers (I've never really been clear about what result_rect and max_result_rect do). I've tried setting both result_rect and max_result_rect to be the union of the input and texture layers, and also set PF_RenderOutputFlag_RETURNS_EXTRA_PIXELS, but none of these things yield a correct result.

 

Basic stuff probably but I'm stumped!

 

Thanks.

Deleting all keyframes

$
0
0

What is the best way to delete all keyframes of a stream? Calling KeyframeSuite3()->AEGP_DeleteKeyframe for every key works, but takes quite a bit of time. I was hoping to just virtually toggle the 'stopwatch' button, but I can't seem to find the API for that.

 

Any ideas?

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 ?

Can't load plugins in the MediaCore folder

$
0
0

So, my After Effects is installed in "E:\Adobe\After Effects CS6",so the MediaCore folder's path is "E:\Adobe\Common\Plug-ins\CS6\MediaCore".

I just started to learn the SDK yesterday. When I was playing with the samples in the SDK, I set the output folder to the MediaCore folder, After Effects won't load the plugins in this folder. I have to copy the plugins to the plugin folder in After Effects support files folder.

If I set the output folder to the plugin folder of After Effects, After Effects keeps crash.

What should I do?

I'm using Windows 7 Ultimate sp1 64 bit, After Effects CS6 and Visual Studio 2010 Ultimate.

Viewing all 73444 articles
Browse latest View live


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