A hard time with resource strings...

Hello.

I'm developing my first script with graphical interface and hard times, a debugging resource string. The script works in After Effects, but won't work on ESTK.

Resource string is the best way to manage graphic or this UI elements that will recommend you guys?

Here is the code of departure:

{
function myScript(thisObj) {
    function myScript_buildUI(thisObj) {
        var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]);


        res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
                myLogo: Image{text:'Logo', image:'img/logo.png'},\
                        groupCompSize: Group{orientation:'row',\
                            myCompSizeText: StaticText{text:'Comp Size:'},\
                            myCompW: EditText{text:'1280', size: [30,15]},\
                            myCompHText: StaticText{text:'x'},\
                            myCompH: EditText{text:'720', size: [30,15]},\
                        },\
                        groupMinMax: Group{orientation:'row',\
                            myFontSizeText: StaticText{text:'Font Size:'},\
                            myMinText: StaticText{text:'Minimum'},\
                            minFontsize: EditText{text:'10', size: [30,15]},\
                            myMaxText: StaticText{text:'Maximum'},\
                            maxFontsize: EditText{text:'45', size: [30,15]},\
                        },\
                myInsertText: StaticText{text:'Insert text:'},\
                openBtn: Button{text:'Open File'},\
                myText: EditText{text:'Your text here', size: [300,200]},\
                createBtn: Button{text:'Create Layers'},\
                myProgressBar: Progressbar{text:'Progressbar Name', minvalue:0, maxvalue:100, value:0},\
        }"
        


        my

        Panel.grp = myPanel.add(res);
        myPanel.layout.layout(true);

Thanks in advance,

Jaan

If it works in AE and not in estk, the only thing I see is the path of the image file.

Try to replace the line myLogo: Image {text: 'Logo', image:'img/logo.png'},\}

by myLogo: Image {text: 'Logo'}, \

and see if you still get an error.

You can also place the add operation in a group temporary try/catch for more information about the error:

try {}

myPanel.grp = myPanel.add (res);

}

{catch (e)}

Set a breakpoint here and see in the debugger what e is on

Alert (e);

};

Xavier

Tags: After Effects

Similar Questions

  • Im trying to sinc my email contacts from my iphone to my new computerhow I can do I pluged my phone in my computer and he asked to do it but sinc everthing contacts im having a hard time with windows 10 is for the younger generation

    I am trying to sync my contacts from my iPhone to my new computer email how I do I plugged my phone into my computer and he asked to do everything but synchronize the contacts that I have a hard time with 10 windows, that's for the younger generation

    If you synchronize contacts using iCloud, you cannot synchronize them in iTunes. More information would be useful.

  • I have a hard time with my card the sound blaster z to synchronize with cs6. If someone can share with me

    I'm having a difficult time with Adobe CS6 synchronization upward with my sound card. Other applications and latency settings are difficult right now. I had 3.0, but my Windows 7 computer is now "deceased". Help, please.

    I agree with everything that comes to say Steve but to try to get you while you're shopping for an audio interface more suited for his work as a doorstop, try the following:

    Go to the windows of his control panel and make sure the SB card is enabled by default on the tabs of the recording and playback.  In the advanced for both menu, affect the bitrate of depth and sample 16/44 100 (CD) or 16/48 000 (video) depending on what suits you best.  Note that your SB card only works in native mode to 16/48 000 so anything else implies a conversion that hides the card on your part.

    Go to the control panel Windows and, under the audio section, cut all the system sounds (because they can hijack your sound card).  Close all other applications that may want to use the card (internet for example).

    In hearing, go to Edition/Preferences/Audio Hardware.  Set the class of device to Mrs on the drop down menus, set the default input and default output to your Soundblaster.  On the master clock set for SB output (it will probably default).  Set about 200ms latency (you need to maybe increase it later if your playback stutters - or you can try to decrease until you get stuttering, then take up a little bit.  Set the sample rate to what you have selected on the sound control panel.

    The Soundblaster will be probably installed its own menu of control.  Go to it and select Mic or Line according to the entry and all that you need for the output.  I can't be more precise than SB continue to change what they call things.

    I hope that'll get you even if this isn't the best compromise for quality and latency.

  • Hi, I have Photoshop CS2 9.0 and my computer crashed. I'm installing on a new PC but now its gives me a hard time with record. What can I do?

    My original machine crashed, and I had to reinstall all my programs on a new computer. Now, Photoshop tells me that I need to activate my program, but when I try it says "Activation failed because the activation server is unavailable at this time" and then he tells me to do by phone, but when I do it says "activation unsuccessful" and ends the call. Its been for me for more than a month, and now its time of crisis and I need my program. Help, please!

    Thank you

    Mike

    Please do a forum search before posting a question, Mike.  Happens here ad nauseum, at least several times a week.

    Essentially, Adobe has decommissioned servers CS2 and provided workaround for holders of CS2 in the form of a version of CS2 not requiring activation and a NEW serial number to go with it...

    Download Acrobat 7 and CS2 products

  • A hard time with the drivers for Vista Home Premium computer laptop computer network with Windows 7

    OK, I've read tons of information on that and I'm stumped.  I have an Epson Stylus CX6600 all-in-one printer.  I have my Windows vista Home premium networking with my 64-bit Windows 7 computer.  I go to the step where the machine Vista attempts to connect to the printer on the network, then it asks a driver.  The driver file is already on the vista machine.  I installed the latest drivers from Microsoft and epson on the Windows 7 machine and he always asks a driver.  Can someone point me to the exact file name and the location of the driver in the vista vista machine so I can simply copy and point to it my windows machine 7.  I did the updates from Microsoft to get all the latest drivers.  Thank you.

    You do not install the Vista drivers on Windows 7 computer.

    Repost nicely in the Forums of Networling, as it is a matter of networking:

    http://social.answers.Microsoft.com/forums/en-us/vistanetworking/threads

    Vista Networking forum at the link above.

    http://social.answers.Microsoft.com/forums/en-us/w7network/threads?filter=answered

    Windows 7 networking forum.

    See you soon.

    Mick Murphy - Microsoft partner

  • A hard time with the new synchronization

    Result insofar as the new " " https://assets.Adobe.com/appSettings ' page. .

    When I go to settings: manage: Sync Desktop, I get this message:

    Application settings are synchronized between several of your desktop applications Favorites and creative cloud, allowing you to work on a regular basis from any machine. To start the synchronization, you will need to open your client application, click on "sync settings now'. '"

    I guess that by "your client application" do they mean photoshop (or any app CC)...

    But "click"sync settings now "? Have no idea what they mean by that. Click where? I don't see Sync in any menu.

    Confused.

    Thank you.

    Well, finally did after a lot of reboot (I'm moving from one system to another on the same machine).

    I could have been using an Illustrator CC 2015 (instead of CC 2015.3) file, I have just re-recorded a different workspace and moved in the

    /Users/xxxx/Library/Preferences/Adobe illustrator 20 settings/fr_FR/workspaces / folder.

    At that time.

    Took too long and I still don't know how to do the actual work of synchronization CC, but I finally have my workspace.

  • Wrong with my setting resource string in the form in general

    Hi all

    After using AE for a decade and wrote a script for other purposes than EI, I decided to finally enter scripts for AE (CC) to make my life and the still lifes of my coworkers easier. With the help of David Torno and ScriptUI of Peter Kahrel pdf tutorials I created some very useful dockable panels who import regular models, the forms, the render-settings, watchfolders and so immediately, using the dropdownmenu, buttons and checkboxes. Smooth œuvres and we work much more effective and coherent, then before.

    All done using resource strings, as seen in episode 12 of David Torno.

    But now! The more features I want to add to my signs, I fall on the problem were I did not now how to translate "regularly" script to a resource string and I don't know if the resource string path is the right one. For example, in normal code, I know how to add a custom iconbutton:

    var importIt = myButtonGroup.add ("iconbutton", not defined, myIcon, {style: "toolbutton"});

    .. where myIcon is a var with a long chain that creates the image. This works as expected.

    However, in my resource string I don't really know how to format the string. Where should I put the string in the image?

    myIcon: IconButton {style: 'toolbutton'}, \

    I think my real question is, where can I find the different properties or the format of the resource string? I don't miss something obvious?

    Really stuck here, where my first post and hope that someone can give me a little push in the right direction. Thanks in advance.

    However, in my resource string I don't really know how to format the string. Where should I put the string in the image?

    myIcon: IconButton {style: 'toolbutton'}, \

    At the time 37:00 in 12 part 1 expisode I explain how the property 'image' for the iconButton of entry.

    http://Provideocoalition.com/pvcexclusive/video/after-effects-Extendscript-training-EP-12

    I think my real question is, where can I find the different properties or the format of the resource string? I don't miss something obvious?

    JavaScript Tools Guide CC.pdf PG. 127 explains iconButton options properties of creation as the name, the Style (button, toolbutton) and toggle. PDF of Peter Kahrel is a great resource, but you do not want also to bring pdf to Adobe. While it can be confusing to read sometimes, she holds the answers like that.

    Hope that helps.

  • Can I transfer creative suite adobe in a new hard drive with time machine if the current hard drive failed?

    My drive hard mac failed and I got a new drive to come. I save the news a few weeks before the accident with time machine.

    Can I transfer creative suite adobe in a new hard drive with time machine if the current hard drive failed?

    Hello

    Transfer of the installed application would not work properly.

    I advise you to install the application again.

    Kind regards

    Sheena

  • I used to reload a page that several times with just a long wait on the F5 key, but now it hard to do 2 refills with even a prolonged pressure on F5?

    In the past, I used to reload a page several times with just one press the F5 key, with pressing long it charge more often, now long or short by pressing the F5 key is sufficient to reload a page or two times

    OK guys, I found the problem, it was because I had MCAFEE Advisor which limited my refreshes, but when I disabled it, everything is back to normal, loool

  • How to extract the time to a string with lots of information?

    Well guys,.

    I have a question here...

    I need to extract only the TIME to a string. But that chain has a lot of information

    as a 'Identification' text data and time...

    This "Identification" may be only letters or numbers or words of 2 or 3...

    Anyone know a good way to do that?

    I tried:

    But only works if 'Identification' is only 1 Word...

    I'm using LabVIEW 7.1

    and the format is: ID - 14/04/2010 - 13:32:25

    Thank you

    Regular expression matching is available in 7.1?

    Match pattern works, too.

  • I recently bought an iphone 6s and I'm having a hard time activating my number imessage FaceTime.

    I recently bought an iphone 6s and I'm having a hard time activating my number imessage FaceTime. I migrated to an iphone 6 and where everything worked like a charm to a nightmare without end I tried all support apple suggests more change my sim card, twice, even try different phone numbers did not work. I spoke with my carrier to check any international obstacle on my serve - no luck there. Contacted by phone - apple support chance either. I EVEN DEMANDED TO REPLACE MY UNIT WITH a DIFFERENT ILS DID and guess what - STILL NOTHING! I'm running out of ideas and patience. I even tried my number deauthorised for imessage/facetime and the Lady at apple support had no idea they could that, even if Apple has a webpage set up for that matter! Last but not least, I charged a sum of rediculus of money for "Invincible" sms for activation of apple through my device for activation - ALL for NOTHING! Can someone in the Apple support give me a solution to this?

    What country are you in and who is your provider? iMessage and FaceTime activation use SMS to the Apple activation servers to the United Kingdom. If you use a carrier not supported, it may not work. If you use a supported media, make sure you have your account set up properly for an iPhone.

  • Can satellite A100 - I put the HARD drive with 7200 RPM model?

    Hello

    I have a Satellite A100-044, I would spend my the 120 GB HARD drive to a more large (250 GB or 320 GB).

    A 7200 RPM would work on this subject? It seems Web compatibility sites they show 5400 RPM more, I would like to set up my laptop for recording/mastering so music wants a fast machine, I don't really mind if it consumes more energy...

    Any thoughts?

    Thank you
    Stone

    Hello!

    Of course, you can swap the HARD drive with a model more fast using 7200 RPM. But as you say, it takes a little more energy. The new HARD drive should be a little faster, especially access time should be lower.

    250 GB or 320 GB should be possible; you need a HARD drive with SATA interface.

    I hope I could help a bit.

    Good bye

  • Why can't acquire data from strain and resistance at the same time with a NI 9219 module?

    Hello

    I use a chassis with a NI9219 module 9172 cDAQ to try to acquire the strain and resistance at the same time, with the Labview SignalExpress software.  Is this possible?  When I try to display two values of signal at the same time, I get an error of assistant DAQ 50103 'the specified resource is reserved.  The operation could not be performed as indicated.  I used to be able to acquire the strain and tension at the same time, but now even that gives me error 50103.  I have hours trying to figure this out.  Any help would be greatly appreciated.

    Thank you

    Justin

    That's all!  Thank you very much, now I can sleep tonight - seriously!

    Thanks again,

    Justin

  • Pavilion dv7-4000 1 replacement of hard drives with more

    I have a dv7-4000 series double portable hard drive running windows 7 64 bit. One of the drives died and I am looking to buy a replacement and want to upgrade, but I'm not sure if I have 2 hard disks of different sizes.

    (1) can I replace factory bad HARD drive with a larger 320? (I'd then 1 factory 320 GB drive and 1 car again, more)

    (2) is the brand of the material of hard drive (Toshiba courses)?

    (3) are there any specific specs I should look for or avoid (ie. rpm, Gbps, etc.)?

    Hi wweksjk! : Yes, you can have 2 HD with different capacities for example on my PC of Xion MSI, which was built in 2006, I had 2 HD Western Digital, respectively 160 GB & 250 GB divided into 3 partitions

    the brand name is not as important as the number of turns faster the car turns your computer will be faster

    also look at the size of the buffer on the disk as well because the more it will speed up the boot time as well

    However install a new drive as boot drive will be complex, but if you follow the instructions that come with the HD installer it is possible

    for example, a 7200 RPM drive is faster than a 5400 RPM, but not as fast as a model k 10 or 15 k

    Good luck

    hope this helps to & help

    Happy holidays!

    spacechild

  • How to copy a folder to an external hard drive with the same file on it and have it just add new files instead of replace all old already on there, as well as to add new?

    I want to copy a folder to an external hard drive with the file already on it and not having to replace all the files each time. I just want to click and drag the folder to the external hard drive and have it add new files I've added in the folder on my pc over time on the external hard drive. It's annoying to have to replace alllll the files each time.

    Thank you!

    A simple way is to use the second copy of Centered.com software. It is reasonably priced and will do exactly what you want. MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for