Remove selected ShapeLayer properties

It seems so simple, but I can't understand this.

I chose stroke and fill under ShapeLayer. And I want to remove them from this layer.

myLayer = myComp.selectedLayers var [0];

propertyCollection var = myLayer.selectedProperties;

for (var j = propertyCollection.length - 1; j > = 0; j-) {}

propertyCollection [j] .remove)

}

However, on the second iteration AE gives me the error "object is incorrect. Am I missing something?

PS how can I paste the code here it looks like a code and not a text?

Indeed! I won't try to fix, but it should work (I hope!)

function doIt(){
    var myComp = app.project.activeItem; if(!myComp || myComp.typeName !== "Composition") return;
     var myLayer = myComp.selectedLayers[0];
     var propertyCollection = myLayer.selectedProperties;
     removeSelectedProperties2(propertyCollection, function(p){return p.matchName === "ADBE Vector Graphic - Fill" || p.matchName === "ADBE Vector Graphic - Stroke";});
    };
function getIndexPath(p){
    var ret = [];
    while(p){ret.unshift(p.propertyDepth<1 ? p.index : p.propertyIndex); p=p.parentProperty;};
    return ret;
    };
function getPropFromIndexPath(comp, indexPath){
    var p, i;
    if (indexPath[0]>comp.numLayers) return null;
    p = comp.layer(indexPath[0]);
    for (i=1; i=0; n--){
        p = getPropFromIndexPath(comp, temp[n]);
        if (p) try{p.remove();}catch(e){};
        };
    app.endUndoGroup();
    return;
    };

Tags: After Effects

Similar Questions

  • How can I remove selected Custom view (s) of the event viewer Console tree?

    I looked at the MMC Help on create and manage custom views.

    I can't find a way to remove the custom filter views in the Console tree, which can be found on the left side of the event viewer.

    How can I remove selected Custom view (s) when they serve no more values?

    Problem solved

    I asked this question because I was unable to see what was going on in the event viewer and I couldn't find help in mmc HTML Help. However, now I see what's happening and I can give you a solution to my own question.

    Cause

    If I connect to the computer as a user with administrator privileges, I am able to use the event viewer to create a custom view filter that can be used by all users who have access to the event viewer. If I fix remove a view filter custom Console tree, I can't delete it unless I'm logged in as the user who created it.

    Solution

    1. Log the computer as the user who created the custom view.
    2. Start Event Viewer
    3. Use the right-click of the mouse on a custom view filter selected in the Console tree, open the drop down menu.
    4. Delete appears fourth in the bottom of the menu if and only if you are logged on as the user who created this view.
    5. Select Remove to remove the filter to custom view.

    If Delete does not appear in the drop-down menu, then it may not possible you connect as the user who created the custom view.

  • Shortcut - Remove Selected folders

    Apologies if this question was asked before, but is at - it a keyboard shortcut for the button in the menu at the top that removes some anchor points (points of anchorage or object"Remove Path' selected). I work a lot with the trace of the image, and I'd be happy just press Delete, but as we know, that breaks all the way.

    Screen Shot 2015-02-14 at 13.33.09.png

    To remove a number of anchor Points selected at the same time, you can use Object > path > Remove inkings.

    There is no shortcut, but you can add one using edit > keyboard shortcuts. (I used the Cmd-Tilde)

  • Code of Script of Illustrator to remove selected items

    Hello, I have a script of Illustrator to cross certain functions and after it runs, there are selected items that I need to remove. I can't understand the simple script to delete the selected items. I tried

    var docSelected = app.activeDocument.selection;

    docSelected.selected.remove ();

    but in vain. Help, please. I would be very happy the tips and suggestions that I just need to know how to do so that the script to remove the selected items. Thank you very much!

    Another way...

    var docSelected = app.activeDocument.selection;
    for (j=0; j		   
  • 'Remove selected clips' not according to the CS6 PDF

    On page 335 of the CS6 PDF, he States:

    Delete all effects from a clip

    1. Select the item in the timeline panel. To ensure that only one clip is selected, click on a blank space in the timeline panel, and then click the clip. Click a location in the rule above the clip selected to move the current time indicator to this location.
    2. Do one of the following:

    In the effect controls panel menu, click on remove effects

      • Select Clip > remove effects
      • Right-click on a clip in the timeline panel, and then choose Remove effects.

    I followed the steps and it worked, but wanted to see what would happen if the playback head was NOT above the clip (bit in blue). No matter where was the read head, effects were always removed the selected clip.

    In CS6, passing is not the playhead as indicated, is something undesirable likely to occur? Or is this an error in the PDF?

    I think that the direction of movement of the playhead to the item selected

    is in the interest of the user... to be able to see that change

    has taken place (the effects have been removed).

    You are right that the controls work with the selected clip

    is not currently displayed in the program monitor (by not

    move the playback cursor to the selected item.)

    In CS6, passing is not the playhead as indicated, is something undesirable likely to occur?

    The thing just maybe not desirable, it is that you will not see the change

    (the removal of effects) occur and can lose track of what you have done.

    Or is this an error in the PDF?

    I'm not sure you can classify this as an error or not?

    Management seems to allow a user to learn

    to see what happens when the controls are used.

  • Difficult to remove selection

    A rather stupid problem, but I can't seem to understand. Whenever I make a selection using the color range and press the Remove button to remove it, I get a small window that wants to "fill." I tried to 'Cut' and 'Clear' to get rid of the background color, but that still leaves a white background. No help on how to get this little annoying window to go further and finally I remove what I?

    The background layer supports transparency you will first need to transform into a normal layer by double-clicking on it in the layers panel.

  • How to remove select data in the control table

    This problem makes me headache.

    I'm new to labview, when data in a table. a lot of lines and columns. How can remove on the line that I chose. the other lines are remain unchanged.

    I really need help.thanks in advance. It is best to attach the labview program.my is 2009

    That kind of thing does not work with the table that's why I suggested to go for the multicolumn list box. You can do simple.

    Good luck

  • Impossible to select the properties of procedure scenarios in packages?

    Hi, I'm working on the packaging. I have scripts drag in the packages. At this point, I click on the scenarios. I want to change the propertieslike 'Asynchronously' at this point, I am unable to move and could not get the properties of scenario. Please help me, thanks in advance, A.kavya.

    its okay... the problem is been resolved.there's question about the java version. ThanQ.

  • Removes selected source Audio Player Plugin sequence

    Hi, I am a video editor with some limited programming experience and I explored the possibility of extending on all of the features of Premiere Pro. Nothing fancy or simply adding 3D features. Specifically, I want to add the ability to play a clip in the Source monitor Panel and preview audio source selected on the current sequence. This means that regardless of the audio source is activated in the sequence would monitor playback as well as the video of the source. (Avid has this feature). I have not yet found anything in the literature that suggests that the current sdk can allow this. I don't find a way to get info "on or off" in the sequence. In fact, I have not found anything on obtaining all the parameters or values of the sequence.

    Can someone point me in the right direction?

    I also wish I could add several other improvements similar to Premiere Pro. I'm not much of a programmer. It will probably take me ages to do something that a real programmer would take a few days to do, so I'm more open to anyone wishing to help. I know Premiere Pro backwards from the point of view of the user and would be ready to contribute to any effort in this particular sense.

    Hello

    Unfortunately, the current API do not have access to the areas that you are interested in using.  You may save it as a feature request:

    Adobe.com/go/Wish

    Kind regards

    Zac

  • How can I remove an item from the death of the select icons and notifications appear in the taskbar?

    When I open "Select icons and notifications appear in the task bar" one of the things it lists is "GLBD565.tmp" which seems to be left by the installation of a software product.  The icon is not active and I doubt if it still exists, but it appears in the list.  That list is maintained and how to remove the dead of her spots?

    The entries to Customize Notifications cannot be removed selectively. You can, however, clear the set lists by using the following registry change.

    1. Click Start, type regedit in the Search box and press ENTER.

    2. Locate and then click the following registry subkey:
      Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify HKEY_CURRENT_USER
    3. In the Details pane, click the IconStreams registry entry.
    4. On the Edit menu, click delete, and then click Yes.
    5. In the Details pane, click the PastIconsStream registry entry.
    6. On the Edit menu, click delete, and then click Yes.
    7. Exit Registry Editor.
    8. Restart the Explorer.exe process. To do this, follow these steps:
    9. Press CTRL + SHIFT + ESC.
    10. On the process in the Task Manager tab, click the process explorer.exe and then double click on end process .
    11. On the file menu, click new task (run), type Explorer and click OK.
    12. Exit Task Manager.

    (c) Microsoft Corporation

    -or-

    Download and run a VBScript script that automates the steps above.
    How to delete items from the Notification area in Windows 7/Vista/XP

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • How to remove grant select to one user, if this table contains public subsidies.

    Hi all

    Owner of the table gave all access to a table to the public

    for example

    >

    grant all on table1  to public;
    

    But now for a user "user1" if we remove select grant

     revoke   select  on table1 from user1;
    

    I get the error ORA-01927: cannot REVOKE privileges you did not

    OK if I revoke all access to "user1."

    revoke   all  on table1 from user1;
    

    I get Revoke succeeded.

    But always in the connection of the User1, I can select data from table1.

    Why?

    Is it because I gave all subsidies to the public?

    Above scenario must revoke the access of a user to a table that has all government subsidies.

    Yes, it's because SELECT on the table access has been granted to the PUBLIC.  The user still has the option to SELECT the table after you have removed the direct subsidies because they can always access privileges granted by the PUBLIC.

    If you want all users to have access to the table, you shouldn't be granting access to the PUBLIC in the first place.  Create a new role, grant SELECT on the table for this new role and assign this role to all users need.

    If for any reason, you're stuck with the issuance to the PUBLIC, I suppose you could create a policy from the CAE on the table that prevents the user to see all the data.  But it's a lot more work to get grants of privilege correct in the first place.

    Justin

  • Object - remove all properties

    Is it possible to remove all the properties of an object that was created by obj:Object var?

    Thank you

    Hello

    for (var name:String in obj)
    {
      delete obj[name];
    }
    

    Mike

  • M200 problems with the file properties

    M200 with a GB of memory and all the usual gubbins. Recently applied SP2. also, I tried (without success) to uninstall this P in sw A Norton anti-virus. I usually prefer a combinaiton of McAfee and Zone Alarm 2

    Problem is that when I try and select the properties of a file (that is send via an infrared connection or attach it to a message recipient), the crashses of the Explorer window. I find myself also get accidents such as

    Delay (30000 milliseconds) waiting for a response from the WZCSVC service transaction.

    I thought at some point it might be a problem with ZoneAlarm but who have turned off with no improvement.

    Any ideas?

    Hello

    I don't know, but as far as I know you can remove the Norton if you check all entries in Add and remove programs in the control panel. One of my friends told me that there are a few entries, and you must be lucky to pick a good one. As TOS said trying to work through.

  • Icon 'Remove hardware safely' missing Windows 7 ~ ~

    There is no icon 'Remove hardware safely' to the taskbar on my system tray, I could not even find custom... options:)

    There is no icon 'Remove hardware safely' to the taskbar on my system tray, I could not even find custom... options:)

    Hello

    Check the following policy.

    In Windows 7, you can set the strategy of quick deletion for an external USB device. It doesn't disable the setting cache file for the device that allows to bypass the component to safely remove.

    1. plug the device into the USB port.

    2. open the Windows Explorer, click on the device in the navigation pane , and then select the properties/material tab.

    3. Select the device in the list and click the Button properties , click the Change settings button.

    4. Select the policies tab.

    5. Select the option of rapid withdrawal .

    6. click OK/apply/OK.

    Screenshot:

    http://i196.Photobucket.com/albums/aa86/rvmv/QuickRemoval.PNG

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Cannot click on "Remove hardware" to eject external drives in the system icons tray

    First of all, it's not the usual problem whereby Windows refuses to allow me to eject a flash disk because it is in use; My problem is different.

    I can't really top click (left or right). It applies only to this icon - all others, including the management of power, wireless, bluetooth, etc work fine - touchpad driver I can click on each of them. It is very annoying, because instead of this, I have to go to my computer to eject the flash drives, which is clearly more hassle. I see no reason why this happens no matter what light you can throw on this issue would be appreciated.

    Should I reinstall the USB drivers? If so, what are those who control the external drives...?

    Note: the actual usb drives work well when connected.

    Hello

    Yes, the 3rd link is a bit complicated for Vista or Windows 7.

    Check this box:

    How can I remove hardware safely in Windows 7? (via the shortcut)
    http://windows7themes.NET/how-do-i-safely-remove-hardware-in-Windows-7-via-shortcut.html

    -------------------------------------------------------------------------

    See if this Council of Ronnie Vernon applies:

    Check the following policy.

    In Windows 7, you can set the strategy of quick deletion for an external USB device. It doesn't disable the setting cache file for the device that allows to bypass the component to safely remove.

    1. plug the device into the USB port.

    2. open the Windows Explorer, click on the device in the navigation pane , and then select the properties/material tab.

    3. Select the device in the list and click theButton properties , click theChange settings button.

    4. Select the policies tab.

    5. Select the option of rapid withdrawal .

    6. click OK/apply/OK.

    Screenshot:

    http://i196.Photobucket.com/albums/aa86/rvmv/QuickRemoval.PNG

    http://social.answers.Microsoft.com/forums/en-us/w7desktop/thread/d62556d2-b858-489D-a34f-0ec767b873f4

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for

  • Questions for access to the synchronized iCloud songs

    Hello I have problems when trying to access previously synchronized in iCloud with no local copy of the song. The song is grayed out, I can't play, there is no way to download a local copy. It appears in my library, but I can't play, it's as if it wa

  • restoring backup from itunes again iPhone 6s)

    Hi- Just got my new iPhone 6s via mail and you want to restore my old s phone backup.  Connect the phone to iTunes you are prompted and receive a message from iTunes I need a newer version updated.  My version is 12.2.2 and when I click on update, I

  • How can I remove the sender address in email before shipping

    I have an IMAC computer. My email is msn.com (Hot Microsoft mail), I would delete the senders address before forwarding.how?

  • Why I can't add more than 195 email addresses to blocked emails section

    My Yahoo Server allows to 500 addresses be added to the blocked section but I can't add more than 195 - why is this and how I overcame this problems I received many many spam

  • Download public folders does not

    For me the link of the file now works again but the download will not work. If you reach to download and choose a format you will be redirected to this URL:https://scproxy-Prod.adobecc.com/download?resource=HTTPS%3A%2f%2Fcc-EU1-Prod.adobesc.com%2% 2F