To access the second rectangle to layer with extendscript

Super noob question: I am trying to create a shape with two rectangles layer, but can not find a way to access / add properties (change the size, fill, stroke, etc.) to the second rectangle.

var curComp = app.project.activeItem;  
var curCompHeight = curComp.height;
var curCompWidth = curComp.width;
  
var rulerLayer = curComp.layers.addShape();   
var contents = rulerLayer.property("ADBE Root Vectors Group");
contents.addProperty("ADBE Vector Shape - Rect");
contents.addProperty("ADBE Vector Shape - Rect");
contents.property("ADBE Vector Shape - Rect")("ADBE Vector Rect Size").setValue([2,curCompHeight]);
contents(2).property("ADBE Vector Shape - Rect")("ADBE Vector Rect Size").setValue([2,curCompHeight]);

Line 10 throws an error "null is not an object. Any help would be greatly appreciated!

In line 10, either use propertyIndex (2) or remove ("ADBE vector shape - Rect"), but not both, otherwise, it is ready as

content

(2) / / the second rectangle

. Property ("ADBE Vector - Rect-shape") / / there is no so content (2) .property ("ADBE Vector - Rect-shape") is null

("ADBE vector Rect size") / / property ("ADBE vector Rect size") NULL: error

In fact, you can use one of:

happy. Property (2) .property ("ADBE vector Rect Size").setValue([2,curCompHeight]);

Happy (2) ("ADBE vector Rect Size").setValue([2,curCompHeight]);

Happy (2). Size.SetValue([2,curCompHeight]);

(In some situations, the latter can be misleading however)

There is a script (rd: Gimme Prop Path) here redefinery.com: rd: script

This explains a lot about the paths of properties

Xavier.

Tags: After Effects

Similar Questions

  • Just upgraded to El Capitan and cannot access the calendar. It opens with a "Shift schedules to the server" message Can only Force Quit

    Just upgraded to El Capitan and cannot access the calendar. It opens with a message 'Moving calendars to the server.

    I cannot access all features and can be closed only by using force quit.

    Please stop calendar and also the application of reminders, runs. Force quit if necessary.

    Back up all data.

    If you synchronize some of your calendars, or reminders with iCloud, then in the iCloud preferences window, uncheck that marked calendars and reminders. You will be prompted to confirm that you want to remove your iCloud calendars and reminders of the computer. They will always be in iCloud. Re-check the boxes.

    If you synchronize agendas or reminders with another network such as Google service, please open the preferences panel Internet accounts. Make a note of the settings for calendar accounts, then delete and recreate.

    Launch schedule and see if there is an improvement.

  • migrate from Windows 10 failure error oxc ox400d 1900 failed in the second phase of startup with the error during operation of data on my windows desktop 7

    Windows 10 has failed 75% error oxc 1900-ox 400 d has failed in the second phase of startup with the error during the operation of the Migrate_data on my windows desktop 7 using media creation tool. Help please.

    Turn off the computer.

    Wait 10 minutes.

    Start the computer.

    The installation program automatically restores your previous version of Windows 10 or an earlier version of Windows.

    Launch the prompt with administrator privileges.

    Press the Windows key + X

    Click prompt (Admin)

    Type the following command:

    Rundll32.exe pnpclean.dll, RunDLL_PnpClean /DRIVERS /MAXCLEAN

    Press enter on your keyboard

    Exit command prompt

    Restart

    • Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
    • Reboot several times and try again.
    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • Do a clean boot, and then try again.
    • If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both and try the installation again.
    • If you update via Windows Update, when download reaches 100%, disconnect the Internet LAN (Ethernet) or wireless, and proceed with the installation.
    • If this does not work, try using the. ISO file to upgrade if possible.
    • If you are connected to a domain, go to a local account
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • Update settings prevented the second office "an account with that name already exists...". »

    My provider has modernized and forces me to change the server settings. I did this successfully on a desktop computer and now I want to do this on the second and the third office where I want my accounts available e-mail.

    When I try, I get a window of the wizard account saying "an account with that name already exists. Please enter a different account name. "And I'm prevented from doing the settings made on the second Desktop server.

    How do I get around this?

    Thank you,
    DJBrewster

    Open the configuration editor and search for entries with this name

    There should be two entries with mail.server.serverXX.name (where XX is a number.) change on them and try and change the setting again.

  • How to access the Recovery Console for "fixmbr" with Toshiba Recovery DVD?

    Hello

    I searched but did not find all related messages, I start a new thread.

    I have to fix the MBR and normally you can do this via the recovery XP and then Console "fixmbr". As you may know Toshiba Recovery DVD know only in a sense - the way hard "format hdd or first partition".

    * How can I fix the MBR on the standard MBR MS when no original XP installation disk/DVD is usable - Toshiba Recovery DVD are available
    tried the XP CD from my office... but you know... it doesn´t work.

    Additional information:
    I deleted my HARD disk partition table and cannot access the first partition to a partition that would be very useful that I could try to recover this partition later - but I can't. My A200 SatPro also comes without floppy disk but can boot from USB.

    Thanks for any answer!

    Best regards
    Andreas

    Post edited by: alphasig - updated and corrected typos in page

    Yes, the thing with the recovery console fixmbr should do the trick, and I am a bit surprised that your XP from your other computer disk does not work.

    You are not able to boot from it, or what is the exact problem? Because you will not be able to repair with your recovery disk.
    Advise you to try another original XP disc, may borrow from a friend and try again. You may need to change the boot priority to operate.

  • iMac 27 "with the second monitor boots black with cursor

    I can't seem to find another discussion altogether as my problem starting special 'black screen ':

    New iMac 27 "retina 5K (end of 2015) running OS X El Capitan 10.11.3 with second monitor Samsung connected by Mini DP - DVI.  When starting, the two screens are displayed in black, but the cursor is available and can be moved.

    I have to make a hard stop and disconnect the second monitor to start at the login screen. Then I can reconnect the monitor and everything works.

    Any suggestions for a fix?

    So, I spent some time with Apple customer support. Several of the standard troubleshooting for problems of mystery, they came to the conclusion that there was an incompatibility of driver with the Samsung monitor at startup which is mucking things up, and I just have to accept starting with the second disconnected monitor then plug it in again after a successful login.

    Samsung does not write the monitor for Mac drivers (for some reason any), that's why the customer support figures that there is a hangup at startup. But why OS X recognize the monitor and run fine otherwise? Why only hang at boot time? And why my Mac Book Pro 2007 running the same version of El Capitan boot fine with the connected monitor? It has something to do with the Thunderbolt/mini-DP-to-DVI connection? I don't know, and I guess that Apple's Support is not either.

    I fell on a hack, which is as follows:

    1. start with the second monitor connected

    2. in the "black screen with cursor" hold the power button quite long to put the computer to sleep

    3 wake up the computer with the keyboard or trackpad or other

    4 and now the login screen will appear.

    5 log in as usual.

    6.

    I hope this helps someone. One day I'll get a more compatible monitor and it will not be a Samsung.

    They make nice dish, however.

  • I can access the internet in safe mode with networking; then for a short period in normal startup; but then I lose online access.

    Windows XP: internet connection

    Windows XP: I access to internet in safe mode with networking; then for a short period in normal startup; but then I lose access (IE8, Google, AOL) online. I tried several times, sometimes it seems able to stay online as long as I'm using the installation, but if I take a break, I lose access and return in safe mode.

    This question is submitted in safe mode with networking

    Hello

    Normal mode try to know what actually is the problem with the Internet connection and the components involved.

    Maybe this can help.

    For the wire connection - http://www.ezlan.net/debug.html

    For a wireless connection - http://www.ezlan.net/wireless.html

  • cannot access the files of another user with the admin account

    I'm on a computer with Windows Vista 64-bit home problems.
    I normally have the computer configured to connect automatically to a non privileged user and rarely use the admin account.
    Recently, I downloaded an update (Finally, more like a relocation to the latest version) and realized that I need the admin account to install properly for all users that UAC would make things a royal PITA with a zillion prompts.

    I quickly disconnected and logged in as admin. Then, I realized that the installation file has been stored in the "downloads" folder in my regular account.
    Worse still, I could not access this folder, or I couldn't tab of future security. All I could do was to 'change the property' to my admin account, but I really didn't block me on these issues. Even from Explorer using "run as administrator" gave me problems, although the DIR command in cmd.com would be the list of people.

    I used the "change user" function to log my account regular and checked the Security tab and saw that the "Administrators" Group had already read and checked 'total control '. Why can't access the admin account? As an admin with XP, I had free access to everything I wanted to leave that I wanted.

    What happens if I was a parent and wanted to check to make sure that my child was not software piracy or download illegal music that would get stuck with the fines because I'm his guardian? How would I go about checking his records?

    What happens if I was an employer at a small office using working groups and wanted to ensure that the employee was not downloading pornography?

    How can I use the powers of the administrator to access other files (regular) user?
    Why do I still need to ask this question? It was automatic under NT, 2000, XP and the various servers at least as high as 2003.

    I found the problem, it was ANOTHER problem with Norton Security Suite for Comcast.
    I uninstalled and did not only to release 100 GIGABYTES of space, my boot time has been cut to a quarter of the former time, and this problem has disappeared.

  • Unable to access the second switch management

    I have two switches, as follows:

    Switch #1 is a SG300-20, L3 mode, *. 254.
    VLAN3 is 192.168.3.254.
    VLAN10 is 192.168.10.x.
    VLAN20 is 192.168.20.x.
    1 port is a port of access on VLAN3.
    2-10 ports are the ports of access on VLAN10.
    11-19 ports are on VLAN20 access ports.
    20 port is a trunk, PVID VLAN3 untagged VLAN 10 and 20 are marked.
    A cable connects port 20 to port to another switch 10.

    Switch #2 is a SG300-10, L2 mode, peripheral IP set to 192.168.3.253.
    VLAN3 defined as same switch #1.
    VLAN10 is defined as same switch #1.
    VLAN20 is defined as same switch #1.
    Port 1 is access ports on VLAN3.
    2 to 5 ports are ports of access on VLAN10.
    6-9 ports are ports of access on VLAN20.
    10 port is a trunk, PVID VLAN3 untagged VLAN 10 and 20 are marked.

    The question that I have is that any PC on any port on any switch, I can browse any of the VLAN IP to *.254 and access management SG300-20.  However, if I try to go on any IP of the VLAN to the *. 253, it expires and can not access.

    The only way I can access the SG300-10 management is by directly connecting a PC to the switch 1 Port 1 or switch 2-port 1 or 10, setting the PC to a 3.x IP IP.  I can then navigate to *.253 and it works.  How can I ensure that I can access the management console from any PC to any port?  Thanks in advance.

    Either way, everything else works as it should.  The DHCP and DNS server on the switch 1 Port 9 to 192.168.20.1 works very well, and the Internet connected to switch 1 Port 2 to 192.168.10.1 is accessible on all three VLANS.

    Hello Terry, it seems that your layer 2 switch has no default gateway defined on it.

  • local host to access the vpn site to site with nat static configured

    I have two 881 routers with vpn site to site between them. I have a static nat on the router for a Web server that is accessible from the internet. I can't access the Web server through the vpn. All other traffic is fine its VPN. I think that there is a problem with the NAT. Here are the relevant configuration lines.

    IP nat inside source overload map route SDM_RMAP_1 interface FastEthernet4
    IP nat inside source static 192.168.150.2 bonnefin map route SDM_RMAP_1

    allowed SDM_RMAP_1 1 route map
    corresponds to the IP 100

    access-list 100 deny ip 192.168.150.0 0.0.0.255 192.168.123.0 0.0.0.255
    access-list 100 permit ip 192.168.150.0 0.0.0.255 any

    You should be able to access the web server with its IP private (192.168.150.2) through the VPN connection.

    If you just add the VPN and the road map, try to clear the existing translation and see if you can access it via its private of the Remote LAN VPN ip address.

  • image of the disk system reconfigured to the second drive, active C with the same license

    Can I make an image of my C drive system and then recreate the image on a second drive, activate using the same license as the first so that I can hot swap the second disc for Windows problems?

    That's what I did, but I wonder if I'll run into trouble of having both drives enabled with the same license.

    I think Windows will see the second disk as a clone of the first drive and they should not be a problem. I've heard of cloning of their C drive in case something goes wrong so they can instantly Exchange readers on people.

    No, because the partition scheme is not the same thing and also, you won't be able to activate it. You can't have multiple installations of the same license.

  • 404 error to access the administrator after installing CF10 with IIS 7.5

    I installed ColdFusion 10 on Windows 7 Ultimate with IIS running. Everything seemed fine except when he tried to launch the administrator at the end page.  I get a 404 error.  I tried to run the IISConnector.bat file and no joy.

    Any ideas?  Help.

    Nathan Manning

    The problem has been resolved with the help of a support of Coldfusion engineer.  In the end, a path corrupted to the aspnet_filter.dll for frame 4.030319.0 in the settings of the ISAPI filter in IIS.

    Thanks for trying to help.

  • Cannot access the second account username in XP

    2 two Accts user as an administrator. (his) Model of the Tower on the screen shows two usernames - click on hers & wahlah! now can chk E-mail/access to the internet, etc.  While on my acct user changed admin to Limited user (in the long run to explain why cela) with a password and clicked on.  When close now no user acct names show and cannot get a mock-up using ACCT password.  My other half is smoking like cannot enter Outlook Exp for addresses or Internet to favorite settings.  HELP PLEASE!

    * original title - Windows XP-*.

    Hi MaryWilson,

    Possibly the user account is corrupted; I suggest you try the following steps to correct the corrupted user profile

    How to copy data from a corrupted to a new profile in Windows XP user profile

    http://support.Microsoft.com/kb/811151

  • Windows 7. cannot access the menu widget to click with the right button on the desktop / gadgets

    Hoping that someone can help or has had a similar problem.

    I just bought a new PC with windows 7, get used to gadgets and was dubious about downloading msn no cert apps/gadgets...

    yesterday I downloaded a facebook gadget that worked well at first, but today there dissapeared.couldnt give a s * 1 t on the app
    but its stopped me access my gadgets list via a right click on the desktop background and selection gadgets... nothing happens, so I guess that its facebook app, I installed. If all goes well, there is a fix for this

    any help would be appreciated... ive been using xp so I havnt had the negative acknowledgement of this gadget stuff yet.

    Thanks :)

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Cannot access the internal network of VPN with PIX 506th

    Hello

    I seem to have a problem with the configuration of my PIX. I ping the VPN client from the network in-house, but cannot cannot access all the resources of the vpn client. My running configuration is the following:

    Building configuration...

    : Saved

    :

    6.3 (5) PIX version

    interface ethernet0 car

    Auto interface ethernet1

    ethernet0 nameif outside security0

    nameif ethernet1 inside the security100

    activate the encrypted password of N/JZnmeC2l5j3YTN

    2KFQnbNIdI.2KYOU encrypted passwd

    hostname SwantonFw2

    domain name * *.com

    fixup protocol dns-length maximum 512

    fixup protocol ftp 21

    fixup protocol h323 h225 1720

    fixup protocol h323 ras 1718-1719

    fixup protocol http 80

    fixup protocol rsh 514

    fixup protocol rtsp 554

    fixup protocol sip 5060

    fixup protocol sip udp 5060

    fixup protocol 2000 skinny

    fixup protocol smtp 25

    fixup protocol sqlnet 1521

    fixup protocol tftp 69

    names of

    access-list outside_access_in allow icmp a whole

    allow_ping list access permit icmp any any echo response

    allow_ping list all permitted access all unreachable icmp

    access-list allow_ping allow icmp all once exceed

    the INSIDE-IN access list allow inside the interface tcp interface outside

    list access to the INSIDE-IN permit udp any any eq field

    list access to the INSIDE-IN permit tcp any any eq www

    list access to the INSIDE-IN permit tcp any any eq ftp

    list access to the INSIDE-IN permit icmp any any echo

    the INSIDE-IN permit tcp access list everything all https eq

    permit access ip 192.168.0.0 list inside_outbound_nat0_acl 255.255.255.0 192.168.240.0 255.255.255.0

    swanton_splitTunnelAcl ip access list allow a whole

    outside_cryptomap_dyn_20 ip access list allow any 192.168.240.0 255.255.255.0

    no pager

    Outside 1500 MTU

    Within 1500 MTU

    192.168.1.150 outside IP address 255.255.255.0

    IP address inside 192.168.0.35 255.255.255.0

    alarm action IP verification of information

    alarm action attack IP audit

    IP pool local VPN_Pool 192.168.240.1 - 192.168.240.254

    location of PDM 0.0.0.0 255.255.255.0 outside

    location of PDM 192.168.1.26 255.255.255.255 outside

    location of PDM 192.168.240.0 255.255.255.0 outside

    PDM logging 100 information

    history of PDM activate

    ARP timeout 14400

    Global 1 interface (outside)

    NAT (inside) 0-list of access inside_outbound_nat0_acl

    NAT (inside) 1 192.168.0.0 255.255.255.0 0 0

    Access-group outside_access_in in interface outside

    group-access INTERIOR-IN in the interface inside

    Route outside 0.0.0.0 0.0.0.0 192.168.1.1 1

    Timeout xlate 0:05:00

    Timeout conn 01:00 half-closed 0:10:00 udp 0: CPP 02:00 0:10:00 01:00 h225

    H323 timeout 0:05:00 mgcp 0: sip from 05:00 0:30:00 sip_media 0:02:00

    Sip timeout - disconnect 0:02:00 prompt Protocol sip-0: 03:00

    Timeout, uauth 0:05:00 absolute

    GANYMEDE + Protocol Ganymede + AAA-server

    AAA-server GANYMEDE + 3 max-failed-attempts

    AAA-server GANYMEDE + deadtime 10

    RADIUS Protocol RADIUS AAA server

    AAA-server RADIUS 3 max-failed-attempts

    AAA-RADIUS deadtime 10 Server

    AAA-server local LOCAL Protocol

    Enable http server

    http 192.168.0.0 255.255.255.0 inside

    No snmp server location

    No snmp Server contact

    SNMP-Server Community public

    No trap to activate snmp Server

    enable floodguard

    Permitted connection ipsec sysopt

    Crypto ipsec transform-set ESP-DES-MD5 esp - esp-md5-hmac

    Crypto ipsec transform-set ESP-DES-SHA esp - esp-sha-hmac

    Dynamic crypto map outside_dyn_map 20 match address outside_cryptomap_dyn_20

    Crypto-map dynamic outside_dyn_map 20 the transform-set ESP-DES-MD5 value

    map outside_map 65535-isakmp ipsec crypto dynamic outside_dyn_map

    client authentication card crypto outside_map LOCAL

    outside_map interface card crypto outside

    ISAKMP allows outside

    ISAKMP identity address

    part of pre authentication ISAKMP policy 20

    encryption of ISAKMP policy 20

    ISAKMP policy 20 md5 hash

    20 2 ISAKMP policy group

    ISAKMP duration strategy of life 20 86400

    Swanton vpngroup address pool VPN_Pool

    vpngroup swanton 192.168.1.1 dns server

    vpngroup swanton splitting swanton_splitTunnelAcl tunnel

    vpngroup idle 1800 swanton-time

    swanton vpngroup password *.

    Telnet timeout 5

    SSH timeout 5

    Console timeout 0

    dhcpd address 192.168.0.36 - 192.168.0.254 inside

    dhcpd dns 8.8.8.8 8.8.4.4

    dhcpd lease 3600

    dhcpd ping_timeout 750

    dhcpd outside auto_config

    dhcpd allow inside

    scott hwDnqhIenLiwIr9B of encrypted privilege 15 password username

    username password encrypted ET3skotcnISwb3MV privilege 2 norm

    username password tarmbrecht Zre8euXN6HxXaSdE encrypted privilege 2

    username, password jlillevik 9JMTvNZm3dLhQM/W encrypted privilege 2

    username privilege 15 encrypted password 49ikl05C8VE6k1jG ruralogic

    username bzeiter 1XjpdpkwnSENzfQ0 encrypted password privilege 2

    name of user mwalla encrypted password privilege 2 l5frk9obrNMGOiOD

    username heavyfab1 6.yy0ys7BifWsa9k encrypted password privilege 2

    username heavyfab3 6.yy0ys7BifWsa9k encrypted password privilege 2

    username heavyfab2 6.yy0ys7BifWsa9k encrypted password privilege 2

    username djet encrypted password privilege 2 wj13fSF4BPQzUzB8

    username, password cmorgan y/NeUfNKehh/Vzj6 encrypted privilege 2

    username password cmayfield Pe/felGx7VQ3I7ls encrypted privilege 2

    username privilege 2 encrypted password zQEQceRITRrO4wJa jeffg

    Terminal width 80

    Cryptochecksum:9005f35a85fa5fe31dab579bbb1428c8

    : end

    [OK]

    Any help will be greatly appreciated

    BJ,

    You try to access resources behind the inside interface network?

    IP address inside 192.168.0.35 255.255.255.0

    If so, please make the following changes:

    1 SWANTON_VPN_SPLIT permit access ip 192.168.0.0 list 255.255.255.0 192.168.240.0 255.255.255.0

    2-no vpngroup swanton splitting swanton_splitTunnelAcl tunnel

    Swanton vpngroup split tunnel SWANTON_VPN_SPLIT

    outside_cryptomap_dyn_20 3-no-list of ip access allowing any 192.168.240.0 255.255.255.0

    4 - isakmp nat-traversal 30

    Let me know how it goes.

    Portu.

    Please note all useful posts

Maybe you are looking for

  • Find an airport BSSID?

    When I hold down the ALT key and click on the WiFi menu extra, I can see the BSSID of the aircraft from the airport, that I am connected. But when I opened the Utiity airport, I can't find a BSSID develop which I am connected to one (I have 5 base st

  • By clicking on the firefox icon causes the blue screen crash

    It started Friday, February 25, at mid-day. The only changes to the system this morning there were a plugin Adobe Flash player or Shockwave update, I'm not sure and an update on the Office of Scottrade Elite trading app. Two of these changes took pla

  • Hide/show the Control Panel button

    Hello people! I want to show some Boolean buttons on the control panel only if another button Boolean is true - and hide them if the button is set to false.Read some posts, but could not understand how it works with the visible property. Thanks for y

  • got my office all messed up when I can't use one of my photos on my help desk!

    I got my office all messed up where I can not post one of my pictures of my photos on my office could have something to do with the theme thing I don't know?  I don't know what I did how to fix it thank you

  • recover files from USM2T. UNC (old XP files and settings transfer tool) folder in windows 7

    Breath my old XP and put in place a new W7 Pro 64 b. stupid did me not carefully the manual before I went away to transfer all files and settings XP, the wizard files and Settings Transfer (FAST) "old." Now I'm stuck which dominates the stream _ with