Pixel Aspect Ratio on MainSource

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

The manual says that the pixelAspect is read only when dealing with footage. Has anyone figured out a way to circumvent this limitation?
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

Hi,
it works for me.

Code: Select all

myCurrentSource.pixelAspect = 1.42;
sets the pixel aspect ratio to 1.42
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

Have you gotten that to work with footage items in the project window? I think it works for comps and solids, but not footage items. Here is what I'm using code-wise.

Code: Select all

curSel[0].mainSource.pixelAspect = 1.0;
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

yes...
import your footage in a new project, and try :

Code: Select all

app.project.item(1).pixelAspect = 1.0;
it should change the interpretation of your footage
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

Great, that works. Why do you think that it doesn't work with .mainsource?
Post Reply