ScriptUI panel renders in ESTK but not in AE
Hi There,
I just finished watching David Torno's excellent tutorials on developing ScriptUI panels with Extendscript. I followed all of his directions, and the panel does show up as expected in my ESTK, but when I save the .jsx to the ScriptUI folder within the Script directory of AE, the panel shows up, but none of the elements I created render within the panel. It's very odd, might anybody know what I'm doing wrong?
Here is my code, which is a derivative of David's example code building ScriptUI panels with resource strings:
function templaterGUI(thisObj){
function templater_buildGUI(thisObj){
var templaterWindow = (thisObj instanceof Panel) ? thisObj : new Window('palette', 'Templater', undefined, {resizeable : true});
gui = "Group{orientation: 'column', alignChildren: 'fill',\
settings: Group{orientation: 'row', alignChildren: 'fill',\
pAssets: Panel{text: 'Assets'},\
pOptions: Panel{text: 'Render Options'},\
action: Button{text: 'Render Batch'},\
console: Panel{text: 'Status',\
msg: StaticText{text: 'Currently Idle'}},\
templaterWindow.grp = templaterWindow.add(gui);
return templaterWindow;
var templaterDock = templater_buildGUI(thisObj);
if ((templaterDock != null) && (templaterDock instanceof Window)){
templaterDock.center();
templaterDock.show();
templaterGUI(this);
Here's what it looks like when I run this code in ESTK:
I placed the script in the `ScriptUI` folder within the AE CS6 application folder, and here's what it looks like when I invoke the exact same .jsx file from `Window` menu in AE:
Maybe I overlooked something in the code that David provided in his tutorial? Can anybody offer any suggestions for debugging / troubleshooting?
Thanks for your time and help!
Hey David or Xavier,
Thanks for providing guidance on setting up the layout manager for I'm running into a similar issue with ESTK behaving differently than AE when it comes to rendering my UI controls. I'm specifically referring to a DropDownList element. In ESTK my code seems to be working fine, where I am able to see the selection elements in the DropDownList control. I can see the `items` Array appear as the list. However, in AE, I see the DropDownList control mechanism, but I no matter what, I cannot see the list of elements. Is there a specific reason that this might be happening for this DropDownList element?
Here is the portion of my resource string that is being used to generate the dropdown list:
gTemplates: Group { orientation: 'row', alignChildren: ['fill','top'], alignment: ['fill','fill'],margins: [0,10,0,0],\
lRenderTemplates : DropDownList { title: 'Render Template', titleLayout: {alignment: ['center','top'], spacing: 10} },\
lOutputModules : DropDownList { title: 'Output Module', titleLayout : {alignment: ['center','top'], spacing: 10} },\
Then I have a function in my javascript that just adds items like this, and I call it before I return templaterWindow as shown in my previous code:
function setupControls(ui) {
var options = ui.grp.settings.pOptions.optionsControls;
options.gTemplates.lRenderTemplates.add('item', "ONE");
options.gTemplates.lRenderTemplates.add('item', "TWO");
Again, it works great in ESTK where I can see the elements in the dropdown, but not in the context of running it in AE. Any ideas?
Thanks again for any help you can provide!
Similar Messages
-
How to programmatically load and show the front panel of a vi but NOT run it?
Is there a way to load and show the front panel of a vi but NOT run it? I am starting with the AsynchronousCallAndForget.vi from the example finder and inserted an invoke node with the FP Open method call prior to the Start Asynchronous Call node. The vi I am loading has the "Run when opened" unchecked and the menu bar IS visible so I can manually click the run arrow. Thanks!
Solved!
Go to Solution.Why are you using the Async call? If you simply open the VI reference, then call the FP.Open method this works fine. You can then call the VI run method with Wait Until Done set to false if you wish to run it Asynchronously, this is how we did it in ye olde days before we had this new fangled "Start Asynchronous Call" stuff.
Charles Chickering
Architecture is art with rules.
...and the rules are more like guidelines -
Able to interact with a cRIO remote front panel from one computer but not another
I have a cRIO application that publishes a remote front panel for monitoring and control of the application. From one PC (Win7 & firefox) I can see, interact and control the cRIO through the published remote front panel. From a second PC, also Win7, I can see and monitor the cRIO's state, but the remote panel that is opened does not allow for any interaction and this is true whether I'm using IE, FF or Chrome as the browser. When either PC is connected to the cRIO, it is via a dedicated Ethernet link and only the cRIO and the one PC are on that network. For this two-device private network, the PC is always at address 192.168.1.1 while the cRIO always uses 192.168.84.199 (port 8000).
The firewall rules on both PCs are setup to allow all incoming and outgoing programs/ports/protocols to be used between these two IP addresses.
Both PC's have up-to-date LabVIEW development systems installed on them (which more or less guarantees they have the minimum require LV runtime needed to see and use a remote front panel).
What might be different on the PC that view but cannot interact with the remote panel?
Solved!
Go to Solution.Sam_Sharp wrote:
Right click on the second one and select "take control of this VI".
As far as I am aware - only one viewer of the remote front panel can control the panel at any time - the rest can only view.
As I tried to say in my original post, there was only one host physically connected to the private network at any given time (by virtue of the fact that the one Ethernet cable connection to the private network was being moved back & forth between the two hosts) so there was no way both hosts could be trying to control the cRIO at the same time. I even went so far at one point of restarting the cRIO while it was connected to the problem host to see if would render it functional, but it did not.
But I did not know that it was possible to do what you suggested, much less that there was a right-click context menu associated with a remote panel, so I tried it and it worked! Thank you! -
My Spry collapsable panel works on Dreamweaver but not on my published site
I created a one page static microsite for a client and inserted Spry collapsable panel in the content div. It looks perfect on Dreamweaver and even when I previewed it on Chrome, Firefox, and Safari, it looked great. After I uploaded the page, the panel's dissapeared and the text center justified. Any help?
The site is http://www.laurawoodsexposed.com (it's a political website, not a porn website)
Any help would be great.I created a one page static microsite for a client and inserted Spry collapsable panel in the content div. It looks perfect on Dreamweaver and even when I previewed it on Chrome, Firefox, and Safari, it looked great. After I uploaded the page, the panel's dissapeared and the text center justified. Any help?
The site is http://www.laurawoodsexposed.com (it's a political website, not a porn website)
Any help would be great. -
Inputtext rendered but not editable
What is the property that makes a field to be rendered in a JSF but not editable. It only appears as an image where you can not click.
My fild has rendered by default (true), and Disabled by default (false).
The JSF is not autbinded to any JavaBean then I don't know why it can appear as erndered but disabled.
This happens when I create a new record. Some fields apper like this and others appear normal and can be edited.
Any suggestion ?I annex the piece of jspx that generates the problem.
All this objects are inside a panel box. If I remove the inlineStyle="height:250.0px;" in the panel box and leave it with the standar height, all fileds in the first two columns are not editable in firefox. In ie sometimes are editable, others are not (random) but this always happen only when I create a new record. The fields in the third column (the last one) are always editable.
If I leave the inlineStyle="height:250.0px;" then all fileds are correctly editable in both browsers.
The problem is that inlineStyle="height:250.0px;" generates a very high pael box and is not beautiful. My users will complain about this.
It seems as the botton part of the panel box geneerates a kind of shadown inside it that makes all the items in this shadow not to be editable.
The fileds in the botton part of the panel box can be made editable while the ones in the upper side are not if you make the panel box high enough for this "shadow" to affect only the booton fields.
Horrible ! Perhaps a kind of bug ?
<af:panelBox text="Datos Empresa" id="pb2" partialTriggers="t1"
visible="#{bindings.PNFVO1Iterator.currentRow!=null}"
inlineStyle="height:250.0px;">
<f:facet name="toolbar"/>
<af:panelGroupLayout id="pgl2" layout="horizontal" valign="top"
inlineStyle="height:100pt;">
<af:panelFormLayout id="pfl1" inlineStyle="vertical-align:top;">
<f:facet name="footer"/>
<af:panelLabelAndMessage label="Número" id="plam3">
<af:outputText value="#{bindings.CosNumero.inputValue}"
id="ot5">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.CosNumero.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="CIF" id="plam5">
<af:panelGroupLayout id="pgl6" layout="horizontal">
<af:inputText value="#{bindings.Idenleg.inputValue}"
required="#{bindings.Idenleg.hints.mandatory}"
columns="#{bindings.Idenleg.hints.displayWidth}"
maximumLength="#{bindings.Idenleg.hints.precision}"
shortDesc="#{bindings.Idenleg.hints.tooltip}"
id="it1" simple="true">
<f:validator binding="#{bindings.Idenleg.validator}"/>
</af:inputText>
<af:selectOneChoice value="#{bindings.TidelegCodigo.inputValue}"
label="Tipo"
required="#{bindings.TidelegCodigo.hints.mandatory}"
shortDesc="#{bindings.TidelegCodigo.hints.tooltip}"
id="soc1">
<f:selectItems value="#{bindings.TidelegCodigo.items}"
id="si1"/>
</af:selectOneChoice>
</af:panelGroupLayout>
</af:panelLabelAndMessage>
<af:selectOneChoice value="#{bindings.EstCodigo.inputValue}"
label="#{bindings.EstCodigo.label}"
required="#{bindings.EstCodigo.hints.mandatory}"
shortDesc="#{bindings.EstCodigo.hints.tooltip}"
id="soc2">
<f:selectItems value="#{bindings.EstCodigo.items}"
id="si2"/>
</af:selectOneChoice>
</af:panelFormLayout>
<af:panelFormLayout id="pfl3">
<af:inputText value="#{bindings.Nombre.inputValue}"
label="#{bindings.Nombre.hints.label}"
required="#{bindings.Nombre.hints.mandatory}"
columns="#{bindings.Nombre.hints.displayWidth}"
maximumLength="#{bindings.Nombre.hints.precision}"
shortDesc="#{bindings.Nombre.hints.tooltip}"
id="it2">
<f:validator binding="#{bindings.Nombre.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.NombreAbreviado.inputValue}"
label="#{bindings.NombreAbreviado.hints.label}"
required="#{bindings.NombreAbreviado.hints.mandatory}"
columns="#{bindings.NombreAbreviado.hints.displayWidth}"
maximumLength="#{bindings.NombreAbreviado.hints.precision}"
shortDesc="#{bindings.NombreAbreviado.hints.tooltip}"
id="it3">
<f:validator binding="#{bindings.NombreAbreviado.validator}"/>
</af:inputText>
<f:facet name="footer"/>
</af:panelFormLayout>
<af:panelFormLayout id="pfl4">
<f:facet name="footer"/>
<af:selectOneChoice value="#{bindings.IdiCodigo.inputValue}"
label="#{bindings.IdiCodigo.label}"
required="#{bindings.IdiCodigo.hints.mandatory}"
shortDesc="#{bindings.IdiCodigo.hints.tooltip}"
id="soc5">
<f:selectItems value="#{bindings.IdiCodigo.items}"
id="si5"/>
</af:selectOneChoice>
<af:inputDate value="#{bindings.Fecconsti.inputValue}"
label="#{bindings.Fecconsti.hints.label}"
required="#{bindings.Fecconsti.hints.mandatory}"
shortDesc="#{bindings.Fecconsti.hints.tooltip}"
id="id1" minValue="1800-12-02">
<f:validator binding="#{bindings.Fecconsti.validator}"/>
<af:convertDateTime pattern="#{bindings.Fecconsti.format}"/>
</af:inputDate>
</af:panelFormLayout>
<f:facet name="separator"/>
</af:panelGroupLayout>
</af:panelBox> -
I have tried to install iCloud on to my Windows Vista pc. No control panel is present and when I try to login to iCloud using my iTunes id, I am told that it is an Apple id but not set up for the cloud. without the control panel where do I set up my iCloud id?
You can not setup a new iCloud account using a PC. You must use an Apple device (Mac or iPhone/iPad) to create the account, then sign into it using your PC.
-
i downloaded the icloud to my pc it says to login with apple id and it says it is a valid apple id but not cloud but i cannot get the control panel for icloud to come up to set it up on my pc which runs windows 8
An update.
From iCloud Control Panel 2.1.1 for Windows
"iCloud Control Panel 2.1 and later includes support for Windows 8"
but you still need to set it up on a Mac or iOS device, "Note: To create an iCloud account you need an iPhone, iPad, or iPod touch with iOS 5 or later, or a Mac with OS X Lion v10.7.5 or later." -
3rd gen iPod Nano will not sync with latest version of iTunes on new laptop. It passes the connectivity test but not the sync test under diagnostics. Worked fine on old Windows 7 laptop but not new one. From Control Panel it shows up as an Apple iPod USB Device...
Never mind, I think. I think I figured it out. There was 1 song (out of > 900!) that somehow had been purchased with the other ID - I have no idea how. Once I deleted that song, it stopped asking.
There may be something with the newest iTunes version too. I didn't think in older versions that the "On this iPod" list of songs was greyed out. But at least it syncs ok. -
I downloaded the iCloud control panel on my PC but can't sign in - message says "This apple ID is valid but not an iCloud account. I've tried the account set up several times but it keeps just spinning me in circles, asking me to sign in and then I get the same message again. This is getting frustrating and I really don't seem to be able to get help. I can't contact customer support because I have a PC and there is a serial number of an apple device required.Can anyone help please?
You can't setup (create) an iCloud account using a PC. You must use an Apple device, a Mac or an iPhone etc. Once you have created an account you can sign in from your PC.
-
When iPhone is connected to PC, it shows in itunes but Autoplay does not open for me to copy photos. I tried the Control Panel, changing Autoplay settings but no use. I use a Windows Vista. Please help! All my little ones' pictures are on my iPhone 3GS.
I tried hard reset on my iPhone. I tried restarting laptop and iPhone. I tried a different laptop. I tried removing driver and reinstalling from Device Manager but did not find a driver other than "Apple Mobile Device USB Driver" under "Universal Serial Bus controllers" which I heard shouldn't be uninstalled.
Anything I haven't tried?
HELP!A bit confused by your statement
bcboarder wrote:
. I do not understand why the music is clearly on the Ipod but wont reconize it anywhere.
Are you seeing your music listed in the iPod screen, or in Win explorer as in your earlier post?
I can see all the songs in my Edrive>al's Ipod> Ipod Control> Music folder.
A corrupted iPod database, will report zero music used, and have your music size reported as others, so you wont see the music in the iPod screen. Sorry, I thought there was some hope for you with iPodAccess, in recovery of the corrupted iPod database with your ratings.
You can try to borrow and use the Mac Disk Utility ->First Aid ->Repair.
Of course, if your iPod Hardisk is in a bad state, from the Disk Diagnostic report, then all my suggestion are futile. -
opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.
Graphics card is the problem.
Trying to update drivers now.
Thanks for your help
john -
Panel Width Stays Fixed in 64-Bit but not 32-Bit
Hello all,
I've recently installed Configurator 1.0 and created my first
panel as a collection of menu commands and tools I most often use.
The panel is 800x130 (HxW) pixels. I'm running Vista 64 Ultimate
with PS CS4 32-bit & 64-bit installed, and have observed that
with the panel exported to both versions of PS, it will open in
each at a 214-pixel width as the application initializes, but then
very quickly resize to the 130-pixel width I defined. However,
while consistently true for 64-Bit PS, that is not the case for
32-Bit, where the panel commonly remains at the 214-pixel width as
often as not. This does not seem to be affected by whether the
panel is docked or undocked, or whether I've resaved a workspace or
even created a new one with the panel active. I'm not certain of
this, but it seems that if I close the panel in 32-bit PS before
closing the application, then it is more likely that if I reopen
the application and then enable the panel, it will initialize to
the correct size. Oh, and when it is at the 214-pixel width, I
cannot resize it manually. Similarly, when the panel is reopened
for editing in Configurator, it always opens at the correct
130-pixel width.
Note that the panels for each version of PS were separately
exported to the respective Plug-ins/Panels folder and I even tried
replacing the folder under the 32-bit PS with a hard link
(junction) to the Panels folder in the 64-bit PS. That made no
difference in the observed behavior other than that it does allow
one exported panel location to serve both applications. I tried the
same with a shortcut in lieu of of a junction, but that didn't seem
to work insofar as the Panels extensions being loaded.
Has anyone seen such behavior as this? It is really no more
than a nuisance, but I'd like to avoid it if possible.
Thanks,
DarylSince the Configurator doesn't include a compiler, so the flash panel generated by it doesn't have a native height and width.
So the height and width you assigned in the Configurator is saved into the .gpc file.
You observation is very sharp and accurate, when a panel is opened first time in the Photoshop.
It will show the panel in the default size first, then it will load the height and width you assigned from the .gpc file, and resize it to the size you want.
And then when you close the panel, it will save the current panel size to a flash player share object.
The next time when you open the panel, it will load the last time saved size back. -
I have two machines that are going to the same website. One machine renders the page correctly, the other enters quirks mode and nothing appears on the screen.
The machine that is not working is running OS X 10.6.4. The one that is working is running 10.4.11.
I tried deleting the preferences, and reinstalling Firefox.
This is a brand new install of the OS and was the first time we tried access this website.The problem is due to a call to getVolumeInformation. It works on my desktop but not on a different machine which has different drives and partitions etc. I'm returning the file system type of the fixed drives, however on certain fixed drives it fails. At first I thought it was failing on logical drives but that does not seem to be the case.This is nonsense in terms of your original post.
Perhaps you meant to say that some of your native methods work and others dont? And the one and only way that they don't work is because you get the link error? If yes then I already told you what the reason is.
Conversely there is some other failure, which has nothing to do with a link error. And thus it is pointless to continue to discuss this unless you actually explain what is happening. -
I have seen on this community that the earpods do not work on iPod shuffle gen 3 but when I was using on them it worked the control panel thing that is but only until I turned it off I don't understand why it won't work again and why it did in the first place can someone please explain and tell me how to make it work again
Sorry first time asking question didn't mean to write same thing twice well copy paste
-
HT1752 iMac flat panel 2003 shows airport but does not connect
Hi,iMac flat panel 2003 shows airport but does not connect
No problems.
Let's double-check your iMac's Internet Sharing configuration:
To setup for Internet Sharing (Wired to Wireless):
Setup the Network
Cable Modem > (Ethernet cable) > \[Ethernet port] iMac > (wireless) > MacBook
Enable Software Firewall (iMac)
System Preferences > Security > Firewall
o Block all incoming connections (enabled)
Enable Internet Sharing (iMac)
System Preferences > Sharing
o Select "Internet Sharing" from the options in the left column
o Share your connection from: Built-in Ethernet
o To computers using: AirPort (checked) (Note: Uncheck all other entries in the list.)
AirPort Options... (iMac)
o Network Name: <anything you want>
o Channel: Automatic
o Enable encryption <do NOT enable at this time>
o Click OK
o Select "Internet Sharing" again
o Click "Start" to start Internet Sharing
o Click Start
Please verify these settings, and try accessing the Internet from the MacBook again. For this exercise, I suggest co-locating the MacBook with the iMac.
Maybe you are looking for
-
In 2 separate 2 hour periods, my phone went through 500MB of data each period - pushing me close to my monthly limit on Verizon. I turned off Cellular Data completely, and have been trying to figure out what app is doing it. It seems to be something
-
Problem while invoking a Frame initially in a function
Hi friends here is a small problem. Please help me. i invoked a class called ShowComponents, which extends a JFrame in the begining of a function. That class has some components. But until the execution of the function that components are not visible
-
How to set the selectedIndex when dataProvider is an XML object in DropDownList?
dataProvider was an XML object How to set the selectedIndex when dataProvider is an XML object in DropDownList? I do this: <s:DropDownList id="dropDownList" requireSelection="true" selectedIndex="2" labelField="lastName" dataProvider=
-
Re: Counter in the report
Hi Gurus, Can any one help me out how can I be able to print the counter of invoice details for a check in the output of the report. I am having a report where there are 2 repetitive frames one for check number and other for invoice number. --> After
-
HT1349 how do I retrieve a message that is in power point ?
how do i retrieve a message in powerpoint on my e mail?