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

Manipulating each pixel

$
0
0

Hi,

 

completely new to the SDK.

 

For starters, I want to write a new effect that replaces every nth pixel with a given color.

 

Next, I want to write a new effect that takes the color of pixel (x, y) and sets the next n pixels to the right of pixel (x, y) to exactly that color. Basically creating a smear effect.

 

How can I go about that? I haven't seen a way to access pixel (x, y) of a frame.

 

My best guess is to use

 

suites.IterateSuite1()->iterate(in_data,                                   0,                                // progress base                                   linesL,                            // progress final                                   &params[SKELETON_INPUT]->u.ld,    // src                                    NULL,                            // area - null for all pixels                                   (void*)&data,                    // refcon - your custom data pointer                                   MyMagicFunction,                // pixel function pointer                                   output));

 

But MyMagicFunction will only get the information about the current pixel.

 

Thanks!


Viewing all articles
Browse latest Browse all 73444

Trending Articles



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