Is there a way to loop through the properties of a layer groups and JUST get those that are visible?

Hello

I'm trying to get just the property groups that are visible to a layer in my script. Is there such a property?

For example, when I loop through groups of properties of a shape layer, I get masks, layer, surface Options and Audio property groups Styles, when none of these are appropriate. I tried to use the (.elided) property, but it gives me just the 'Content' hidden folders within the groups of vector and 'Masks' in 'membership Options '.

* on a side note, I got the error "not"adjustable expression"with this property, because the property is a property of the parent is hidden." When you try to access X or Y Rotation on one layer 2D. It makes it seem like there is somewhere a Boolean value 'hidden' in the property object, but I can't.

Hello

'elided' and 'hidden' both have purpose UI (make the lighter user interface) but are very different:

  • 'j' is a static property groups attribute (readonly, and After Effects never becomes the value internally).

The children of an elided group are not necessarily élidés.

  • 'hidden' is NOT an attribute, is dynamic and "undocumented".

The UI of effects after mask everything that is not necessary in the layer property tree (for example the Group of hardware options is hidden when the layer is not 3D, because it is not used anyway).

Properties and masked groups are always there and is accessible by script, you can read their values and attributes, Scout their subtree of property, but we cannot define anything on them or select them (in both cases, that an error is generated).

And the children of a hidden group are hidden.

Since there is no corresponding to 'hidden' attribute, it is uncomfortable to know whether or not a property is hidden. I only see one case of 'treatment '.

For example:

myLayer.layerStyle is hidden? <===>! myLayer.layerStyle.canSetEnabled

myLayer.transform.xRotation is hidden? <===>! myLayer.transform.xRotation.canSetExpression

myLayer.mask is hidden? <===>myLayer.mask.numProperties = 0

myShapeLayer.content is hidden? <===>fake (never hidden, even if it is empty)

etc...

Xavier.

Tags: After Effects

Similar Questions

  • To loop through the text fields of the user on a page

    I'm new to APEX and I searched for an answer to this problem, but wasn't able to find one.

    I have a page which has about 40 areas of text for user input. I would like to find a way to do a loop on all areas of text on the page when the user submits the form. I want to check the contents of each text box and filter all characters that are not alpha or numeric. I would do this in a single process. Is this possible? If so, how do I access the text boxes and remove unwanted entries? Could you please show me an example?

    Thank you for any advice on that.

    Hello

    I have not test cela, but could look like after submitting work process

    DECLARE
     l_temp VARCHAR2(32000);
    BEGIN
      FOR C IN
      (SELECT item_name
      FROM apex_application_page_items
      WHERE display_as   = 'Text Field'
      AND application_id = :APP_ID
      AND page_id        = :APP_PAGE_ID
      )
      LOOP
        -- Do stuff e.g. remove character  Ö
        l_temp := REPLACE(v(c.item_name),'Ö');
    
        APEX_UTIL.SET_SESSION_STATE (
          p_name  => c.item_name,
          p_value => l_temp
        );
    
      END LOOP;
    END;
    

    BR, Jari

    Published by: jarola March 4, 2010 17:26

  • I noticed that many of my updates there is 2 times. The same exact. Can I safely delete those that are lined and exactly the same thing? Seems I don't need the same exact 2 and 3 updates times.__Thanks__Michael

    I noticed that many of my updates of widows is 2 times. The exact same ones. I can safly remove those that are lined and exactly the same thing? Seems like I don't need at the same time exact windows updates 2 and 3.
    Here's what are installed now that confuses me.
    Running vista Home premium
    version 6.0.6002 Service Pack 2 Build 6002
    PC x 64
    Intel Core 2 Duo CPU T5550 1.83 GHz, 1833 MHz, 2 Lossnay, 2 Log
    4.00 GB
    Microsoft Silverlight
    These files were add and remove.
    Update for Microsoft Visual C++ 2005 ALT kb973923 - x 6...
    Update for Microsoft Visual C++ 2005 ALT kb973923 - x 8...
    Microsoft Visual C++ 2005 Redistributable
    Microsoft Visual C++ 2005 Redistributable
    Update for Microsoft Visual C++ 2005 ALT kb973924 - x 8...
    Microsoft Visual C++ 2005 Redistributable - x 86 9.0.2...
    Microsoft Visual C++ Run Time Setup Lib
    Would it not be better to uninstall all these and start from scratch with Silverlight?
    Or!
    To uninstall only some?
    Very confused about this.
    Some tips would help a lot.
    I think I posted all the files that were related to this as well as information on the system.
    Thank you
    Member of 1care Michael B.

    Mike

    CF. http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/b9132e0a-31ad-4f3c-af7d-8719972453ab

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I bought Adobe Acrobat DC. We use it in a desktop environment. Is there a way to "TURN OFF" the concept of cloud for another user does not see a confidential pdf in their queue?

    Is there a way to "TURN OFF" the concept of cloud for another user does not see a confidential pdf in their queue?

    I tried to contact technical support to the 800-833-6687 but was put through several automatic guests and disconnected.

    Hi plumasca,

    Refer to this topic for help disable features/services online in Acrobat/Reader DC?

    Kind regards
    Nicos

  • Is there a way to dynamically determine the number of parameters to a procedure side Server?

    Hello

    This is a helper method used to call a server-side function that traverses the bindVars parameter to fill the PARAMETERS of the function. Is there a way to dynamically determine the parameters input/output based on the procedure name in the stmt parameter? No member of the CallableStatement class looked promising, but the getParameterMetaData() in the PreparedStatement class method seemed it might be useful lead. However, I have not found any (yet) a detailed description of how to use it.

    protected Object callStoredFunction (int sqlReturnType, String stmt,

    Object [] bindVars) {}

    CallableStatement st = null;

    try {}

    // 1. Create a JDBC CallabledStatement

    St = getDBTransaction () .createCallableStatement)

    ("" start?: = '+stmt+ ";" end; ", 0);

    // 2. Register for the first variable binding for the return value

    st.registerOutParameter (1, sqlReturnType);

    If (bindVars! = null) {}

    // 3. Loop on values for the bind variables passed, if any

    for (int z = 0; z < bindVars.length; z ++) {}

    // 4. Set the value of vars binding provided by the user in the stmt

    st.setObject (z + 2, bindVars [z]);

    }

    }

    // 5. Set the value of vars binding provided by the user in the stmt

    st.executeUpdate ();

    // 6. Returns the value of the first variable binding

    Return st.getObject (1);

    }

    catch (SQLException e) {}

    throw new Aexception.getLocalizedMessage (e);

    }

    {Finally

    If (st! = null) {}

    try {}

    // 7. Close statement

    St.Close ();

    }

    catch (SQLException e) {}

    }

    }

    }

    James

    PreparedStatement.getParameterMetaData () subject is exactly what you need for this task.

    Once you have the ParameterMetaData you can ask how many parameters are present, and how they are. Parameters are numbered from 1 to n, and you can use ParameterMetaData.getParameterMode (1); to get the function of parameter 1. The modes are defined as static values of the ParameterMetaData object. Check out the doc at http://docs.oracle.com/javase/7/docs/api/java/sql/ParameterMetaData.html

    Timo

  • loop through the layers defining the lock and visibility

    I need to loop through the layers in the active document and the value of the properties of the layer is false or true.  I tried to create a loop using a method 'for', but it doesn't seem to work. I have renounced the method 'for' because I kept running into a problem.  I have set all layers with these settings just the odd ones (2,4,6, etc.). Here is sample if it was written.

    myLayer = myDoc.layers var [2];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [4];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [6];

    myLayer.visible = false;

    myLayer.locked = true;

    myLayer = myDoc.layers var [8];

    myLayer.visible = false;

    myLayer.locked = true;

    I have 208 layers, so doing it this way would be way to long. Any help would be appreciated.

    Illustrator CC 2014 running.

    After I wrote this and tested, I saw that Carlos had already answered, but I thought that I would post it anyway. Carlos KNOWS how much I love JS... ;-)

    One difference is that, since it was not clear to me which layer you talk like layer #1, I started at the bottom of the scale.  I hope this helps.  -TT

    var aDoc = app.activeDocument;
    var lc = aDoc.layers.length;
    for (var i = 2; i <= lc; i+=2) {
        var curLayer = lc - i
        aDoc.layers[curLayer].visible = false;
        aDoc.layers[curLayer].locked = true;
    }
    
  • Loop through the list in flex 4 conclusion d buttons

    Anyone know how to completely recursively loops through the list in flex 4 by pulling the bodies of buttons.  This way I can apply my effects for buttons on the screen at the same time?

    You just create a subclass of button that has the desired effect and use it throughout your application.

    Gordon Smith

    Adobe Flex SDK team

  • Search for "blackle". Is there a way to auto-noir the bottom of each page visited?

    I like the idea of using a black background instead of white on my devices. I'm saving the planet and my eyes. Is there a way to display all the origins of the auto-noir site? And I suppose that, by extension, the white of the text? I understand the images on the page would remain in their original colors, and that's fine. I see a blank page and I want to paint it black.

    People have experimented with modules in this direction over the years. Some who always seem to be maintained are:

    https://addons.Mozilla.org/firefox/addon/night-mode-Pro/

    https://addons.Mozilla.org/firefox/addon/aniverto/

    https://addons.Mozilla.org/firefox/addon/eyeguard/

    This allows you to switch between different color profiles and is probably a little more of "brute force":

    https://addons.Mozilla.org/firefox/addon/color-toggle/

  • Is there a way to globally disable the cache of Firefox?

    I run a computer lab with several linux PC (Ubuntu LTS 14.04 / latest version of Firefox). The users homedirectories are located on a file server central and limited by a diskquota. Unfortunately, Firefox takes an important part (if not all) of this quota with its cache. Is there a way to globally disable the cache?

    EDIT:
    Add the following lines to /etc/xul-ext/ubufox.js helped...

    Pref ("browser.cache.disk.enable", false);
    Pref ("browser.cache.disk.smart_size.enabled", false);
    Pref ("browser.cache.disk.capacity", 0);

    Add the following lines to /etc/xul-ext/ubufox.js helped...

    Pref ("browser.cache.disk.enable", false); Pref ("browser.cache.disk.smart_size.enabled", false); Pref ("browser.cache.disk.capacity", 0);

  • I bought an Apple Store Gift card by mistake instead of a gift card to iTunes. Is there a way I can swap the card?

    I bought a gift card from Apple Store by mistake - I was intending to buy an iTunes gift card. Is there a way I can exchange the Apple Store Gift card for iTunes card?

    You must ask to whom he sold.

  • The applications listed under Launchpad, is there a way I can delete the ones I don't use on my MAC Air?

    The applications listed under Launchpad, is there a way I can delete the ones I don't use on my MAC Air? I hope that I can free up space.

    Start the LaunchPad and hold the option key. The icons will start to shake and an X will appear in the upper corner of some but not all. Click the X to remove the application. Programs that have an X are only purchased/downloaded from the App Store. Integrated programs in Mac OS (like Safari) or programs you have downloaded/purchased elsewhere will not be a X. You should not delete (or move) programs such as Safari and Mail (built-in programs) because the update from Apple guess they were be on your computer in their installation location. Weird things happen if they are moved or deleted.

    Programs you don't purchase/download from the App Store can be deleted without the help of the dashboard, but you must be careful about this. Third party programs can be installed in different ways: some come in disk images and are trained in your application forms. These can be moved without danger in the trash. Some are installed using an installation program, and these require a little care to remove. In some cases, they set up items in addition to the program and require a special uninstall program, but this is not true in all cases. I always do the note of programs using a Setup program, so I can make sure I have properly uninstall.

  • Publication in FCPX settings... IS THERE A WAY TO MAKE EDITING THE PARAMETERS EASIER TO HAVE FCP TO PUBLISH EACH SCHOOL SETTING? IS THERE A WAY TO "PUBLISHED IN THE WORLD" A WHOLE PROJECT OR AT LEAST PARAMETERS?

    IS THERE A WAY TO MAKE EDITING THE PARAMETERS EASIER TO HAVE FCP TO PUBLISH EACH SCHOOL SETTING?

    IS THERE A WAY TO "PUBLISHED IN THE WORLD" A WHOLE PROJECT OR AT LEAST PARAMETERS?

    Is it wise to publish all THE settings of a plugin?

    I prefer to reduce the options, for example I'm rigging 'size' to distribute only one of them-in my eyes - range 'useful '; or create by rigging the drop-down menu 'plans', for example for the color selections...

    In any case...

    'Major settings' as Transform or filling or 3D can be published, just click Reset arrow, and all the "sub menu" get published too... can't imagine how to make the publication easier...

    BTW: CAPS means YELLING on the boards...

    be nice... what goes around, comes around ...

  • Is there a way to tell when the bin was emptied last?

    Is there a way to tell when the bin was emptied last?

    Open a new Finder window. The display in the FInder menu, select Customize toolbar... Drag / move the icon to get information from the right toolbar on the left of the existing action button. Click done in the personalization Control Panel and close the window of the Finder. This Get Info button will also be useful for selections of files.

    OS X does not connect to an event to empty the trash. You can click on the trash icon in your Dock, and if the Recycle Bin has been emptied recently, you'll be watching an empty Finder window. Now, you can click on this button to obtain information about the toolbar, and the displayed change date will be when the Recycle Bin has been emptied. If you add more items to the trash, this date modifed will be when the last element has been added.

  • Is there a way to manually activate the built in FLASH on my Canon Rebel T3i?

    Is there a way to manually activate the built in FLASH on my Canon Rebel T3i? I can't find the place to do this.
    Thank you.

    You can also use the "Programming" mode  Program mode allows the camera to choose the initial settings, but unlike the automatic mode where you cannot override the decisions of the exhibition, you CAN override the decisions of the exhibition in programming mode if you wish.

    If you choose the programming mode, press the button to bring up the flash and then don't bother to circumvent the decisions of exposure of the camera then it will work a lot like automatic mode.

  • External hard drive does not work. Is there another way I could solve the problem without formatting the external hard drive?

    My external hard drive works. I tried to plug and when I tried to open it, it says to format the drive until I could use it. Everything works well as when I plugged the USB icon shown on the screen. When I check the disk management, it showed that the partition of the drive is there.

    I tried to change the drive letters, but still having the same problem. I also tried to run the disk check on the command prompt and the properties of the drive, but it still can not because there is error popping up saying that the disk check cannot be performed because Windows cannot access the disk.

    Is there another way I could solve the problem without formatting the external hard drive?

    I tried the first step in troubleshooting the hard drive, but it gives a
    error in saying that "hardware changes might not have been detected.

    So I tried the second method, and when I click on the "Check now" button his
    gives an error saying that "the disk check cannot be performed because .
    Windows can not access the disk".".

    So is there any other way or option?

    Thank you

    Jason

Maybe you are looking for

  • 1074396995 error occurred at Sequence.vi IMAQ

    Hello I'm trying to capture a sequence of images using a suitable program of "Sequence and save at AVI.vi. Initially the VI worked fine, but when I tried to run the same VI today I get the error 1074396995 error occurred at Sequence.vi IMAQ Possible

  • How to fix error IM32FAX. DIL not found on Windows vista

    When I start the Pc this summons, error IM32FAX. DIL not found vista window how to fix this problem please

  • It allows me to access "backup and restore".

    My family vista premium is corrupt.  Is it possible that I can back up my system before you wipe the drive and install new operating systems?

  • Can not reach a particular site

    I am running Windows 7. Nine days, in the morning, I had no trouble to get to a site that I used every day.  Two hours later, I could reach is no longer. It is a form of social media, but not the type of current.  You use Internet Explorer, Chrome, a

  • Acer Aspire 5552 no lan or wireless detected

    Trying to work on a pc of the friends, which does not recognize the built in lan or wireless. Device Manager is a material no display wireless or lan. PC running Windows 7, and is now updated on all Windows updates. He recognizes a usb wireless adapt