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.
Tags: After Effects
Similar Questions
-
Something is very wrong with my CC desktop installation. The icon will not be displayed in the top bar, as it always has. When I start from th finer, it starts, but when I select the Apps tab's turn for a while and then closes. Tried to reinstall downloads of Adobe. Same behavior. That is what it is?
Rdgates55 did you use the solutions on App does not open. Wheel of progress turn continuously? If yes what creative application Cloud Desktop version do you use?
-
SimpleDateFormat giving different results for the same string in the form
I use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/SimpleDateFormat.html for formatting my date and time fields.
I got a bug report that a device on English (UK) has a problem where the time turns off the screen, and I was able to reproduce this on device and Simulator.
It's the pattern string that I use: hh:mma
(hour 2 digits, colon, minute 2-digit and one letter for 'a' or 'p')
English or r I get the result you want, for example 12: 12 p '
"On English (UK), I get two letters for one / p marker, for example ' 12:12.
(as if I had used 'hh:mmaa').
What is the desired behavior? My client doesn't like it and wants a look and feel unique, with only one letter for 'a' or 'p', and I'm a little hesitatant to use aubstring...
I usually do so, but our customer asked specifically localized to the date and time formatting.
I have the model in my resource files, as the requested values are not easy to manage with the dateformat standard.Well, I have submitted comments on the entry of doc API, the doc is fake or the OS has a bug.
I use substring if the string endsWith (am or pm) now... -
Hello
I have a problem with the plugin save before exit that I downloaded from Skillbuilders. As I use Oracle APEX version 4.0.2 and Oracle 10 g r2 database; so I downloaded one that says "Save before release (version 3.0.1 for APEX 4.0)" skillbuilders and follow-up of their documentation to import the plugin and use it.
My problem is that even if I do not make any changes to data in the form and go to another tab. the alert message always appears, and by the way, I have an element of list manager on my form and it gets highlighted. So, even if I make the changes or do not change; still, the alert message is displayed and highlights the element of list manager. I think maybe the problem is to have a crèche in the form list item. I have reproduced the same problem in my personal workspace. Here are the details.
http://Apex.Oracle.com/pls/Apex/f?p=55129
Details of the workspace
Name of the workspace: raghu_workspace
username: orton607
password: orton123
App # 55129
Page: 2 - has the element of list manager.
Page 3 - works fine without the element of list manager
Please help with possible suggestions.
Thank you
Orton
Orton,
I have connected to the workspace you and added a replacement JS file that corrects this error.
If please, give it a whirl and let me know if you find other problems with it.
It is to the 3.0.2 version of the plugin and I do not know if this even fix will work for your local Apex version earlier.
When you are ready to go to the APEX 4.0.2 Please contact me directly for assistance. In the meantime, I'll work on the creation of a patch for this kind of new downloads of the plugin will contain this change.
Greg
-
How to tour calculations with two decimal places (scaling of the form)
Hello
I created an order form where customers enter the amount of product that they want to order and the form shows the total amount payable (including transport and sales tax). According to the user input, the amount total resulting sometimes contains more than two decimal places. How do I turn calculations to two decimal places? Is it possible to do this form on the scale?
I'm new to using Acrobat for calculations. Any help would be greatly appreciated! Thank you...
This should be:
Event.Value = util.printf ("%.2f", event.value);
-
Problem with character set to UTF-16 THE
Hello.
There were difficulties with change of character set, using the convert () function
The question is that in the list v$ nls_valid_values AL16UTF16LE character set does not appear, too much time the survey is conducted with success
convert ([some-national-characters], 'CL8MSWIN1251', 'AL16UTF16LE').
But to give input of data stored in a CLOB, there is an error "a character set is not supported.
What are the possible ways of the decision of a problem?You can try using DBMS_LOB. SUBSTR to access LOB data as in the following example:
SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production SQL> SQL> declare 2 v_i clob; 3 v_o clob; 4 begin 5 v_i := 'a'; 6 v_o:=convert(dbms_lob.substr(v_i,1,1),'AL16UTF16LE', 'CL8MSWIN1251'); 7 end; 8 / PL/SQL procedure successfully completed.
-
I need to know if I have a network problem or a hardware problem? My iphone 6 does not service and always looking, the wifi works. Phone has never been damaged. Sprint can't fix it, they think that its hardware problem. Factory reset did not work. Please advise?
isoldier86 wrote:
I need to know if I have a network problem or a hardware problem? My iphone 6 does not service and always looking, the wifi works. Phone has never been damaged. Sprint can't fix it, they think that its hardware problem. Factory reset did not work. Please advise?
Get help with hardware features on your iPhone, iPad and iPod touch - Apple Support
-
About a week or two ago, I received a call from someone who said it was the appeal of WINDOWS. My PCwas work perfect, but I was told there were problems.
I did not understand what problems he spoke and asked him if he had the right number. He did not ask my number when I said that if I
told him to send me a letterexplaining the problem, if something is wrong. Then, I clung to the top. Is that what you received no other complaints like that? The
next time I used the PC, something is indeed wrong - it is very slow now. I guess that Microsoft would call, not "windows". In fact
I do not believe that Microsoft would call either. Is that what sounds like someone hacked into my PC or what? Thanks for any help.
On Wednesday, September 5, 2012 18:56:47 + 0000, MartyZA wrote:
About a week or two ago, I received a call from someone who said it was the appeal of WINDOWS. My PCwas work perfect, but I was told there were problems.
I did not understand what problems he spoke and asked him if he had the right number. He did not ask my number when I said that if I
told him to send me a letterexplaining the problem, if something is wrong. Then, I clung to the top. Is that what you received no other complaints like that? The
next time I used the PC, something is indeed wrong - it is very slow now. I guess that Microsoft would call, not "windows". In fact
I do not believe that Microsoft would call either. Is that what sounds like someone hacked into my PC or what? Thanks for any help.
It was a scam and your hang up was wise. If you gave him no
in your computer, he didn't hack it.Ken Blake, Microsoft MVP
-
dynamic SQL for OPEN will not take the SQL string in the form of a string variable
Hello
I use "OPEN-for", not "EXECUTE IMMEDIATE" because I want to do multi lines request. However, 'OPEN-for' won't take a variable "strSQL' in the clause, it only took fixed ropes?
create or replace function fnEnumSystemUser
(
LogonFilter nvarchar2,
...
AdditionalWhereClause nvarchar2,
OrderByClause nvarchar2
)
RETURN xxxxx.cursorType
AS
strSQL nvarchar2 (2000);
FormatAdditionalWhereClause nvarchar2 (2000);
FormatOrderByClause nvarchar2 (2000);
SystemUserCursor xxxxx.cursorType;
BEGIN
If AdditionalWhereClause IS NULL THEN
FormatAdditionalWhereClause: = ' ';
ON THE OTHER
FormatAdditionalWhereClause: = TRIM (AdditionalWhereClause);
END IF;
If OrderByClause IS NULL THEN
FormatOrderByClause: = ' ';
ON THE OTHER
FormatOrderByClause: = TRIM (OrderByClause);
END IF;
strSQL: = 'select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id';
-It won't work, just says "WARNING: compiled, but with compilation errors" when I tried to create the function
Open SystemUserCursor for strSQL;
-This is to call "ORA-01006: bind variable does not exist.
Open SystemUserCursor
' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x: y ' using LogonFilter, OrderByClause;
-This failed also (on call, "ORA-00900: invalid SQL statement")
Open SystemUserCursor
' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x' | OrderByClause using LogonFilter;
RETURN SystemUserCursor;
END;
That's how I invoked:
declare
Int NumItemsSelected;
lstResult xxxxx.cursorType;
TYPE SystemUserRecordType IS RECORD
(
ID numeric (19.0),.
FirstName nvarchar2 (50).
MiddleName nvarchar2 (50).
LastName nvarchar2 (50).
PrimaryEmail nvarchar2 (190),
PersonType int,
CreateDate timestamp,
CreatedBy numeric (19.0),.
LastUpdate timestamp,
LastUpdateBy numeric (19.0),.
Logon nvarchar2 (75).
PasswdHash int,
IsSuspended tank,
Display timestamp
);
SystemUserRecordType oUser;
Start
lstResult: = fnEnumSystemUser (...) '%',... Person.PrimaryEmail like '% a %', "order by ASC Logon", 0, 10, NumItemsSelected);
LOOP
extract lstResult in oUser;
When the output lstResult % notfound;
dbms_output.put_line ('Id: ' | oUser.Id);
END LOOP;
end;
I need the ability to add to the SQL string because ultimately say I need to join:
1. ORDER BY section
2 call a FUNCTION in WHERE Clause
3 pagination and ROW_NUMBER() clause
What can I do? Thank you!1. why you use NVARCHAR2 to the SQL string. Use VARCHAR2 or LONG.
2. use
tags to preserve formatting of your code. 3. In the bind variable does not exist example it looks like you have one bind, :y, but are trying to bind two variables logonfilter and orderbyclause. 4. In the third example, try logging the sql string in a table or dbms_output and running it in sql - you should get the same error and it might then be easier to diagnose. Cheers, Dominic
-
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
-
I am trying to download the trial version of Adobe Pro XI but the Download Assistant does not display it in the list despite the signing in. What is wrong with him?
I had the same problem - my solution:
1. If you create a connection to Adobe, make sure that you click the verification link in the email sent to you to verify your account.
2. I leave the download Assistant, then began the process to download the original page download Assistant - he asked if I wanted to run the already downloaded version, which I chose.
3. once the download wizard opens again, I logged in using my newly created connection and then, he showed the free trial in the product list (it has not been listed as free, but it was).
My download is happening now - about 1 hour to go.
-
create the string in the array item
Problem... I want to create a unique string item. My entry is an array of integers 1 d of two elements, for example (10, 5) and the output should be a part of string in the form of "10.5." Just a single item and not a table. Any tips or ideas?
Thank you!
Table in spreadsheet string.
You may need to remove the character from end of line that arise.
Alternatively, if you know it's always 2 items. Index table and food for both outputs in Format to a string with %s, %s format code.
-
In LiveCycle Designer ES2 I can create a form and then preview and interact with the form.
This guess I just build objects by dragging the pieces pre-made object on the form (for example, text field) - which I can name, wrap in subforms something - I can add actions and all is well. When I preview the PDF, I can enter data in the fields, click on the radio buttons, making things appear that everything is great.
But LC ES2 is based on the data driven development model by, so in my case I need a form guide as well as the form - so it's better to have a model of data created in the first place - and then create the form based on the data model - then build guide form based on the data model - it is also a good idea, and I'm cool with that.
My problem is that when I'm building a data model (just for a quick and dirty development demo, not associated with services back-end or databases) and I create the form based on the data model - I can't interact with all objects in the preview pane form - further when I launch the workspace and call my process that contains the form - I even can't interact with the form.
What I am doing wrong?
Summons - I can create a form and interact with it - but If I start with a data model and generate the form based on that - I can't interact with the form (option buttons click-I can not enter data in form fields - etc) what causes this? What should I do to use a data model and be able to create an interactive form? >
Does anyone know what causes this problem? It's driving me crazy.
Thank you-
Ben
You do not hurt anuthing. It works as advertised. When you generate a Guide and work with a fml data model designer you will only create a static non-fillable PDF file. This is because when you import the model in the designer of the model must be turned in a schema. The schema may not represent constraints and validations can be encoded in the model. The only thing that can be maintained is the structure, so Designer forbids you to buidl an interactive form.
If you know what you're doing, you could take the data it is generated from the Guide and merge on a XDP template file that you create (unless he models in a first time - you can use the sample XML data as a starting point) using LC forms. Edowmside, is that if there are constraints and rules you would have to code them in the model as well. That's the way it is now there, but it will improve over time, as more of the ability of the model is exposed to the XFA world.
Hope that helps
Paul
-
Current device is registered with the former owners of Apple ID, not allow me to connect with my Apple ID?
The former owner must unlock with their password, or give you the password. Otherwise, the phone doesn't help you and no one can help you. Get your money back if you can.
What to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support
-
Reduce the size of the form when the optimizer is
With the help of Acrobat DC Pro.
I have a client who was 468kb PDF. I added all required form fields and he grew to 4.9 MB! I ran the optimizer and then the listener and he says that 90% of the font size. So I tried desincorporation all fonts, but the file is still 4.2 MB. When I check the optimizer once again, it shows no built-in fonts, but again the audit always indicates that 90% of the file size is font.
I tried the chat support. They suggested print in PDF format, making it a new PDF. But the new file does not have the form fields, which did not help. Big cat said 'Sorry' agent, he had nothing else to do...
So... what to do? It is an online form, it is not usable to 4 + MB in size. How can I get that extra small? Previous versions of these forms (made with Acro 9) were in the order of 500kb. And why the difference with what the optimizer and verification are saying about fonts?
Thank you
What you probably did was use some non-base-14 fonts in one or more of the fields. Base-14 fonts are Times, Helvetica, Courier, and a few others and include their variants bold, italics, etc.. These fonts (or adequate replacements) are integrated into Acrobat/Reader, so they do not need to be incorporated into the document. When you use a font non-base-14, Acrobat incorporates the entire in the PDF file police so that all the characters will be available when the time comes to enter text in the fields. The problem is that if you're using the built-in fonts, Acrobat does not remove the font data in the file. I reported this as a bug, but it has not been set. What you can do:
Start with a fresh PDF without all the form fields and copy the old to the new PDF form fields, but make sure that all fonts field are on Helvetica, Times, or Courier (whatever it is the fonts in the highest group in the drop-down list of fonts) before that.
If you have the right tools and you know what you're doing, hack the unused file PDF in order to remove the reference to the police so that the fonts will be deleted when you perform a save as with Acrobat.
Maybe you are looking for
-
I was able to fix this on the last FF update in the console in FF. Now I can't find the command that enables the browser to automatically find the address that I'm looking. I know that's not "fill." What happens is, I type just "mozilla" or "cnn" and
-
Qosmio F50 - cannot turn off microphone on Windows 7
Since installing windows 7, the microphone on my laptop seems to be permanently. Which is really bloody annoying when you go to your music and you get a very high feedback sound height. If anyone has had this problem or can anyone help? also the Fn k
-
How to install QuickTime Pro for Yosemite
I buy QuickTime Pro and I have only the IMAC 21.5 inch Mid 2014 1.4 GHz Intel Core i5 memory 8 GB 1600 MHz DDR3 hard drive Macintosh Yosemite. I could not improved Quick time install Quick Time pro. How can I do? Help, please.
-
Transmitter/receiver of Nano replacement for Arc keyboard
I lost my transceiver Nano and need a replacement, who, among your resellers can sell me a new TRANSMITTER/RECEIVER?
-
where can I reinstall QTFC. DLL
After doing a clean install of my computer I'm missing now QTCF. DLL. where should I go to reinstall QTCF. DLL