Skip to main content
Participant
Jan 6, 2014 9:20 PM UTC
Question

Re-size Image in ExtendScript

I have a script for After Effects, I want the user to be able to set a max dimmensions on an image. I'm getting the dimmensions with

AVItem.height & AVItem.width

But how do I change these values? In the documentation I've found:


"

In a CompItem, the value is linked to the composition, and is read/write.

In a FootageItem, the value is linked to the mainSource object, and is read/write only if the mainSource

object is a SolidSource. Otherwise, it is read-only.

"

In my case this is not a 'SolidSource' type, how can I change the dimmensions? Any work arounds? Besides creating a new CompItem and inserting the image and then changing the values of the CompItem

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Legend
Jan 6, 2014 11:58 PM UTC

In my case this is not a 'SolidSource' type, how can I change the dimmensions?

I think you may have answered your own question. If you are not dealing with a SolidSource then you can only read the values, not change them.

In a CompItem, the value is linked to the composition, and is read/write.

In a FootageItem, the value is linked to the mainSource object, and is read/write only if the mainSource

object is a SolidSource. Otherwise, it is read-only.

What is your main intention? Are you trying to limit the size of images brought into the AE project, or are you just trying to set a max size for the image as it enters a composition?

Translate
Participant
Jan 7, 2014 2:14 PM UTC

Thanks David, I'm pretty much trying to implement a "max height/max width" function.

Translate