I'm looking for the Scripts directory from a script.

Hi all! After playing with Photoshop scripts, I'm now playing with AE also, and in my first test I stuck to find the path of scripts from the script itself.

In Photoshop, there was this piece of code that someone in the forum scripts Photoshop kindly shared:

var scriptsPath = new folder (app.path + ' / ' + locate ("' $$$ / ScriptingSupport/InstalledScripts = settings presets/Scripts" "));

But this line does not work in After Effects because there is no variable app.path (very funny, I thought that Photoshop and After Effects share the same basic app variables) and the required path "find" does not go in AE (I think that "$$$" means nothing to her).

Can someone give me a clue on how to fix this? Thank you very much in advance :-)

This script shows some examples that you can try. The first part shows a way to get the record in that of the running script is located. The second gets the main AE app folder but I do not know if appFolder runs on Windows (you still need to add \Scripts on/SupportFiles/Scripts on Win or Mac).

var thisScript = new File($.fileName);

var containingFolder = new Folder (thisScript.parent.absoluteURI);

Alert ("this script is in" + containingFolder.absoluteURI);

var appFolder = new Folder (Folder.appPackage.parent.absoluteURI);

Alert ("the app folder is at" + Folder.decode (appFolder.absoluteURI));

Tags: After Effects

Similar Questions

  • I'm looking for the download of mail from windows to windows vista Home premium

    I'm looking for the download of mail from windows to windows vista family premium, windows mail becomes thousands of spam also sound on my computer is as well spent.

    If the computer fully-patched to Windows Update, the "latest version" of Windows Mail is already installed.

  • I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    Hi gurrus and LucD

    I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    The script should search for information in a multiple Vcenter servers and multiple clusters and list all the VMs name, status (two powers on or off) with type card NETWORK Type E1000 only no other.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp |)) Where {Get-NetworkAdapter - VM $_______ | where {$_.}} Type - eq "e1000"}})) {}

    $report += $vm. Select @{N = "VM"; E={$_. Name}},

    @{N = 'vCenter'; E={$_. Uid.Split('@') [1]. "Split(':') [0]}},"

    @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • Looking for powershell script to view the path data store policy

    Basically, I'm looking for the equivalent of powershell with esxcfg-mpath-l.

    Any help would be appreciated.

    Try the attached script.

  • Looking for the link to download HDD Recovery for Satellite L630

    Hi all

    I'm looking for the DOWNLOAD LINK of recovery of HARD drive to my new Toshiba L630 laptop.
    I read in several positions and the manuals it should be already on my hard drive.
    But this isn't on my hard drive, where it is connected with the restoration of the system, I even created a system restore disk, but there is no trace of any disk HARD Recovery Utility.

    This is the list of files create

    # Created on 2011-03-15 04:00 with Lister directory v0.9

    Name size Date time Attr

    e:\ (1) 175 703 783 -----

    2011-03-12 16:27 r-
    2011-03-12 16:27 r-
    Bootmgr 383 562 2011-03-12 16:27 r -.

    e:\boot\ (3) 3 433 472 2011-03-12 16:27 r -.

    BCD 262 144 2011-03-12 16:27 r -.
    BootFix.bin 1 024 2011-03-12 16:27 r -.
    Boot.SDI 3 170 304 2011-03-12 16:27 r -.

    e:\sources\ (1) 171 886 749 2011-03-12 16:27 r-
    Boot.wim 171 886 749 2011 - 03 - 12 16:27 r -.

    Hello

    HARD drive recovery can not be downloaded.
    You can not download the recovery disc as well.

    Generally, recovery disc HARD must be available on your laptop and you should be able to start this pressing F8 at the beginning of the initialization.
    Simply said: turn on the device, press F8 immediately after the laptop was turned on maybe you will have to press F8 several times in the line
    Then choose fix my computer and then you should see the drive HARD recovery option.

    If this is not available (no matter why), then you must create a recovery disc using called Recovery disk Creator tool that must be preinstalled on the laptop.

    If you are not able to create the recovery disk then you can order it from here:
    http://backupmedia.Toshiba.EU/landing.aspx

  • Looking for a script or plug-in

    Greetings from the scope,

    I'm looking for a script or a plug that can cut a layer (even if it only works on a form or a solid) and cut in non-uniform shapes or masks.

    I looked around and found a couple of things, but nothing that creates non-uniform shapes.  Think like a random shocks, except the script would create non-uniform shapes or masks of the initial or solid form.  I hope that makes sense.

    \Thanks,

    Paul

    Maybe it would work. Set up a document Illustrator the size of the layer you want to split into triangles. Create a rectangle. Switch to the line tool and draw a bunch of lines crossing the rectangle using the bearings commented to align the edges and vertices.

    Select all and then use the pathfinder - fracture for a group:

    Select the layer group and sequence layers allows to separate all the triangles in layers:

    Drag each new layer above layer 1 and import the file HAVE as a model to get perfectly matching triangles

    One is irrelevant, so you can see them. Another option would be to select all and copy and then go to the AE and paste to create a mask for each of the forms.

    It takes about 2 minutes.

  • Satellite U500 (PSU9ME) - I am looking for the display Windows 7 driver

    I'm looking for the U500 PSU9ME video card driver. My Windows 7 32-bit operating system

    Please help me...

    Hello

    Have you checked the Web from Toshiba site?
    I don't think because there, you can download it: ;)

    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers
    Laptop-online Satellite > Satellite U series > Satellite U500

    Check this box!

  • "Look for the update is not available at this time. Try again later. »

    I use a Photon on the Sprint 3 G EVDO network. When I open the settings app and click the option to check the software update from Motorola, the following screen appears: "look for the update is not available at this time. Try again later. "When I'm on a Wi - Fi network, a similar message appears (no screenshots):" your device is up to date! No update is necessary at this time. "Can someone please provide more information about what exactly is the message originally in my screenshot below to appear? Thank you for your help.

    If you go to Menu > settings > Data Manager > delivery data > social apps > Sync only over wifi. If this box is checked, and that you are connected to 3g / 4g and no wifi, you will get the server is not available because you are not connected to our servers. As soon as you connect to the wifi it reconnect to our servers and see no upgrade is available or an update if one is available. Your phone works as expected.

    Mark

    Support Forums Manager

  • I'm looking for a script for a list of all IIS servers in a domain?

    I'm looking for a script VB list all IIS servers (IIS5 and 6) in a field?  If possible, the output contains the version of the IIS server.

    Thank you!

    Try asking in the IIS forums...
    http://forums.IIS.NET/

  • How do I use the sony vaio VPCEC3S0E built in motion eye camera I have attached looking for the correct drivers but could not locate them

    How do I use the sony vaio VPCEC3S0E built in motion eye camera I have attached looking for the correct drivers but could not locate them

    Hello

    Troubleshoot camera connection
    http://Windows.Microsoft.com/en-us/Windows7/Troubleshoot-camera-connection-problems

    You probably need to recharge the device drivers and camera control software (usually included
    with the drivers and installed at the same time).

    Login as an administrator.

    Double-click Control Panel / Device Manager - Imaging - writing down of the brand and model of camera.
    on this subject and on the tab of the driver is version. Now, click on update drivers (who are unable to do anything as MS
    is far behind the pilots of certification). RIGHT click on the camera - UNINSTALL - REBOOT - it
    will update the driver stack.

    Now, go to the system manufacturer's website and download the latest driver for the camera and the other related camera
    software (if not more recent get the same).

    Download - SAVE - go to them and RIGHT CLICK - RUN AS ADMIN - reboot after each driver.

    Manually look at the sites of the manufacturer for drivers.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Installation and update of drivers to 7 (update drivers manually using the methods above is preferred
    to make sure that the latest drivers from the manufacturer of system and device manufacturers are located)
    http://www.SevenForums.com/tutorials/43216-installing-updating-drivers-7-a.html

    Then let windows updates on however prevent loading of drivers who are often older than the
    those that you have installed. If updates suggests a pilot and then HIDE it and watch manually to see if their
    really is a more recent version (at the time system manufacturer and the sites of the manufacturer of the device).

    Stop Windows 7 to automatically install device drivers
    http://helpdeskgeek.com/Windows-7/stop-Windows-7-from-automatically-installing-device-drivers/

    How to disable automatic driver Installation in Windows 7 / Vista
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/

    Turn off Windows Update Device Driver search prompt in Windows 7 / Vista (for professionals,
    Ultimate and Enterprise)
    http://www.AddictiveTips.com/Windows-tips/disable-Windows-Update-device-driver-search-prompt/

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

    Check with the Sony Support, their online documentation and drivers (update or reinstall).
    and their forums.

    Sony - Contacts
    http://eSupport.Sony.com/us/Perl/contact-land.pl

    Sony - drivers
    http://eSupport.Sony.com/Perl/select-System.pl

    Sony - Support
    http://eSupport.Sony.com/

    Sony - Forum
    https://Forum.sel.Sony.com/?XID=M:Showcase:eSupport

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • HP Photosmart more B210A Laptop will not recognize when looking for the device

    I struggled to connect my laptop with the printer. Whenever I look for the printer when trying to connect it never comes up as an option to connect. All other printers come in range but not this one. If anyone has a solution thanks in advance.

    Hi QPR1882,

    What is the operating system on your computer?

    The printer has an IP address assigned?

    If Yes, what is the IP address assigned?

    HP has designed a quick and easy tool that diagnoses and solves many problems of printing, scanning and connectivity: The HP Print and Scan doctor. HP recommend you to download and install Print and scan doctor no matter what time you need to solve a problem with your HP printer from the link below. I would like to know what are the errors you receive?

    http://www.HP.com/go/tools

  • I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.

    Hello.  I'm looking for the best way and the best way to get a product key for my windows 7 Edition family.  Thanks Bob

    Original title: product windows keys 7

    The cheapest option is the OEM System Builder for Windows 7 Home Premium license, but has some license restrictions:

    Amazon.com: Windows 7 Home Premium 64 - Bit System Builder...

    The OEM of Windows 7 versions are identical to the versions commercial full license with the following exception:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades except for an upgrade to a different model motherboard

    -OEM versions does not move directly from an older Windows operating system

    What is OEM software? :
    http://support.Microsoft.com/GP/oemsupport_1/en-GB

    Licensing FAQ:
    http://www.Microsoft.com/OEM/en/licensing/sblicensing/pages/licensing_faq.aspx

    OR

    A detail that does not have these restrictions:

    Where can I still get Windows 7?

    Full version - Microsoft Windows 7 Home Premium

    Version upgrade - Microsoft Windows 7 Home Premium Upgrade

    Family Pack: Upgrade of Microsoft Windows 7 Home Premium Family Pack (3 users)

  • I'm looking for the option "Color fades" in the module slide show so I can fade between slides. Does anyone know where it is? Is the colour 'fades' referred to this paragraph:

    I'm looking for the option "Color fades" in the module slide show so I can fade between slides. Does anyone know where it is? Is the colour 'fades' referred to this paragraph:










    Fades chained Sets the time (in seconds) of the transition fade between slides.

    • To create a transition fade to a solid color between the slides, select the color option fades and then click the color box and choose a color from the pop-up window.

    See the page:

    https://helpx.Adobe.com/Lightroom/help/playing-exporting-slide-shows.html#set_slide_and_tr ansition_duration

    Thank you!

    The color fades color you're looking for is last in Lightroom 4.  It was abolished in LR 5 and beyond.  Adobe needs to update their help page to delete this paragraph.

    LR4 tutorial includes a color option in the playback area:

    LR5 tutorial does not work:

  • What is the difference between DC of Acrobat Reader and Acrobat Standard DC? I'm looking for the function to extract pages of large documents.

    What is the difference between DC of Acrobat Reader and Acrobat Standard DC? I'm looking for the function to extract pages of large documents.

    Acrobat Reader is just a viewer/reader PDF; It cannot modify or create PDFs.

    You will need Acrobat Standard or Pro to extract pages from a PDF.

  • I'm looking for the 1st working day of the week.

    Hello

    I'm looking for the 1st working day of the week except Saturday, Sunday and holidays. I have vacation, the name of the table that contains the columns HolidayDate and HolidayDescription.

    Ex:

    01/10/2011 is monday (i.e) 1st company day.check if it is in the host table, then return the result as 01/11/2011 other returns the output as a 11-1-2011(which is the first business day of this week).


    Can someone tell me the query to solve?

    Hello

    If dt is any DATE, it is the first day of work in the same week as dt:

    WITH     all_week     AS
    (
         SELECT     TRUNC (dt, 'IW') + LEVEL - 1     AS a_dt
         FROM     dual
         CONNECT BY     LEVEL <= 5
    )
    SELECT     MIN (a_dt)     AS first_work_dt
    FROM     all_week
    WHERE     a_dt     NOT IN (
                      SELECT  holiday_dt
                      FROM    holiday
                     )
    ;
    

    This assumes that you have never 5 consecutive days. (Where I work, holidays are always at least a week apart, so that's fine.)
    If you have a week's holiday, increase the number of 'magical' in the CONNECT BY clause.

    It also means that holiday.holiday_dt = TRUNC (holiday.holiday.dt).

Maybe you are looking for

  • Where are my sliders?

    I ProX logic using a Mac pro new version. Why my cursors are never in view to use to scroll vertically and horizontally. They sometimes appear, but I need them on the screen all the time please see my screenshots show no sliders (it's my computer ups

  • Classes: Component child connector does not match

    Hello I use LabVIEW classes in one of my projects and I sometimes run into this: When I create a vi child by creating a vi the appropriate name for the class of the child rather than use the built in 'create vi to replace' connector of the child comp

  • How many times can I activate my Windows Vista Ulitmate detail key on my PC even

    I format my PC frequently, I heard that you can activate a particular about 10 times on the same PC, is product key - it true? What types of changes in the computer, can affect my activation I hear by material as changes update graphic card... Thank

  • Prevent development leave Manager then moving left/right

    I have a screen with a manager at the top, lower-left editfield and a button at the bottom right. I am trying to find a way to make sure if the user tries to move their development (with wheel) left/right, it moves back and fourth between these two f

  • BlackBerry Smartphones all of a sudden!

    The button from the top on my phone will not put my 8120 in stand-by mode.  I have worked since the first day, now it does not work.  Is there a setting for this? M