How to retrieve "KeyValue" from multiple Shape paths then "SetValue" to Mask path Keyframes?

Hello AEScriptsComm.,..
i have one question (hopefully the tutorer will answer soon), which is the goal and reason i'm learning ExtendScripts:
I have a few dozen Adobe Illustrator, imported Shape Layers with paths "Created..from Vector Layers" in AEffects.
In order to use a .jsxbin script to change every path to the same number of verticies for animating, i must 1st convert them to Keyframes on the same Mask Path property.
1) i hoped to please be shown\sent an example showing how to,..
a) Get\Retrieve "KeyValue" from multiple, single (Shape Layers):Outlines > Contents > Group > Path > Path as shown in screenshot "4-CreateShapeFromVecLyr2Outlines.JPG",
and then,..
b) "SetValue" from those paths into Mask > Mask Path keyframes also in screenshot "1-ExtendScript_ShapePathsTOMaskPathKeyframes.JPG"?
Really appreciate any help soon as time allows,
Jeff

Hello Xavier,
                   esp. with my limited experience i can't determine how your concise script works.
Because it 1st errors  esp. with undefines  i'm thinking at best its incomplete (or algorithm) to give me the gist and i'm to fill in the blanks, which i am doing with the sort of working code example pasted below.
Its written with every  definition, declaration and initialization completed, so a novice like me can read the manuals, rev. eng. pertinant script(s), then with fragmented code and understanding quickly connecting to form a complete custom script, as we've all done.
like this:
var comp = app.project.activeItem:
var layer  = comp.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
therefore,..
var CompLayerSolid = app.project.activeItem.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
..then with such direct access in other essentials, i can substitute compatible properties, methods,  parameters etc. and remaining code that affect the layer objects i need to control simultaneously. Also thereby learning more complex code quickly enough to use.
Only, i hoped to save time here by those already familiar.
  But by comparison your script without declarations or many references in AE's CS6 Scripting Guide and online, i can't decipher or understand,
although you wrote this more complete segment at CCow:
"shapeLayer.content.addProperty("ADBE Vector Graphic - Fill");",
..in which is the addProperty i 1st looked for in your script after erroring with "ShapeLayer is undefined"
But i could'nt find a ref. to either .content or content. anywhere in ExtendScript, nor "targetLayer.mask", and "targetLayer" i found once in ref. to ExtendScript as an AE layer name. So perhaps their your variables?, you see i can't determine or use.
i don't know that was'nt meant, maybe a bit to tell me do my own research?,  no offence, can't confirm that without reply, hope you will, but my research is why i'm here and your probably advanced script could only help with your assistance.
Thanks anyway,
Cheers.
function()
var comp = app.project.activeItem;
var masksLayer = comp.selectedLayers[0];
var masksGroup = masksLayer.property("ADBE Mask Parade");
app.beginUndoGroup(rd_MasksToShapesData.scriptName);
// Create an empty shape lay
// Get the mask layer's pixel aspect; if layer has no source, use comp's pixel aspect
var pixelAspect = (masksLayer.source != null) ? masksLayer.source.pixelAspect : 1.0; //copixelAspect;
// Iterate over the masks layer's masks, converting their paths to shape paths
var mask, maskPath, vertices;
for (var m=1; m<=masksGroup.numProperties; m++)
var suffix = " Shapes";
var shapeLayer = comp.layers.addShape();
shapeLayer.name = masksLayer.name.substr(0,31-suffix.length) + suffix;
shapeLayer.moveBefore(masksLayer);
var shapeLayerContents = shapeLayer.property("ADBE Root Vectors Group");
var shapeGroup = shapeLayerContents; //.addProperty("ADBE Vector Group");
//shapeGroup.name = "Masks";
var shapePathGroup, shapePath, shapePathData;
// Get mask info
mask = masksGroup.property(m);
maskPath = mask.property("ADBE Mask Shape");
// Create new shape path using mask info
shapePathGroup = shapeGroup.addProperty("ADBE Vector Shape - Group");
shapePathGroup.name = mask.name;
shapePath = shapePathGroup.property("ADBE Vector Shape");
shapePathData = new Shape();
// ...adjust mask vertices (x axis) by pixel aspect
vertices = new Array();
for (var v=0; v<maskPath.value.vertices.length; v++){
vertices[vertices.length] = [maskPath.value.vertices[v][0] * pixelAspect, maskPath.value.vertices[v][1]];
shapePathData.vertices = vertices;
shapePathData.inTangents = maskPath.value.inTangents;
shapePathData.outTangents = maskPath.value.outTangents;
shapePathData.closed = maskPath.value.closed;
shapePath.setValue(shapePathData);
shapeLayer.transform.anchorPoint.setValue(masksLayer.transform.anchorPoint.value);
shapeLayer.transform.position.setValue(masksLayer.transform.position.value);
shapeLayer.transform.scale.setValue(masksLayer.transform.scale.value);
if (masksLayer.threeDLayer)
shapeLayer.threeDLayer = true;
shapeLayer.transform.xRotation.setValue(masksLayer.transform.xRotation.value);
shapeLayer.transform.yRotation.setValue(masksLayer.transform.yRotation.value);
shapeLayer.transform.zRotation.setValue(masksLayer.transform.zRotation.value);
shapeLayer.transform.orientation.setValue(masksLayer.transform.orientation.value);
else
shapeLayer.transform.rotation.setValue(masksLayer.transform.rotation.value);
shapeLayer.transform.opacity.setValue(masksLayer.transform.opacity.value);
// Match the mask layer's transfor
// Mute the mask layer
masksLayer.enabled = false;
app.endUndoGroup();

Similar Messages

  • How to pickup files from multiple directories

    Hi all,
    How to pickup files from multiple directories and send it to two different folders at target
    Ex:
    files\xi\us\US.txt
    files\xi\uk\UK.txt
    i need to pick up the above mentioned two files and send it to the following paths
    app1\files\us\download\US.txt
    app1\files\uk\download\UK.txt
    US.txt has to goto US folder and UK.txt has to goto UK folder only
    Regards

    Hi,
    To pick form multiple folders, select Advanced Mode for file selection in file adapter..
    there u can specify directory name/file names
    Refer
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    To put those files at multiple folders write a command line arguments for this.. go through this weblog...
    /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    XI/PI: Command line sample functions
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Hope this will help you....
    Regds,
    Pinangshuk.

  • How to retrieve value from xml file

    hi all,
    can somebody pls tell me how to retrieve value from xml file using SAXParser.
    I want to retrieve value of only one tag and have to perform some validation with that value.
    it's urgent .
    pls help me out
    thnx in adv.
    ritu

    hi shanu,
    the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
    pls have a look at the following code snippet.
    public class XMLValidator {
    static ArrayList strXXX = new ArrayList();
    public void validate(){
    factory.setValidating(true);
    parser = factory.newSAXParser();
    //all factory code is here only
    parser.parse(xmlURI, new XMLErrorHandler());     
    public void setXXX(String pstrXXX){          
    strUpn.add(pstrXXX);
    public ArrayList getXXX(){
    return strXXX;
    class XMLErrorHandler extends DefaultHandler {
    String tagName = "";
    String tagValue = "";
    String applicationRefNo = "";
    String XXXValue ="";
    String XXXNo = "";          
    XMLValidator objXmlValidator = new XMLValidator();
    public void startElement(String uri, String name, String qName, Attributes atts) {
    tagName = qName;
    public void characters(char ch[], int start, int length) {
    if ("Reference".equals(tagName)) {
    tagValue = new String(ch, start, length).trim();
    if (tagValue.length() > 0) {
    RefNo = new String(ch, start, length);
    if ("XXX".equals(tagName)) {
    XXXValue = new String(ch, start, length).trim();
    if (XXXValue.length() > 0) {
    XXXNo = new String(ch, start, length);
    public void endElement(String uri, String localName, String qName) throws SAXException {                    
    if(qName.equalsIgnoreCase("XXX")) {     
    objXmlValidator.setXXX(XXXNo);
    thnx & Regards,
    ritu

  • How to retrieve info from a MacOs Standard floppy?

    How can I retrieve information from a MacOs Standard formatted floppy disk on Snow Lion?
    I have this collection of old floppy disks that were formatted as MacOs Standard format back in the days. They do hold some files which I'd like to backup on a backup drive.
    But, Snow Lion does not read MacOs Standard formatted disks apparently.
    So, does anyone know how to retrieve information from MacOs Standard formatted floppy disks?
    Thank you!

    This what I see in ML with my old SmartDisk VST (model# FDUSB-M) floppy drive:
    Interesting observations:
    1. I was able to add and remove files to the disk.
    2. I was not able to erase the disk with Disk Utility. It returned an error.
    3. Disk Utility did not offer the HFS+ format option, only FAT32 and ExFAT.
    4. I could only find 1 floppy in my house so it could be partially defective.

  • How to retrieve photos from the iCloud

    How to retrieve photos from the iCloud

    icloud only stores photos in backups (or in a special case, when using photo stream).  If you have turned on backup and made sure the camera roll is turned on (only photos from camera roll are backed up), then you can get photos back by performing a restore.  But note that users should always sync photos to a computer to archive them, relying on icloud is not foolproof.
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_UShttp://www.ipadconverter-mac.com/restore-iphone-from-icloud/
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.

  • How to retrieve data from URL or querystring in bsp pages

    hi
    how to retrieve data from URL or querystring in bsp pages.
    thanks
    Edited by: Vijay Babu Dudla on Mar 23, 2009 7:35 AM

    Hello Friend,
    Vijay is correct.
    REQUEST is a system object available in runtime of BSP application.
    It is the object of interface IF_HTTP_REQUEST.
    Use methof REQUEST -> GET_FORM_DATA( )
    Regards
    Krishnendu

  • How do I select from multiple schema's

    How do I select from multiple schema's
    Tried:
    SELECT * FROM schema1.table1, schema2.table2
    WHERE schema1.table1.column1 = schema2.table2.column2;
    Errored......

    Thanks
    We finally got in touch with our DBA and he said the same thing.
    SELECT t1.*,
    t2.*
    FROM schema1.table1 t1,
    schema2.table2 t2
    WHERE t1.column1 = t2.column2;
    I'll try it afther I finish a task my boss just gave me.
    BRB then.

  • How to Retrieve data from Variant Table

    Can anyone help me by telling how to retrieve data from variant table which was created by user. I am able to see data of variant table only thru cu60 transaction but not se11. I s there any function module to do this?

    Hello Mohan,
    if u already have data and u want to populate it in F4 help then use below code -
    u Have to make use of FM - 'F4IF_INT_TABLE_VALUE_REQUEST'
    REPORT  ZGILL_VALUE_REQUEST                     .
    data: begin of lt_all occurs 0.
            include structure DYNPREAD.
    data  end of lt_all.
    data: begin of lt_selected occurs 0.
           include structure DDSHRETVAL.
    data: end of lt_selected.
    DATA: BEGIN OF lt_code OCCURS 0,
                code LIKE zgill_main-PERNR,
          END OF lt_code.
    data no_dyn like sy-dynnr.
    Parameters : ECODE like zgill_main-PERNR.
    *parameters: pernr like pa0001-pernr .
    no_dyn =  sy-dynnr.   "give the scren no directly or sy-dynnr in case of report.
    At selection-screen on value-request for ECODE.
    select PERNR into table lt_code from zgill_main.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield               = 'ECODE'
            dynpprog               = sy-repid
           dynpnr                  = no_dyn
          dynprofield              =       'ECODE'
          window_title           = 'Employee Details'
           value_org              = 'S'
          DISPLAY                = 'F'
       TABLES
            value_tab             = lt_code
           RETURN_TAB             = lt_selected.
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    *if sy-subrc eq '0' .
      write: 'success'.
    *endif.
    read   table lt_selected index sy-tabix.
    move lt_selected-fieldval to ECODE.

  • How to retrieve data from domain(Value Range)  of the table

    hi
    how to retrieve data from domain(Value Range)  of the table
    thanks

    Hello,
    You can try using the FM: DOMAIN_VALUE_GET TB_DOMAINVALUES_GET.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 24, 2009 10:08 AM

  • How to retrieve data from excel sheet

    Hi,
    How to retrieve data from excel sheet into a java file.

    janu05 wrote:
    If we append a $ in the end of the table name it is showing an error saying "invalid name,should not contain any invalid character or punctuation"Great, I'm very happy for you.
    Unless that was a question. In which case you might what to tell us a little more.
    Like which API you are using (assuming we are still on "reading an Excel sheet".

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

  • How to retrieve data from inside the folders in SharePoint SSRS

    Hi ,
    How to get the data from inside the folders and subfolders.
    How can I do that.
    https://social.msdn.microsoft.com/Forums/en-US/15451351-4ee2-428c-a0b7-135810e4cbfa/action?threadDisplayName=ssrs-reports-sharepoint-list-datasource-how-to-retrieve-items-from-subfolders
    Here the information is not given.
    Regards
    Vinod

    Hi Vinodaggarwal87,
    According to your description, you want to retrieve data from sharepoint list in a sub folder. Right?
    In this scenario, we should select the XML data source type and in the connection string provide the
    List.asmx service URL when creating data source. Then we need to use the List web Service and specify "recursive" for ViewAttribute in Lists.asmx. For detail steps, please refer to the links below:
    Generate SSRS report on SharePoint List with folders using List Service.
    SSRS: how to specify ViewAttributes when creating a report against a SharePoint's list
    If you want to set the ViewAttribute on CAML query level. You need add the view tag outside of query tag:
    <View Scope="RecursiveAll">
        <Query>
            <Where>...</Where>
        </Query>
    </View>
    Reference:
    View Element (List)
    ViewAttributes Recursive Scope not working SharePoint 2013 CAML Query to fetch all files from document library recursively
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to retrieve data from table(BOM_ITEM)

    Hi All,
    I wrote webservices using axis1.4 to get BOM information from SAP.. funtional module is CAD_DISPLAY_BOM_WITH_SUB_ITEMS
    webservices works fine..I'am able to retrieve data from Export Parameter..But not able to retrieve data from table
    How to retrieve data from table(BOM_ITEM)..?
    Cheers, all help would be greatly appreciated
    Vijay

    Hi,
    1. Create Page Process.
    2. Select Data Manipulation
    3. In category select "Automated Row Fetch"
    4. Specify process name, sequence, select "On Load - Before Header" in point.
    5. Specify owner, table, primary key, and the primary key column(Item name contains primary key).
    6. Create a process.
    7. In each item select "Database Column" in "Source Type".
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How to retrieve data from MDM using java API

    hi experts
    Please explain me the step by step procedure
    how to retrieve data from MDM using java API
    and please tell me what are the
    important classes and packages in MDM Java API
    thanks
    ramu

    Hi Ramchandra,
    You can refer to following links
    MDM Java API-pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
    webinr of java API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
    Following Fourm Threads will also help.
    Java API
    Java API
    Re: usage of  java API ,
    Matching Record
    Need Java API for Matching Record
    Thanks and Regards,
    Shruti.
    Edited by: Shruti Shah on Jul 16, 2008 12:35 PM

  • "CLOSED":How to plan inventory from multiple orgs simultaneously using MRP?

    Hello everybody,
    How to plan inventory from multiple organizations simultaneously using SCP?
    My customer found that in supply chain planning (MRP) system always plans in single manufacturing organization, say, ATC, firstly. If set in organization item master, the source type as 'Inventory' and the source organization as another trading organization name, say, ANX. if there is insufficient inventory in ATC, SCP-MRP would plan in ANX, disregard of the inventory exist in ANX for the item.
    But for some items, there are both inventory in ATC and ANX and we want plan BOTH their inventory simultaneously instad of firstly ATC and then ANX.
    Is there any standard function in Oracle that can do so? I found that the sourcing rule cannot help in this case.
    A simple test case is described in
    https://gtcr.oracle.com/gtcr-dir/gtcr_4607/5580425.992/Alternative_to_plan_multi-org_MRP.doc
    Thanks
    Catalina
    Message was edited by:
    user447176

    Catalina,
    Net the inventory simultaneously? Its not quite clear what your client wants.
    Even in the old SCP, you can use sourcing rules to first net inventory in org1 and then net the inventory in org 2 via a transfer from rule. The key point is it is always incremental based on where you place teh demand and then you provide source to fill that demand.
    One restriction that ASCP still has up to 11.5.10 is that you can only have sourcing rules going in one direction. This means that you can't have a rule that sources ORG1 from ORG2 for item A, then have the revers in ORG2 sourcing from ORG1. That won't work, ASCP will randomly ignore one of the rules.
    The best choice may be to use GOP with a sourcing split % so that yo do consider the inventory in both orgs when demanding the order, but it would still be done by checking ORG1 then ORG2.
    Hope this helps.
    Kevin Creel

Maybe you are looking for

  • Merge two iPhoto libraries into an Aperture library for my Macbook Air

    Hey, I've searched around a bit for this but can't seem to figure out how to to it. I'm trying to manage my ~140GB photo library on my Macbook Air which has 128GB of HDD.  On top of that, you can imagine that most of that 128GB is filled with system

  • Connecting to HDMI TV and audio to my receiver

    I'd like to connect my apple TV using an HDMI cable to my TV but I'd like the audio to come out via my Yamaha receiver and surround sound speaker system. I don't have any optical cables. Should I connect the analog audio cables from the back of the A

  • Turn off screen saver when unit is charging

    Okay I am in the car and I have my Iphone on charge, and I am using Maps. How do I stop the phone going into power save mode (screen darkens then screen saver) without permanently disabling the power saver option?

  • Any migration tips/steps from FMS 4.x to AMS

    Hello, I have a system which uses FMS4.5 and I am tasked to upgrade it to AMS 5.x. We have several scripts and prprietary code which relies on old nomen clature and directory structure. I was wondering whether there is any document which helps to do

  • IMac won't boot correctly! Braille-looking screen and purple lines

    Hi guys; i've got a big problem over here; about a week ago my iMac (27", late 2009, i5 2,66ghz quad core, 4gb RAM upgraded to 12, running Snow Leopard) froze while watching a movie in streaming. After a few minutes i decided to force the turn off an