Cs4 vertical Configurator Panel resize limit

Hello

Maybe this has been mentioned before, but when I try to make a custom for photoshop Cs4, Panel

the Group seems to have a vertical limit when resizing which is much more than what I initially created.

For example, this one was created in 71 x 94 and cannot be resized vertically more that the screenshot.

Anchored or not is the same

resize.png

I also tried other sizes for the original Panel.

Someone has an idea?

Thank you

Marc

Hello

There is a "resize" bug in the Configurator 1.0.

When you export a Panel and open it the first time, Panel to resize the width and height you assigned as cromaline say, after first Panel only is not resized, given that photoshop will remember last size of your Panel.

But if you resize it in a larger size exceeds the size by default photoshop (220 * 220), when next time launch photoshop

Photoshop will remember this size, then you can't resize it smaller.

There is a solution

on Windows, system go to folder C: \Documents and Settings\

Look in the "PanelSizeStore.sol" file and delete it.

Then restart photoshop, you can see the Panel resize to your original size.

Kind regards

Tags: Adobe

Similar Questions

  • Triggers a "Panel Resize" event programmatically

    I have a contextual dialog GUI VI with a structure of the event.

    I'm programatically positioning of elements on the graphical interface based on the size of the window.  I do this placement within a "Panel Resize" event if the 'law' of the event was "Maximize" or "Resized."

    I want to programmatically triggers this event to run one time when the VI launch first, to make sure that all of my items are positioned correctly (in which case anything changed during development), however, the only way I found to do this is to manually resize the window.

    Of course, one possible solution is to put the code positioning in a subvi, but for various reasons, I prefer not to do that in this case, although I'll probably have to do...

    (I tried to change the size of the screen by-1 but appears not to genereate an event).

    So, is it possible to create a similar to a property "value (signposting)"Panel Resize"event?

    Thank you!

    As you can only resize and reposition objects FP using nodes of property, I don't see advantage by keeping the functionality of a Subvi. I did this during years with a generic UI which positions most oc objects compared to limits of the FP, which is defined relative to the size of the workspace on the main desktop. You even don't need to spend in the references that you can create using the chain of appeal VI or another and get an array of references to the Panel control. As long as you set the position of each control to its name, it works quite well.

    -My user interface adds a great width text box and car spaces based on a report in a 2D auto scaling multicolumn listbox colunms (add and remove lines in function number of available pixels to play with) that I never know what resolution someone will use for their monitor, all I have to do is specify a minimum size and a maximum size that I tested!

    Think about it - you will see it is logical (also you can repel the FPUpdates until all orders are respostioned where they are expected which speeds up the process).

    James

  • Configurator panel disappears

    No idea why the content of a Configurator panel disappears when I leave Photoshop (it becomes hidden) and return? The Committee very well at the start, but when I go to another app and back, the Panel is empty. The name of the task force is there, just no content.

    I remember what happened for a while with CS5, but do not remember what the fix was.

    I'm on OS 10.6.8/PS 13.01/Configurator 3

    You need to update to 3.1.1 and export configurator and reinstall the exported extension. Exported with Configurator 3.0/3.1 extension will dispear in Photoshop 13.0.1.

  • Update the Configurator panels via the Script?

    Can I update via script/jsx panels? I don't see no callback function to do so. If there is an option please point me in the right direction.

    Thank you

    Gregor

    The content of the Panel cannot be updated programtically except for the content of the HTML widget. You can program in HTML with HTML/JavaScript widget to update the content and also can invoke to run Photoshop or InDesign ExtendScript. See "HTML sample Panel" that you can download on the home page when you open the Configurator 3.1.1.

    Another option is to use the Extension Builder to program in ActionScript.

  • Another issue of CS4 custom info panel

    Hi all

    I managed to create a Panel for CS4, which virtually replicates my CS3 Panel, using 'Generic' Panel System.  However, I don't find a way to place static text in the Panel.

    I just want simple static text in the Panel to guide the user how to complete the form. Adobe are doing this in their panels, however they are naturally created with Flex, which I did not.

    Someone else has managed all this?

    My properties.xml as it stands right now.

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < = xmlns:ui xmp_definitions ' http://ns.Adobe.com/XMP/FileInfo/UI/ ">


    "" < xmp_schema prefix = "custom" namespace = "http://pearson.com/namespace/xmp/"label ="$$$ / pearson/PanelTitle = Photoshoot Details" description = "pearson / $$ / PanelDescription =" >

    < name xmp_property = category "PEDVersion" = "internal" label = "' $$$ / pearson/presentation/intro text = this is a test" type = "text" / > "


    < / xmp_schema >

    " < prefix xmp_schema ="xmp"namespace = ' http://ns.Adobe.com/Xap/1.0/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property = category "Authors" name = "external" label = "' $$$ / iptc/core/Contact/creator = the creator name: ' type = 'text' xmp_path ="Authors"/ > "

    < / xmp_schema >

    " < prefix xmp_schema ="photoshop"namespace = ' http://ns.Adobe.com/Photoshop/1.0/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property name = "CaptionWriter" class = "external" label = "' $$$ / pearson/CollectionTitle = the title of the Collection:" type = "text" xmp_path = "CaptionWriter" / > "

    < xmp_property name = "AuthorsPosition" class = "external" label = "' $$$ / pearson/CollectionID = ID of the Collection:" type = "text" xmp_path = "AuthorsPosition" / > "

    < xmp_property name = "ModelRelease" class = "external" label = "' $$$ / pearson/ModelRelease Model = Release: ' type = 'boolean', xmp_path ="modelRelease"/ > "

    < xmp_property name = "LocationRelease" class = "external" label = "' $$$ / pearson/LocationRelease = location output: ' type = 'boolean', xmp_path ="locationRelease"/ > "

    < / xmp_schema >

    " < prefix xmp_schema = namespace"Iptc4xmpCore"=" http://IPTC.org/std/Iptc4xmpCore/1.0/xmlns/ " "label ="$$$ / pearson/Blank =" >

    < xmp_property name = "Location" category = "external" label = "' $$$ / iptc/core/Image/location = location: ' type = 'text' xmp_path = 'Location' / > "

    < ui:separator / >

    < / xmp_schema >

    " < prefix xmp_schema ="photoshop"namespace = ' http://ns.Adobe.com/Photoshop/1.0/ " "label ="$$$ / pearson/text of presentation/image = Image details ' >

    < xmp_property name = "Headline" class = "external" label = "' $$$ / iptc, core, content, Headline = legend: ' type = 'text' xmp_path ="Title"/ > "

    < / xmp_schema >

    < / xmp_definitions >

    Thanks much for any help you can provide.

    James

    James,

    "BOLD" is what you get with this method.

    The tool tip help style (via the pointer of the mouse on the property tag) for each property (description =) is probably support for your task. I used paragraphs with this installation.

    Carl

  • Configuration panel before LabView 8.5

    Hello

    I managed to change the cover of my main VI accidentally (I think that shortcut keys).

    Can someone tell me how to sort this please? Please note a black band on the top and the scrolling offset in the file bar attached.

    Thanks in advance,

    aCe

    Hello

    You can attach your VI so I can have a look and try and change the appearance?

    I don't know a quick fix to simply return to its original state. You will perhaps copy and paste the block diagram to another VI and reconfigure the front panel on the new VI.

    Concerning

  • Adobe Acrobat 9 Pro that came with my Adobe Design Premium CS5 package is no more launches.  I did not any changes to my computer and I use Windows 7 Professional.  I tried to fix from my computer configuration panel.  I had a choice of modi

    Adobe Acrobat 9 Pro that came with my Adobe Design Premium CS5 package is no more launches.  I did not any changes to my computer and I use Windows 7 Professional.  I tried to fix and change of control panel of my computer and nothing was working.  Also, I tried to download the updates from Adobe by clicking on the update for Adobe Acrobat 9.5.5. The update seems to installs correctly, but the Adobe Acrobat 9 Pro cannot start.  I would like to know how to solve this problem.

    [Moved from the endorsement, general, all Adobe forums Lounge for a specific support by product - moderator forum]

    reset your preferences - https://forums.adobe.com/thread/1595848?start=0&tstart=0

  • Flash CS4: remove the Panel while testing

    It appears a sign with 'File', 'View', 'Control' and 'Debug' menu in the SWF window during the test. How can I remove it? Thank you.

    This is a normal behavior of Flash Player. If you are ready please mark helpful/correct so we can filter the questions unanswered. You're welcome and good luck!

  • Panel (packed twice) working in Photoshop CS5, but not in CS4...

    Hello

    I want to create and package a Panel for both photoshop CS5 and CS4 - it is my understanding that I create the Panel in Configurator 1.0, then have the packages generated separately, once in the Configurator 1.0 (for CS4), then exported and packaged in Configurator 2.0 (for CS5)...

    This is the procedure that I followed for a panel that contains a JPG image and 2 hypertext links set up as a script - a bit weird, but it works very well in CS5 in 64-bit Windows 7 environment (the same machine, I created and packaged on), but will work not in PS CS4 on the same windows machine , or on a PPC Mac runnning PS CS4 - all I get is a black rattrapante screen momentary, then the Panel is 'empty' (return to default gray color)...

    BTW, I did not have the chance to check it out on Mac/Photoshop CS5-

    Any ideas on what is happening here?  Any idea would be appreciated... I'm quite inexperienced with Configurator/panels, etc, just dig in, please excuse my ignorance in advance...

    Thank you and Bravo!

    John :-)

    www.wattsdigital.com

    The image is what it looks like (and work) in CS5 Win...

    cw.jpg

    Hello

    The procedure seems ok

    After creating the Panel for cs4 Configurator 1 you must package the choice of package it with xmp extension (only the xmp extension) CS4 extension manager or with the managerCS5 extension.

    To create the Panel for Ps CS5, you can create it in configurator 2 as a new Panel or import one you created in the Configurator 1 (like you), exporting again for PS CS5 and conditioning then it with Extension Manager CS5 choosing extension ZXP

    Make sure that you export the Panel for CS4 running Configurator 1 in administrator mode and try to wrap it with the CS4 extension manager.

    If all the above is ok then the issue of blank plate is to find elsewhere.

    are your default Panel in cs4 ps ok?

    Have you tried to create a different sign (to see if it has the same problem)?

    If you must check your Panel on system OSX and you have no other way to test it feel free to send me your panel for a trial

  • How do not affect the two horizontal panels when resizing the browser?

    I have two horizontal panels in a canvas. When I resize the browser (IE), PanelB straddles PanelA. How can I prevent this from happening? How can I make the panels resize when the browser is resized?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Canvas ' http://www.Adobe.com/2006/MXML "
    xmlns:controls = "org. FRB. "ATL.xxxx.UI.Controls.."
    Width = '100% '.
    Height = "100%".
    preinitialize = "PreInit () '"
    creationComplete = "init ()" >

    < mx:constraintColumns >
    < mx:ConstraintColumn id = "col1" width = "30%" / >
    < mx:ConstraintColumn id = "col2" width = "70%" / >
    < / mx:constraintColumns >

    < mx:constraintRows >
    < mx:ConstraintRow id = "row1" height = "25%" / >
    < mx:ConstraintRow id = "row2" height = "100%" / >
    < / mx:constraintRows >

    < mx:Panel id = "PanelA".
    Width = '100% '.
    Height = "100%".
    title = "search".
    left = "col1:0." »
    right = "col1:5."
    Top = "row1:0." »
    bottom = "row2:0." »
    Layout = "vertical" >

    < / mxPanel >

    < mx:Panel id = "PanelB".
    title = "items: {contentFoundCount.text} '"
    Width = '100% '.
    Height = "100%".
    left = "col2:5."
    right = "col2:0." ">


    < / mx:Panel >

    < / mx:Canvas >

    I see not the overlap, even when I resize the browser.

  • new components installed is displayed does not in the components Panel in cs4

    Hello

    I'm reading the excellent book "ActionScript 3.0 Quick Reference Guide". In some chapters, the authors ask us to install third-party components. They install in the CS4 extension manager, but for some reason that I don't know, they are not showing in the components Panel.

    I use Flash CS4... but I also have Flash 8 and Flash CS3 installed (actually, all of the suites), and he never caused problems before, so I don't think that's the problem... Furthermore, if I install in CS3, they appear in the Panel.

    FYI, I have a version of Canadian French Windows XP and I work with English Flash versions...

    In particular, extensions, I've tried are:
    -as3webservice by Pieter Michels (wellconsidered.com);
    -Library of Yahoo! Astra (by Yahoo!, of course);
    -Panel accordion V3AS3 (by JumpeyeComponents).

    Thank you.

    Well, we are making progress...

    No, there is not in this folder, but as I understand it, they shouldn't be here either, because in this case, this is the place for those default (which comes with Flash).

    Those added are in the Documents and Settings folder:
    Yes, since I installed the same components in Flash CS3 and Flash CS4 (because they were not involved in CS4), they appear in: C:\Documents and Settings\Nelson Therrien\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Components... Good.

    Now, they appear in Flash CS4 (path C:\Documents and Settings\Nelson Therrien\Local Settings\Application Data\Adobe\Flash CS4\en\Configuration\Components)... N° !!

    BUT! I don't know if it's because I tried the French version once or because I have a French operating system, but I also have a fr folder (full path: C:\Documents and Settings\Nelson Therrien\Local Settings\Application Data\Adobe\Flash CS4\fr\Configuration\Components) and... THEY APPEAR!

    So I copied them in the folder en in the file in and here! They now appear in the Flash CS4 components Panel...!

    Thank you for pointing me in the right direction!

    Nelson

  • How to keep the button in the center of the resizable dialog / Panel?

    Hi all

    Y at - it means to make a button always at the center of the dialog/Panel when I resize dialog/panel without changing the size of the image?

    I use kBindAll but will change the button frame size. Is someone can you please help me solve which?

    Screen Shot 2014-07-04 at 2.09.20 PM.png

    My attribute of the button:

    ButtonWidget

    (

    kAMPBrowseBtWidgetID,

    kSysButtonPMRsrcId, / / The Plugin ID

    kBindAll, / / binding framework

    Frame (64,220,200,246) / / Frame (4,4,265,320) / / framework

    kTrue, / / is this visible

    kTrue, / / is - this permit

    'Browse Pages', / / the string value

    ),

    Hello

    I couldn't make it work by using binding.

    There may be a better way to do it, but I got it by assigning them to kBindNone and moving the button panel resize events:

    First of all, make sure that you have a custom class for display in your control panel.

    Annotate in the file en for boss of the Group widget class with:

    IID_ICONTROLVIEW, kMyPanelViewImpl,

    Add the definitions of ID, list of factory etc. and put in place a class MyPanelView (or whatever you want to call it...), derived from PanelView, for this implementation

    Then your class of MyPanelView, put in place since the function of resizing as below:

    void MyPanelView::Resize (const PMPoint & dimensions, invalid bool16)

    {

    PanelView::Resize (dimensions, invalid);

    InterfacePtr panelData (Utils()-> QueryPanelByWidgetID (kMyPanelWidgetID));

    if(panelData == Nil) return;

    IControlView * myWidget = panelData-> FindWidget (kMyButtonWidgetID);

    If (myWidget == nil) return;

    PMRect lecadrage is myWidget-> GetFrame();.

    PMReal = left (dimensions. X() - theFrame.Width (()) / 2;

    PMReal = left + theFrame.Width ();

    theFrame.Left (left);

    theFrame.Right (right);

    myWidget-> SetFrame (lecadrage, kTrue);

    }

    You will have need of these includes:

    #include 'Utils.h.

    #include "IPalettePanelUtils.h".

    Hope that helps

  • How to install a Panel from Configurator in cc

    How do we install? convert a Configurator panel working on the CS6 in Photoshop cc?

    Moving to this discussion on the forum for General Discussion of Photoshop.

  • How to fix the 'Actionscript window too high' feared in CS4 (and Vista)

    Never encountered this? As I am especially do a lot of editing Actionscript in the flash IDE, this bug sometimes me:

    Somehow, magically, the actionscript window opens so big that it will not always be adapted to the screen and there is no chance to resize to a smaller size. In CS3, you can always change the size by dragging the top border of the window down a little. CS4 allows it more. Which is not a problem, it wouldn't be this bug (which was also in CS3, but not a big problem)

    I can only give the suggestion for Windwos Vista, I don't know how it works on other platforms, but that could be easily discovered:

    I go in this folder:

    C:\Users\[username]\AppData\Local\Adobe\Flash CS4\de\Configuration\Workspace

    And edit the xml file for the workspace I use. If you do not have one, simply save your current workspace and you will find it here.

    All windows and their settings are stored in memory in XML format.

    Now you just find the actionscript window. Just search for id = 'actions' and you have the XML definition of the actionscipt Panel.

    Change the height and the unconstrainedheight to something smaller than 500. If you restart Flash or change to this profile, the actionscript window will reappear in normal size.

    Which makes me wonder: whenever this bug occurs, the height is equal to the width in the xml file. Maybe it's the "root of all evil" Flash saves just the value of the width of the two parameters? I would rather this bug be reversed, as most of the screens are wider, they are great

    And I also wonder: If you don't start Flash CS4 in XP in Vista compatibility mode, text input is AS slow as if each letter is being rendered with a raytracer calculation high-end refractions, caustic and whatnot - but they are normal letters. At this rate, I expect at least the letters rendered as on the poster of 'life of brian '.

    Don't know if it's the same problem I have with the WINDOW get grand... but here is what I do.

    Click on the black bar at the top to minimize the window down to the small Panel.

    Click on the words to steal plate - it fits the screen.

    Drag the top or down to resize.

    Click and drag the Actions tab (or the lighter bar gray) to release the Panel reduced window.

    Boring? Yes! But you don't have quick program or go edit an XML.

  • What script to create a model with a user interface panel

    Hello guys,.

    So I am new to scripting and javascript and I'm trying to keep it simple. I'm a VJ and want to create a script where I get a 'BPM' and a 'beat' lengh and it generate me a comp with the right length and * a layer with a marker ofr each beat.

    I was able to create this script, but I try to make it look a little better with integration of the user interface for AE I wasn't able to make it work right. If anyone can help me or give me some advice. I think that I'm not good with the expression "addComp" in the buildUI function.

    I copy everythin because it is long but you'll be understaind the main idea. My question is how to that the entry in my Advanced UI instead of "the guest".

    Here is my first code that does the job:

    Elements Var Set

    var name = prompt ("membership name");

    var BPM = prompt ("your BPM");

    If (isNaN (BPM)) {}

    Alert ("you must give the model a value");

    }

    Var prompt = beats ("how many times");

    If (isNaN (Beats)) {}

    Alert ("you must give the model a value");

    }

    frameRate var = prompt ("your fps");

    If (isNaN (frameRate)) {}

    Alert ("you must give the model a value");

    }

    term var = (60 / BPM * bat); Automatically generated

    var beat = (60 / BPM);

    Part of creation

    app.project.items.addComp (name, 1920, 1080, 1, duration, frameRate); Create the model with custom Lengh

    App.Project.Item (01).layers.addSolid ([0,0,0], "BG", 1920, 1080, 1, length); Create solid BG

    var firstLayer = app.project.item (1) .layer (1);

    firstLayer.label = 16;

    App.Project.Item (01).layers.addSolid ([0,0,0], "FX", 1920, 1080, 1, length); Create sound FX

    App.Project.Item (01).layers.addNull (Duration); Create the Null object

    var firstLayer = app.project.item (1) .layer (1); Rename the Null object

    firstLayer.enabled = false;

    firstLayer.name = "Beats";

    firstLayer.label = 0;

    Place a marker on the 64 first beat

    var myMarker = new MarkerValue("0");

    firstLayer.property("Marker").setValueAtTime (beat * 0, myMarker);

    Every beat on opacity-keys

    myProperty = firstLayer.opacity;

    myProperty.setValueAtTime (beat * 0, 0);


    For reference, I'm going to place code Dan here and use line numbers, as I explained.

    Fig. A

    var name = prompt("Composition name");
    var BPM =prompt("Your BPM");
    if (isNaN(BPM)) {
        alert("You must give the comp a value");
      }
    
    var Beats = prompt("How Many Beat");
    if (isNaN(Beats)) {
        alert("You must give the comp a value");
        }
    
    var frameRate = prompt("Your fps");
    if (isNaN(frameRate)) {
        alert("You must give the comp a value");
        }
    
    var duration = ( 60  / BPM * Beats ); //Auto Generated
    var beat = (60  / BPM);
    //Creation Part
    var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); // Create Comp with Custom Lengh
    var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); // Create BG Solid
    firstLayer.label = 16;
    myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); // Create FX Solid
    firstLayer = myComp.layers.addNull(duration); // Create Null Object
    firstLayer.enabled = false;
    firstLayer.name = "Beats";
    firstLayer.label = 0;
    // Place a marker on the 64 first beat
    var myMarker = new MarkerValue("0");
    firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
    // Key every Beat on opacity
    var myProperty = firstLayer.opacity;
    myProperty.setValueAtTime(beat*0, 0);
    

    OK, so for your configuration, looks like you're striking four data sets. You have the model name (fig.) At line 1), BPM (lines 2-5 of Fig. (A), (lines 7-10 of Fig. rhythms (A) and the FPS (lines 12 to 15 of Fig. (A). then it comes to the UI, you can change what I had posted to...

    res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
    }"
    

    This will give you all entries in four data for the user interface. It is preferable to assign each control to a new variable for use in your script.

    // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    

    Once you have these variables you can then start the default implementation as appropriate. in this case, the drop-down list should be a starting point for it's selection, so that you can say to use the first default entry as follows.

    //Defaults
      fps.selection = 0;
    

    Now, you can configure your onClick for button createComp feature. This will contain to working part of the Dan code that treats everything (lines 17-33 of Fig. (A). I've added a few lines of options above this (lines B Fig. 1-7) in the below code just to match the variable names so you wouldn't need to change the code.

    Fig. B

    //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    

    Then line 2 Fig. b starts the call onClick for button and assigns a function. Within the function, we run the process. Fig. B Line 4 seizes the compName edit text attribute of the text control, using the Number() function convert us this text to a number for use online B Fig. 9 and 10 and B Fig. 5 line gets the text attribute of the text control edit BPM. Goes same for line 6 of the Fig. B and the beats variable. For line B Fig. 7, a drop-down list requires calling his selection of the attribute, then it is text attribute to get the actual string. The drop was more logical for FPS due to the standard rates that exist. This list can be changed of course to your liking. Now, there is no safety net as I like to call for the modification of the text controls to make sure text is not entered when you need a number and vice versa. It would be something of can check after line 7, Fig. B before trying to run the code in process (Fig. B lines 9-25). I hope that it will be easy enough for you to understand.

    If the script is as follows.

    {
    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'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
      }"
    
      //Add resource string to panel
      myPanel.grp = myPanel.add(res);
    
      // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    
      //Defaults
      fps.selection = 0;
    
      //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
    
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
    
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    
      //Setup panel sizing and make panel resizable
      myPanel.layout.layout(true);
      myPanel.grp.minimumSize = myPanel.grp.size;
      myPanel.layout.resize();
      myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
    
      return myPanel;
      }
    
      var myScriptPal = myScript_buildUI(thisObj);
    
      if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
      myScriptPal.center();
      myScriptPal.show();
      }
      }
    
      myScript(this);
    }
    

Maybe you are looking for