Is there a script to make changes specific attrubute to all layers in the project?

Hello and thanks for your time!

I have a project that contains a large number of compositions with many layers of shape of each.

Is there a way to make global changes to property size STROKE of shape layers, for example 0px 1px?

Thank you.

This should work for you. Down is the line of code that you can set the value of the width. It will look like this a.property (i) .setValue (1.0); //STROKE WIDTH VALUE

BEGINNING

var app.project = proj;

var comps = getAllProjectComps (proj);

for (var i = 0; i)

searchLayersAndChangeVal (comps [i]);

}

function getAllProjectComps (sourceFolder) {}

try {}

var itemAry, itemsInFolder, itemsInFolderLength;

itemAry = new Array();

itemsInFolder = sourceFolder.items;

itemsInFolderLength = itemsInFolder.length;

for (var i = 1; i)<=itemsInFolderLength;>

If (itemsInFolder [i] instanceof CompItem) {}

itemAry [itemAry.length] = itemsInFolder [i];

}

}

Return itemAry;

} catch (err) {alert ("error at line #" + err.line.toString () + "\r" + err.toString ()) ;}}

}

function searchLayersAndChangeVal (compSource) {}

var layerCollect = compSource.layers;

var layerCollectLength = layerCollect.length;

var curLayer, accessories, propsLength;

var propObjAry = new Array();

for (var l = 1; l)<=layerCollectLength;>

curLayer = layerCollect [l];

If (curLayer instanceof ShapeLayer) {}

getStrokeWidthAndChangeValue (curLayer);

}

}

}

function getStrokeWidthAndChangeValue (a) {}

try {}

var propLength = a.numProperties;

for (var i = 1; i)<=propLength;>

If (a.property (i) .matchName == "ADBE vector Stroke Width") {}

a.Property (i). SetValue (1.0);          VALUE OF LINE WIDTH

}

If (a.property (i) .numProperties > 0) {}

getStrokeWidthAndChangeValue (a.property (i));

}

}

} catch (err) {alert (err.line.toString () + "\r" + err.toString ()) ;}}

}

END

Tags: After Effects

Similar Questions

  • script to unlock all layers in the illustrator file

    Hello!

    I run a batch place script the name of the document in the image and then save the document, all documents in a foder.

    However, he refuses to put this text, that the target layer is blocked at the outset.

    I'm looking for, so a piece of script that I can add to this script that will be first to unlock all layers in the document.

    Can someone help me with this?

    Something like this unlocks all the layers:

    myDoc = app.activeDocument;

    myLayers = myDoc.layers;

    for (a = 0;

    myLayer = myLayers [a];

    myLayer.locked = false;

    }

    But it is not unlock all items on layers.

    HTH,

    Ariel

  • Error message "unable to make changes to parental controls settings. If the problem persists, see your system administrator"when you set parental controls for a user account

    Original title: user account with an effort of parental control

    After logging in to my admin account, I created two user accounts for my children, set up parental controls for both that I created, when I tried to set up the third account that he would allow me to activate parental control. It seems that he is trying to load the screen to give me the parental control options then the window disappers and another small window appears saying "cannot make changes to parental controls settings. If the problem persists, see your system administrator. I close the window, and then open the parental controls for other accounts, and they work very well, allows me the chance to change. I deleted the third account several times, making sure to create on behalf of others, just like I did the first two. Still no luck. Can I have only 3 total accounts? My administrator account and standard users 2.

    How can I get a standard user account third with parental controls?

    Hello

    Create a new user account and check if the problem persists, the problem does not persist in the new user account, then fix the damaged user account.

    Create a user account (Windows Vista)

    Screw a damaged profile (Windows Vista)

    Check out the link below to check if the parental control is correctly defined

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls-activity-reports

    Hope this information helps.

  • Parental controls does not: Impossible to make changes to parental controls settings. If the problem persists, see your system administrator.

    Original title: Parental control does not

    Try to set up Parental controls for my son's account. I have an account manager, go to control panel / user accounts / parental control - click on windows expects to obtain two error message with the same message: "unable to make changes to parental controls settings. If the problem persists, see your system administrator. "I'm a sysadmin, so what's the problem?

    On a side note, I have two children on this computer. Had to remove my son because he downloaded a virus. So before the two children had parental control. But when we were going to change their times permit, he would give this error message but weather changes would take place. Now that I am setting up a new account for him, can't get parental controls to work.

    Hello

    Step 1: turn off UAC (User Account Control) and check the result

    See how can I change the behavior of user account control by using the slider? :http://windows.microsoft.com/en-US/windows7/How-do-I-change-the-behavior-of-User-Account-Control-by-using-the-slider

    Note: You must restart your computer when you enable or disable UAC. Change levels of notification does not require that you restart your computer.

    Step 2: I suggest to create a new administrator account and log later in the new administrator account, try to set parental controls and check if it works.

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    Check out the link below to check if the parental control is correctly defined

    http://Windows.Microsoft.com/en-us/Windows7/set-up-parental-controls

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    For example the 'wrong' text in all the legend of failure

    You can set the default text that appears in all the legends of failure for the quiz via the parameters for the Quiz questions.  However, after you have made changes here that will affect quiz slides that you add AFTER that, change.  There is no way to change the text in all the legends of defect EXISTING at the same time.  You will have to select each one and replace the current text manually.  If you firmly believe that you will need to do this more than once, you might consider using a user Variable that displays as the value in the legends of the failure.  Then you can edit them while changing just the value of the user variable.

  • My panels disappeared.  How to make a comeback?  (I all checked, including the histogram, layers, actions and adjustments)

    My panels disappeared.  How to make a comeback?  (I all checked, including the histogram, layers, actions and adjustments)

    Hello madeline,

    Please check that you have selected the correct "essentials" workspace, if you already correct then try to restore Photoshop preferences to default.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • How can I change font family of all titles at the same time?

    I used the first cs 6 to add some titles be subtitles, but I need to change the font family, how to change their entire family of fonts at the same time? Thank you

    You can not.  For now, it's both.  But it would be nice if the PP had a kind of this feature of type CSS, where you can set fonts, sizes, colors, etc. in one 'preset' and have these parameters to ripple through all titles of the project whenever the preset has been changed.  Please tell Adobe you want such a feature.

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

  • How can I turn off the "do allow you the program following an unknown Publisher to make changes to this computer?" popup with the application compatibility Wizard? "

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup "want allow you the program following an unknown Publisher to make changes to this computer".

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup 'want allow you the program following an unknown Publisher to make changes to this computer?'.»

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    Hello

    This message appears when the application doesn't have an authority root certificate. These types of notifications can be disabled from user account control settings.
    [1] method: Using Control Panel to change UAC settings
    CAUTION: Turn off UAC is NOT recommended
    • On the start menu, select Control Panel
    • Go to system and security > Action Center
    • In the left pane, select change user account control settings
    • Drag the button scroll never notify
    • Click OK to save your settings
    OPINIONS: UAC can avoid potentially dangerous applications to make changes on your computer. Disable UAC would disable the feature for all programs and not for a specific special application.
    Thank you
    I hope this helps :)
  • Why firefox did ask to make changes to my computer whenever I open the browser. Why is the screen pixelated all?

    When click on firefox on my desktop that a message appears to ask me if I will allow firefox to make changes to my computer. It happens every time. each page is also all pixelated and barely visible. the Explorer IS NOT to do THIS.

    A possible cause of this message, it is that Firefox is configured to run as administrator.

    Make sure that Firefox is not set to run as administrator.
    Right click on the desktop Firefox shortcut and choose "Properties".

    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    • Privilege level: "Run this program as Administrator" should not be selected
    • "Run this program in compatibility mode for:" must not be selected

    Also check the firefox.exe program properties in the program Firefox (C:\Program Files\Mozilla Firefox\) folder.

  • Foglight initialize a command on the PC and run a script that makes a sound or a banner on hold the workstation?

    How can we get foglight to invoke a command on the pc and run a script that makes a noise or a banner on my computer

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/f/4788/t/19552156#14120

    The question really selectively running a sound in a JavaScript browser session, do not turn something local on the user's PC.  The Sonic equivalent of an animated GIF as an analogy.

    The most difficult part, in Java, play a sound through various types and versions of browser without opening a 'player '.  This has been an incredibly difficult task by Oracle, on behalf of the whole being.  If you really want to dive into it, here are some links:

    http://docs.Oracle.com/javase/7/docs/TechNotes/guides/sound/programmer_guide/contents.html

    One approach that seems to have some promise for very small sound files is:

    http://stephengware.com/projects/soundtoclass/

    I got no time to mess around with it yet.

    This seems to have some promise, but still once, have not figured out how to operate:

    import java.awt.Toolkit

    Toolkit.getDefaultToolkit () .beep)

  • How to make a program available to all users if the program was installed for a user

    Basically, the problem is that I created another user account, but only a few random apps appear on it and I was REALLY looking FORWARD to having to reinstall some programs + 50 so my computer can function normally on my secondary account.  I am able to find a lot of programs installed by snooping around in Explorer and have been able to run some by creating shortcuts, but many of them (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) nothing do when the .exe is open and are unusable (on this account).
    Also, I want to say there is no page support for Windows 7 that cover this topic (that I could find by using the provided search engine), and the more those (as for windows 2000) do not apply because they tell you to move files Windows has more, but it is a known problem and Microsoft should incorporate a simple way to add or remove accounts without uninstall/install programs just to be able to check a box... _ Perhaps there could even be an option for this in a very obvious place, as installed programs list of the filth or user account settings.

    Emzzey wrote:
    > Fundamentally, the problem is that I created another user account, but only a few
    > random applications appear on it and I was REALLY looking FORWARD to having to reinstall some
    > + 50 programs while my computer can run normally on my secondary account.
    > I am able to find a lot of programs installed by snooping around
    > Explore and have been able to run some by creating shortcuts, but a large number of
    > (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) don't do nothing when the .exe
    endered useless (on this account).
    >
    >
    > Also, I want to say there is no page support for Windows 7, which deal with these
    > subject (that I could find using the search engine provided) and older
    > (as for windows 2000) do not apply because they tell you to move files that
    > Windows has more, but it's a known problem and Microsoft
    > should include an easy way to add/remove programs of accounts without
    > uninstall/install just to be able to check a box... _, may be
    > could even be an option for this in a very obvious place, like user account
    > settings or the bitch list installed programs!

    Any application that is properly designed to work on Windows 7
    either would give the person making the installation option to
    make the application available to all users, or do it automatically.
    by default. It is entirely the responsibility of an application
    programmers and out of Microsoft's control. Thus, the easiest way, of
    of course, is to use an application that is designed for a multi-user operating system.
    But, unfortunately, this is not always an option, where companies must rely on
    existing proprietary applications.

    If you install the legacy application places its shortcuts
    only in the start of the person performing the installation, all the
    You may need to do is to move these Start Menu entries to the same
    location in the C:\ProgramData\Microsoft\Windows\Start start\program
    folder and/or the C:\Users\Public\Public Desktop folder.

    In addition, such an incompatible application can offer additional
    "challenges:

    You may experience problems if the software has been designed to
    Win9x / Me, or if it was intended for Windows NT / 2 K/XP, Vista/Win7, but was
    poorly designed. Quite simply, the application 'knows' how
    manage individual user with different security permissions profiles
    e going to
    'banned' sections of the Windows registry or Windows protected
    system folders.

    For example, the saved data is often stored in a subfolder under the
    folder of the application in C:\Program Files - a place where it doesn't
    the inexperienced user or limited should never have write permissions.

    It may even be that the software requires 'write' access to the parties
    the registry or the files/folders to systems protected are not normally
    accessible to regular users. (He * didn't * happen if the application is)
    correctly written.) If this does not prove that that is the case, however, you
    often left with three options: either grant the required users
    privileges of senior access (either as users with power or local
    Administrators), explicitly grant privileges for normal users
    the relevant records and/or parts or the registry or replace the
    request by another who has been properly designed especially for
    WinNT / 2 K/XP/Vista/Win7.

    Some programs do not work if you connect limited account
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; q307091

    In addition, here are some tips suggested, in response to a
    another post, MS - MVP Kent W. England:

    "If your game or your application works with administrator accounts, but not with."
    limited accounts, you can set it to allow limited users to access to the
    folder Program files with 'change' ability rather than 'read' that
    is the default value.

    C:\>Cacls "Program Files\appfolder" /e /t /p user: c

    where "appfolder" is the folder where the application is installed.

    If you want to undo these changes, then run

    C:\>Cacls "Program Files\appfolder" /e /t /p user: r

    NOTE: On Win7 Icacls.exe gives more control.

    If you still have a problem with the delivery of the program or save the settings
    on limited accounts, you may need to change the permissions in the registry
    keys. Run regedit.exe and go to HKLM\Software\vendor\app, where
    the key of the Publisher of the software used to your own
    program. Change the permissions on this key to allow users full control. »

    --

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty for a little temporary
    safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest was
    has killed a large number of philosophers.
    ~ Denis Diderot

  • Script to add the layer mask to all layers but the background?

    I have been a professional editor/Retoucher for photographers for the past three years. I use a lot of stock, but I've never branched in scripts so far. I am trying to refine my workflow and scripts to not appear to be the next logical step.

    I do a lot of work in the interiors, which is essentially manual HDR. Here's my current generation process, which I would love to find a way to script. I tried to be very clear, but let me know if it needs to expand. I use Photoshop CS5.

    1. pull brackets, color corrected TIFF in Bridge.

    2 re-order as needed, with the main exhibition downstairs. Click on 'Tools' > 'Photoshop' > 'Charge in the form of layers Photoshop"to get a PSD with layers in the correct order and main as exposure layer from bottom (base).

    3. manually go through each layer and add a layer mask hide all each layer except the background layer.

    4. Save as a PSD, using the original name of the background layer as the file name. To do this, I just copy the name of the layer (example.tiff), paste in the Save dialog box and then use the drop-down menu to select PSD (save as example.psd).

    I hope to automate steps 3 and 4 as they are the majority of your time for me. Any contribution is appreciated!

    Thanks again.

    Yes, your change is good.  This way the last layer will not have a mask applied.  I wasn't sure if you wanted that, but in the control for the background layer.

    Regarding the economy, what file format would you save on?  Here's how to save a psd:

    docRef var = activeDocument

    var doneFolder = new Folder('/c/photos/')

    var NomCouche = docRef.activeLayer.name

    var psdOptions = new PhotoshopSaveOptions();

    psdOptions.layers = true;

    app.displayDialogs = DialogModes.ALL;//include this line if you want that the coming dialog box.

    docRef.saveAs (new file (doneFolder + "/" + NomCouche + ".psd"), psdOptions);

    app.displayDialogs = DialogModes.NO;//Resets at ALL - you won't let it work on.

  • Change security groups are allowed access to the project

    Hello

    We have a project of the Disqualification in our production environment that allows only administrators to view/access it. We now allow access of data analysts. I know that we could just edit the prod Manager access security group, but due to some storage issues related to the postgres DB that uses a Disqualification, we clearly downwards and the redeployment of the Disqualification (and the project) on the prod server every two weeks. This means having to manually modify access groups after each reinstall. To save the duty of our many stop to promote a new project dxi file, is there something that can be added to all config files to allow data analysts access the project? Editing a config in our backup file would be very fast and simple.

    See you soon

    Jon

    Unfortunately, no, no.

    I can't imagine a scenario that would require the Disqualification to redeploy completely. If there is a problem of PostgreSQL, the worst case would be a fall and recreate the Pb of results, I would have thought.

  • I have a legitimate Windows XP disk, but it has not all the Service Packs. Is there a way to make another disc bootable with all three of service packs?

    I need a Windows XP bootdisk with all service packs. I have a drive (bought) under license or legitimate only it doesn't have any service pack on this disc. I downloaded all three service packs, but how do I make a Windows XP bootable disk with all three service pack on the drive also? BTW; I have Windows XP, Vista and Windows 7 partitioned on my main computer with boots double.

    The process is called "slipstreaming".  There are a number of Web sites with detailed directions.  Here are a few: http://tinyurl.com/3t3epzn

    Personally, I have had success using nLite.  Others swear by Autostreamer.  Or you can do it manually.

    There is some confusion about the "Gold" XP update (with no service pack) to SP3.  If you have installed XP Gold and you want to update your existing installation, you must update to sp1, 1A, or 2 before upgrading to sp3 again.

    For this reason, some people suggest a slipstreamed sp1a or sp2 using your CD-ROM CD but XP and then to a sp3 CD based on one that you just created.

    However, a lot of sites claim to have created a CD of sp3 XP slipstreamed successfully from a CD of XP Gold (which is what you seem to have).  See http://www.theeldergeek.com/slipstreamed_xpsp3_cd.htm

  • Is there a way to make a long audio clip that consists of the individual audio clips?

    My calendar contains 6 audio and video clips.  I need to make adjustments to the audio.  Is there a way to consolidate all 6 audio clips in a long clip that could be included on a new track, and then make the necessary adjustments to the audio project?

    Nest audio.  Pressing F1 in PP to learn how.

Maybe you are looking for

  • Update of Flash, but flash applications do not work when seen in Firefox, as they work in IE

    in many applications, there is a flash application that does not work - do not play flash movies, etc. I checked the tool and it tells me that Flash is loaded and current. I'm puzzled. It is a brand new computer.

  • XAVC 4 k 480 codec V8.0

    Haven't seen no debate yet, but it seems to me that the new 4 k 480 codec is perhaps the most exciting aspect of the latest announcements. Compressed 4 k with a minimal flow of manageable data and artifacts. Are Peter et al, we able to obtain the spe

  • Quiet clean server

    Hi all Recently, I realized that a program called "SilentCleanServer" appeared from nowhere running in my background. I tried to force it to quit, but to no avail. Tried searching with avg anti virus as well, but could not find anything with her. Thi

  • LabVIEW crashing whenever I try to execute / compile an FPGA VI

    I have a project of RT using a cRIO-9012 / 9112 and every time that I hit on the FPGA VI, the compilation process starts but immediately blocked LabVIEW.  The FPGA code is simple - just a development which is basically copied from the VI example OR f

  • Update Windows Vista comes crashing my computer

    Windows Vista today put to update (05/08/09) just crashed my main desktop computer so that all I get is a black screen and automatic troubleshooting help who do not work.  I called my repair shop and they had 5 calls today on this same problem.  Help