change the position of several layers

Hello

I have tried many and find many things by google, but I can't find a working solution.

I have about 60 layers in my Composition. They're all the same position at the moment. The idea is to browse through the Articles and change the y-position with an offset value.

What I've learned so far is that there is a layer.property("Transform").property ('Position'). First I thought that it is a table like [x, y, z], but this seems to be only one... property.

Now I can check if my layers in the 'Position' property...... but I already knew. I found no way to set or even get all values.

I know how to set the position when I create a new layer, but this seems to be something different.

Is there a possibility to change the Position of a layer existing script?

Best regards

G

For the position or any other property in the layer, you must use the method .setValue(theNewValue).

If the property contains keyframes, or if you want to add a keyframe, it will throw an error, however, to check if the property already has keys, in this case, you can use the method .setValueAtTime(theTime, theNewValue).

Example:

Layer.Property ("Transform"). Property ('position'). SetValue ([x, y, z]);

Layer.Property("Transform") .property ("Position") .setValueAtTime (0, [x, y, z]);

Check the after effects Scripting guide (pdf) for more information on this.

Xavier

Tags: After Effects

Similar Questions

  • Change the location of several pictures at the same time?

    I see how to change the location of a photo at a time. Is it possible to change the location of several pictures at the same time?

    Thank you

    Phil

    Select the photos and info - enter the location (or any other field of the info) and it is applied to all photos

    This is described in using Photos - a good place to get help with Photos

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.

      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    LN

  • How to change the positions of xy graph scale label

    LV2013

    Is it possible to change the position of label scale at design time?  The only way I can find to move each program which is not convenient.

    Surely, it should be possible to just catch them and move?

    # You have not to save it.  But do not tell it to replace the original control that exists in the VI.

  • How can I change the position of the photo

    How can I change the position of the photo after I saw the DVD?

    I thought about it!  Thank you

  • Change the position of the icon?

    I accidentally changed the position of a few icons for various programs on my taskbar from horizontal to vertical.  This changed the size of my screen that I see that 1/2 screen at a time.  How can I change this back horizontally?

    Hello

    1. What do you mean by ½ sceen ata time?

    Make sure you to auto arrange icons is selected.

    a. right click on desktop, and select view.

    b. to select Auto Arrange icons and check.

    You can also change the resolution of the screen and check.

    Change the screen resolution

    Hope this information is useful.

  • How to change the extensions on several files with Windows 7?

    * Original title: Extentions

    How to change the extensions on several files with Windows 7?

    You hear no doubt, is that your movie software will only recognize certain types of image file formats.  If this is the case, you will need to reformat format files to any format PNG is recognizable by the software.

    Rather than we guess, please identify your «film» software

    Download and install IrfanView, which is a free utility for images.  http://www.IrfanView.com/

    IrfanView has the ability to read a great many formats of image files.  It can also convert image files formats.  And even better - for you - it can do all these things on a batch of files.

    As test, after I installed IrfanView, open one of your PNG files.  Now click on file > save as, and select the 'Save as Type' to be little matter the file type of your movie software will accept.  Save the file.  Make sure your movie software can accept the new file.

    Once you are convinced that you can modify files that you have in a format that you can use, use IrfanView

    File > Batch Conversion/Rename command.  If necessary, see IrfanView help on this topic.

  • How to change the position of the BB Menu?

    Hi all
    I would like to know how to change the position of the BB Menu. We made a personalized menu of BB and it appears in the upper right of the screen. I would like to know if it is possible to display the menu in the lower left side. We have checked RIM API, but did not find anything for this. Is there a way to do this? We could use other libraries or specific solution as it is very important for our project.

    Thank you

    Pedro

    It is not possible with the menus built-in mechanism.

    You can provide your own menu, using popupscreen and objectlistfield, for example. You can place this popup where you want.

  • change the position of the image user on the session screen in windows 7

    I want to replace the image of user on the login screen and also resize. Is this possible?

    Michalis salvation,

    Unfortunately, you cannot change the position of photo of user profile on logon screen. This function is by default design on Windows 7.

  • How do you change the position of the taskbar, right now it's on the right side

    my task bar continues to change position, and I do not know how to restore.

    Right click on a space empty in the taskbar.

    Then select on Properties.

    A window will appear, where you can change the position

    Search for "Rental of the taskbar on the screen"

    The window will appear like this:

    Change in the position you like

    * Click the stars KUDOS to say thanks

    * Click the acceptable Solution if its resolved.

  • How to change the position of 'you passed the test?

    Hello

    I need help on how to change the position of the message "congratulations, you passed the test. Perhaps the failure message.
    It should be in the Middle, but now to the left, it sinks in the background.
    I Don t see where to change it. All of the index are adjustable but it escapes me...


    Thank you very much!

    I think you are talking about the area of control on the slide to score? Move this area result or score slide himself slide.

  • Is my client using the web browser editor can change the position of text and images, the site was built with muse

    Is my client using the web browser editor can change the position of text and images, the site was built with muse and at first, tell him that he could change the text and images, but he can't change the location of contents of Th.

    Now he wants to paste and copy directly from the web browser Publisher Word and wants to change all of the place itself.

    Does someone have an answer or another solution?

    Philippe

    First of all, to answer your question about moving content. No, that is not supported.

    Then, never advised him to stick to Word what for the web. Word adds a lot of very strange code that can break your page completely. Tell him if he has a Word to add to the site to paste into Notepad or any other text editor, copy and paste to Muse.

  • How to change the position or timing of a video ads in a video player?

    I want to change the "timing" when the ads will be playing in a video player. Currently, there are rollers (played before the beginning of the video), mid-roll (played between the two) and post-rouleaux (played end of the video). To change the position, I am not able to. Help, please!

    Kind regards

    Nandini

    If you use cuepoints, change their location.

  • How to change the position of the code in a split screen?

    How one does change the position of the code in a split screen? It shows me currently right code and I need the code to be on the left.

    Thanks in advance!

    Go to the view menu and uncheck the box design on the left

  • SQL change the positive to negative

    Hello

    What is the most simple and quick way to change the positive value to the negative terminal.

    Table1:

    Salary

    23,12

    100,23

    1000,22

    53233,43

    Output should be:

    Table1:

    Salary

    -23,12

    -100,23

    -1000,22

    -53233,43

    you will be surprised, because very simple solution

    Select salary *-1 of...

    ----

    Ramin Hashimzade

  • How to change the position of the scrollbar component combobox

    Hello

    I would like to change the position of the scroll bar in a drop-down list on the right to the left box.

    Please advice.

    Thank you

    Yair Papo

    You can use the dropdown combobox property ' to reference the list component and then use the list component verticalScrollBar property to reference the scrollbar control.

    you will probably need to use the move() method to change its position rather than assign x, y properties and you will probably need to wait until the rendering is complete before attempting to assign its position.

Maybe you are looking for