Setting up some automatic templating scripts to run on start up. I know how to check the bits per channel.(app.project.bitsPerChannel) and in the scripting guide it says this is read\write. Can someone help me with the proper syntax to query and change the bits per channel of a project.
thanks,
change bits per channel of a project in script?
Moderator: Paul Tuersley
-
- Posts: 22
- Joined: April 2nd, 2010, 1:14 am
Adam Ghering
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
-
- Posts: 22
- Joined: April 2nd, 2010, 1:14 am
Never mind found it...
Adam Ghering
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
-
- Posts: 22
- Joined: April 2nd, 2010, 1:14 am
So. just because I hate it when people do this ...figure something out and then don't post the sollution ...here it is
this may be something the rest of the community knows but thought I would share anyway just in case.
to change the bit depth of a project through a script it is as follows
app.project.bitsPerChannel = 16;
just to push this a step further. If you look in the extendscript toolkit (when open) under data browser you will find the functions that apply to the target application that you are scripting for. Note:(to see the functions etc. for an application you must have the program selected in the top upper left drop down listl. You must also have had the program open at least once during your extendscript session.
The importance of this is that under each function heading..lets say app for instance you will find little purple circle icons with a ... in them representing , I beleive string variables, and little blue circles with # signs representing integers. If you can see these when your program is selected the extendscript toolkit populates these variables by default with whatever the current setting is ..for instance
if I expand the "app" function in the data browser then scroll down and expand the "project" heading under the "app" heading I will find a blue icon with a # sign called bitsPerChannel with the current setting already populated. This is where I get the above mentioned command. Using this approach it should be easy to sift through the data browser a piece together other commands that you may not have known before.
cheers,
this may be something the rest of the community knows but thought I would share anyway just in case.
to change the bit depth of a project through a script it is as follows
app.project.bitsPerChannel = 16;
just to push this a step further. If you look in the extendscript toolkit (when open) under data browser you will find the functions that apply to the target application that you are scripting for. Note:(to see the functions etc. for an application you must have the program selected in the top upper left drop down listl. You must also have had the program open at least once during your extendscript session.
The importance of this is that under each function heading..lets say app for instance you will find little purple circle icons with a ... in them representing , I beleive string variables, and little blue circles with # signs representing integers. If you can see these when your program is selected the extendscript toolkit populates these variables by default with whatever the current setting is ..for instance
if I expand the "app" function in the data browser then scroll down and expand the "project" heading under the "app" heading I will find a blue icon with a # sign called bitsPerChannel with the current setting already populated. This is where I get the above mentioned command. Using this approach it should be easy to sift through the data browser a piece together other commands that you may not have known before.
cheers,
Adam Ghering
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
Compositing Supervisor
Legend Films inc.
2D/3D Stereo Conversion
-
- Posts: 704
- Joined: June 5th, 2004, 7:59 am
- Location: London, UK
It's also on page 111 of the CS3 scripting guide:
http://www.adobe.com/products/aftereffe ... _guide.pdf
The guide hasn't been updated, but all CS4 changes are listed here:
http://blogs.adobe.com/toddkopriva/2008 ... ng_ch.html
http://www.adobe.com/products/aftereffe ... _guide.pdf
The guide hasn't been updated, but all CS4 changes are listed here:
http://blogs.adobe.com/toddkopriva/2008 ... ng_ch.html