Skip to main content
seraphiel
Inspiring
June 5, 2015
Question

Plugin that renders a layer at an offset?

  • June 5, 2015
  • 1 reply
  • 719 views

Hi folks

I'm trying to write a plugin that renders a layer at a different transform than it currently is.

For example: Layer 1's position is (0, 0)

My plugin will render that layer as though it is at (100, 100). But AE will still report the layer at (0, 0).

Is it possible?
How can I do this?
I'm fairly new to the SDK so I'm still poking around the calls.

This topic has been closed for replies.

1 reply

fuada52572480
Known Participant
June 5, 2015

var myPosition = [100,100]; 

app.project.item(1).layer(1).property("ADBE Transform Group").property("ADBE Position").setValue(myPosition);

Community Expert
June 5, 2015

hi seraphiel! welcome to the forum!

well, you can't override AE's transform. you can shift the buffer using a

similar process to what the effects->distort->transform effect does to

negate AE's transformation, but the transformation AE is set to do will

happen.

if you want to take a REALLY long route, take a look at the "Artie" sample.

it creates a plug-in of type "artisan", which renders comp layers. alas, it

only handles the 3D layers, so you'll only be able to override the

transformation of those.

but as fuada52572480 <https://forums.adobe.com/people/fuada52572480> has

noted, you can also alter the transform values of the layer, if that suites

your needs.

seraphiel
seraphielAuthor
Inspiring
June 5, 2015

Ugh that sounds really involved.

I was hoping I could just do a copy() of some sorts with an offset :X

I'll need to be adjusting not just the transforms, but also potential time remaps too... so I'm not too sure if artisan can do that. I'll check it out though, thanks!