Skip to main content
Participant
January 6, 2014
Question

Re-size Image in ExtendScript

  • January 6, 2014
  • 1 reply
  • 4131 views

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 has been closed for replies.

1 reply

Legend
January 6, 2014

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?

Participant
January 7, 2014

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