Scrolling group problem: not all the group with scrolling content?

Helloooow peoplez script wise.

I was biting my nails on this problem, the last two days and still have not found a solution. Go here:

I tried to make a window (or Panel actually, because ultimately it must be run from the EI > window > scriptname.jsx), with a scroll bar, which can scroll content in a group beside him. I can get the scroll and all group, but is the problem, just now, that the elements of x in the group, the last get cut. Like this (it is supposed to be 500 buttons):

Screen Shot 2015-10-13 at 21.40.05.png

The only way that I was able to get the 'internal' group grow is by not using do not align properties and manually set the .size. I know that the content is here because the last element arises, when I move the last location of points [1] upwards until he reached the top of the group. I tried to refresh the page layout (layout.layout (true); layout.resize (()) to each call of the function onChanging() of the cursor, but without success. Read a lot of forum posts beautiful and discussion by @Marc Autret and other users of scriptUI/extendscript long has this far been without success.

TL; DR: I'm doing a group with a lot of content that I can scroll with a scroll bar.

Here is the code snippet, I hope fairly well commented:

{
//scroller test
// uncomment the temp path (replace with some image file path) and the lines inside the populateGrid() function to reproduce my problem better
// I'm ussing an image 512x288 pixels


//var tempPath = "/Volumes/Verbinski/02_SCRIPTING/After_Effects/stockholm/ROOT/EXPLOSIONS/Fireball_side_01/Thumbs/Fireball_Side_01_024.jpg";


// create window
var mWin = new Window('palette');
  mWin.size = [500,500];
  mWin.orientation = 'row';


// If you like it, then you better put a scroller on it.
var scroller = mWin.add('ScrollBar');
  scroller.size = [20,mWin.size[1]-40]
  scroller.minvalue = -5;
  scroller.value = scroller.minvalue;
  scroller.maxvalue = 10000; // tried changing this to all sorts of interesting numbers.


//This should move the group, created further down.
scroller.onChanging = function(){
  grid.location = [grid.location[0],-scroller.value];
}


// "Boundary" for grid (see below)
var gridArea = mWin.add('panel',undefined,'gridArea');
  gridArea.size = [mWin.size[0]-40,mWin.size[1]-40];


// The grid... a digital fronteer... and also container of stuff
var grid = gridArea.add('panel',undefined,'grid');
  grid.size = [gridArea.size[0]-20,9000000000] // no matter how high I put this, it doesn't change a thing


// Just an array for all the images to go
var clips = [];
// Total height gets calculated in the populateGrid function.
var totalHeight = 0;


function populateGrid(rows){
  var img;
  for(i=0;i<rows;i++){
  // img = grid.add('image',undefined,tempPath);
  // clips.push(img);
  grid.add('button',undefined,i);
  }
  for(i in clips){
  clips[i].location = [0,(clips[i].image.size[1]*i)]
  }
  // totalHeight = (img.image.size[1]+grid.spacing)*rows;
  // grid.size = [grid.size[0],totalHeight]
  // scroller.maxvalue = totalHeight/2;


}


// put x number of buttons/images into the grid
populateGrid(500);


// shwo to window
mWin.show();
mWin.center();
}

Reaally hope someone here sees this and can help out me.

Cheers, Fynn.

My Control Panel:

retina 5K, 4 GHz Intel Core i7 iMac

32 GB of RAM, 512 GB SSD HARD drive

OSX Yosemite: 10.10.4

AE: CS6 |  CC 2014: 13.1.1.3

Aaalrighty, guys. It seems to me have cracked... Sort of...

David, your version worked quite well, I just modified a bit to get the right calculation.

The wheel now works as expected and the scroller.maxvalue is calculated as ((number of items) * height of the first item).

Everything works fine until I have started using the automatic layout manager. The option 'fill' at least makes it really hard to understand the final height of the internal objects. So they must be defined accordingly.

Indeed, here is my modified code (sorry, @David for resources according to the version string, you may simply copy the scroller.onChanging () and populateGrid() x parts))

{
//scroller test
// I'm using an image of around 512x288 pixels

var tempPath = "YOUR IMAGE HERE";

// create window
var mWin = new Window('palette');
  mWin.size = [500,500];
  mWin.orientation = 'row';

// If you like it, then you better put a scroller on it.
var scroller = mWin.add('ScrollBar');
  scroller.size = [20,mWin.size[1]-40]
  scroller.minvalue = 0;
  scroller.value = scroller.minvalue;
  scroller.maxvalue = 3000; // tried changing this to all sorts of interesting numbers.

//This should move the group, created further down.
var scrollDiary = 0;
scroller.onChanging = function(){
  var scrollVal = Math.abs(scroller.value)-scrollDiary;
  for(i=0;i 
         

Tags: After Effects

Similar Questions

  • My Microsoft Wireless Mouse 5000 new scrolls only in one direction in Quicken. This seems to be the only program with problems. All the answers?

    My Microsoft Wireless Mouse 5000 new scrolls only in one direction in Quicken.  This seems to be the only program with problems. All the answers?

    Hi retiredinflorida,

    Welcome to Microsoft Vista answers Forum!
     
    It is a known issue using IntelliPoint from Microsoft and Quicken software drivers.  Both parties are aware of the problem and as soon as a hotfix or patch for this problem is available it will be displayed on the Quicken Web site so check with their website on a regular basis.
     
    However, if the Microsoft Wireless Mouse 5000 problems in other applications, you can check the links below.

    The Microsoft wireless mouse does not work as expected if:

    You may want to consider this link to fix the problem: http://support.microsoft.com/default.aspx?scid=kb; EN-US; 838398

    In the case want ot uninstall and reinstall the mouse drivrs use this link: http://www.microsoft.com/hardware/windows7/support.mspx

    Hope this information is useful.
    Let me know if it worked.

    Thank you, and in what concerns:
    Aziz Nadeem - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and let us know
    what you think

  • Not all the images in camera roll synch with my photo stream

    Sometimes, not all the photos taken on a certain day through synch Camera Roll (iPhone 6s) until my photo stream.  My understanding is that, once under WiFi coverage, all photos taken by the phone's camera will synchronize with photo stream, assuming there is enough storage.  Any ideas why this might happen?  Thank you.

    My photo FAQ - Apple Support stream

    Get help using my photo stream - Apple Support

  • Playlists imported, but not all the songs won't matter

    I exported my playlists my macpro mnt lion and when I used my thumbdrive to import on my macbook pro (mavericks) some, but not all the songs from the imported selections. It just says: the files can be found--just before this that I imported the entire library, so I know that my whole library is on the macbook pro.

    Some files are mpegs and some are AAFC, but there is no correlation with what files are transferred correctly as its both.

    MacPro (mnt lion)--> macbook pro (mavericks)

    You must transfer your complete (in one piece) iTunes folder, which should include all your media files and your iTunes library database (where are stored the data supporting such as playlists, ratings, play count, date added, etc.).  Then iTunes on the new Mac looks like iTunes on the old Mac, with all your songs and playlists, because you use the SAME library. you do not add your media files to a new library.

    If you want more information on how to do it, instead of your playlist Exim problem troubleshooting, please post back.

  • Why my internet stops now and then not all the time trying to upload links to pdf files

    I wonder if there is a problem with my computer or if I need to install a program? My internet stops now and then not all the time trying to upload links to pdf files.

    Hello

    1. what browser do you use?

    2. have you done any hardware changes or software on your computer before this problem?

    3. you receive an error message when internet no longer works?

    4. what exactly you mean by pdf files download links?

    If you use Internet Explorer, you can follow this link:

    Tips for solving problems when Internet Explorer hangs or stops working

    Reference: Cannot display PDFS on the web

    Display PDF files in Internet Explorer, AOL | Acrobat 3D, Acrobat Reader 7 7

    Hope the helps of information.

  • I want to stop all the interactiom with gaming sites how can I

    How can I do this

    How your message regarding the functionality Microsoft Security Essentials?

    [This isn't, but maybe she believes MSE can control or web limits access to the site and even though we know that it does not work, she may not be aware of this and think that it might help and thus him, how it relates.]  [She's here to help, not to be asked about the reason why it knows not whether or not, or how this issue relates to MSE - perhaps that's why she asked first place.]

    @ Elizabeth,.

    MSE can not help with this problem (as you can probably answer to PA Bear).  Even if browsers can limit access to the sites, most can do under these broad categories limited as game or bad language but not 'all the gaming sites' (if you are able to find an add-on that adds this option but I couldn't not after watching for 45 minutes).

    I believe that what seek you is something along the lines of Parental controls or Windows Live Family Safety (assuming that you have a version of Windows that supports these features).

    Here's a good tutorial on how to use the Parental control: http://www.bleepingcomputer.com/tutorials/tutorial139.html.

    For specific instructions, see how to block all games (even if some may pass through, but can then be blocked individually) in Windows 7 here: http://windows.microsoft.com/en-US/windows7/Choose-which-games-children-can-play.  For Vista, see here: http://windows.microsoft.com/en-US/windows-vista/Specify-which-games-children-can-play.

    For Live Family Safety, then please see the following for assistance: http://windowslivehelp.com/solutions.aspx?productid=4 or the following for more information: http://explore.live.com/windows-live-family-safety.

    I hope this helps.

    Good luck!

  • The Inbox in the mail application does not all the messages that I can see through the Web browser

    I have a similar problem with the Mail application on Surface 2. Inbox does not all the messages that I can see through the Web browser. I chose E-mail download of any time in the account settings. But when it sync randomly takes messages in the Inbox to display. I uninstalled the app, restarted the Surface and again installed in the Windows store. But the problem remains. It's frustrating. I think the app is not fully developed.

    His works now. I did the sync and other things with no results. Then I noticed that my missing messages are somehow appearing in the file of the Newsletter. Then, I moved all the messages in the Newsletter folder in Inbox and unchecked it parameters. It's working now. There are apparently some bugs in the software that allows for the Newsletter to divert messages. In any case thanks for checking.

  • ArraytoChannels error 'cannot be added because the channels of the target are not all the same length.

    Hello!

    After the end of my second day of test error, I put this question on the table:

    I use ArraytoChannels function to store ADO recordsets as strings. What is strange, is that for the first Recordset, it works; but for the next time through the loop, it always fails with the error message 'cannot be added because the channels of the target are not all the same length.

    I confirmed that:

    the RowData sizes and the ChannelNames are equal,

    both spend the isarray = true test,

    I change the order of the ChannelNames,.

    I have reconnected/disconnected from the oConnexion every time, nothing has changed.

    Apparently I'm missing something - but crazy to know what! -If anyone can share his opinion I'll so much appriciate. Here is my code:

    oTables = Array ("WellStates", "ChokeData", "WellParameters", "FlowData", "PumpData", "SensorsData", "ModelCalculatedData")

    Call OpenSQLConnection
    Set oRecordset = CreateObject ("ADODB. Recordset')
    Call SelectWell
    Call GetWellStateIDs

    Data.Root.Clear
    for j = 0 to ubound(oTables,1)

    sSQLSting = "select * []" & oTables (j) & "] where [WellStateID] between" & WellStateIDFirst & "and" & WellStateIDLast ".
    oRecordset.Open sSQLSting, oConnexion
    Protected oFieldNames: table: ReDim oFieldNames (orecordset. Fields.Count - 1).
    for i = 0 to orecordset. Fields.Count - 1
    oFieldNames (i) = orecordset. Fields.Item (i) .name
    next
    oArray = oRecordset.GetRows (-1, 0, oFieldNames)
    Set oGroup = Data .root .ChannelGroups .Add (oTables (j))

    oArray, oFieldNames arraytochannels
    oRecordset.close
    oConnection.Close
    next

    Sub GetWellStateIDs
    sSQLSting = "select * from [WellStates] where [wellid] =" & WellID
    oRecordset.Open sSQLSting, oConnexion
    oArray = oRecordset.GetRows)
    WellStateIDFirst = oArray (0,0)
    WellStateIDLast = oArray (0, ubound(oArray,2))
    oRecordset.close
    EndSub

    Sub OpenSQLConnection
    Set WshNetwork = CreateObject
    oComputerName = WshNetwork.ComputerName
    oDB = "MX2. Player.DB ".
    Set oConnexion = CreateObject ("ADODB. Connection")
    oProvider = "Provider = SQLOLEDB.1; Integrated Security = SSPI; PeoExecuteist Security Info = True; Data Source ='
    oProvider = oProvider & oComputerName & "\MX; Use procedure for prepare = 1; Machine translation = True; The packet size = 4096; Workstation ID ="
    oProvider = oProvider & oComputerName & " Use encryption for data = False; Tag with column collation when possible = False; Initial Catalog ='
    oProvider = oProvider & oDB
    oConnection.ConnectionString = oProvider
    oConnection.Open
    EndSub

    Another clue. If you check using DIAdem

    Microsoft Windows Script Debugger

    you are able to install the debugger in DIAdem.

    It would potentially have shown that the command does not work as expected.

    Sorry for the inconveniance

    Andreas

  • I'm not all the sounds from the speakers. The volume is up

    I'm not all the sounds from the speakers.  The volume is up

    The following links may be worth a visit:

    No sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows
    (Win XP / Vista / 7)

    (307918) how to troubleshoot sound problems in Windows XP
    http://support.Microsoft.com/kb/307918/en-GB

  • I lost all the games with the exception of Freecell on my computer

    I lost all the games with the exception of Freecell on my Dell 8200 Windows XP computer. I followed the guidelines to reinstall using Add/Remove Programs, Windows Components and it said: everything is fine, but the games are never as far as I can tell.

    Thoughts?

    original title: games

    I found that I had to delete the games that were not there before I could add them.

  • I can not all the sounds from my computer

    I can not all the sounds from my computer. I hae tried to click place volume icon in the taskbar, but it won't let me and she also come with 'there is no active mixer device. To install mixer devices, go to control panel, click Printers and other hardware, and then click hardware, but it's not it will fade. Please can someone help me.

    The sndvol32.exe file is possibly corrupt.

    To replace, there are two methods:

    (1) open the Windows Explorer > tools > Options > view > make sure that show hidden files and folders is NOT checked. Access the c:\windows\system32\dllcache and locate sndvol32.exe > copy it into the following folder c:\windows\system32, overwrite the existing file. > Re-boot, you should now have access to your sound mixer and be able to place the icon on the taskbar. If for any reason any you do not find the dllcache folder:

    (2) put your XP CD in a driver, don't let it start. Then: Start > run > type in msconfig > enter or OK > extract a file > 1st enter in sndvol32.exe > in the second point of the box to your CD player > 3rd enter in c:\windows\system32 > extract file > run over if necessary, close everything and restart.

    If the above does not work, re - install you 'audio drivers, although I would only do it as a last ditch measure.

    See you soon,.

    Jerry

  • I can not all the sounds of my Asus A 6000 after installing Windows 7.

    * Original title: sound on asus has 6000

    can someone help me?  I can not all the sounds of my Asus A 6000 after installation of windows 7.

    where can I find the right drivers?

    Thanks John

    There is no native driver Windows 7, but you can download the latest driver available to install in compatibility mode.

    http://www.ASUS.com/support/download/3/41/0/6/17/

    To learn more:

    You can find more information on compatibility modes in the articles below:

    http://Windows.Microsoft.com/en-us/Windows7/what-is-program-compatibility

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    http://Windows.Microsoft.com/en-us/Windows7/Program-Compatibility-Assistant-frequently-asked-question

    also check:

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

  • How to select all the text with QNX TextInput

    With QNX TextInput, is there a way to select all the text? Spark TextInput a selectAll() method to select all text, but I do not see a similar method in QNX TextInput. No idea how you can choose all the texts with QNX TextInput. Thank you.

    Hey French,.

    Thanks for the clarification! I think I can help you. Here is a code example to show my explanation. In the code below when a user clicks the LabelButton object it will assign the focus to your TextInput object and then select all the text in this object. The only downside is that it will not bring the keyboard. so far, we are not successfully by invoking the keyboard without the user clicking on the TextInput. in any case in the code below, we use TextInput property the textField object as a reference to the TextField object internal. from there, we use the setSelection() method to select the text inside the object from the start to the end position pos. Here's the same code:

    package
    {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.FocusEvent;
        import flash.events.MouseEvent;
    
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.text.TextInput;
    
        [SWF(width="1024",height="600",backgroundColor="#CCCCCC",frameRate="30")]
        public class TextInputTest extends Sprite
        {
    
            private var myInput:TextInput;
    
            public function TextInputTest()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                myInput = new TextInput();
                myInput.setSize(300,50);
    
                addChild(myInput);          
    
                var newBtn:LabelButton = new LabelButton();
                newBtn.label = "Click Me";
                newBtn.setPosition(325, 0);
    
                newBtn.addEventListener(MouseEvent.CLICK, selectMyText);
    
                addChild(newBtn);
    
            }
            private function selectMyText(e:MouseEvent):void
            {
                stage.focus = myInput;
                myInput.textField.setSelection(0, myInput.textField.length);
            }
        }
    }
    

    hope it's what you want. Good luck!

  • I'm trying to update my applications by using the desktop creative cloud application. I see not all the apps in the app tab, the wheel just spins in circles and nothing happens. Someone at - it ideas? I tried to uninstall the application and reinstall it

    Hello

    I'm trying to update my applications by using the desktop creative cloud application. I see not all the apps in the app tab, the wheel just spins in circles and nothing happens. Someone at - it ideas? I tried to uninstall office and reinstall, but it still has the same problem.

    See you soon

    Rachel

    Hi Rachel,

    You can follow the article: App does not open. Wheel of progress turn continuously to get your landline number.

    Let us know if the problem persists or not.

    Kind regards

    Yann Arora

  • Bug report: website does not display the flash with version 11.4 data

    A Web site, I have used for years is no longer present all the data with the new version of Flash Player. I see a "loading" spinning wheel instead, who never stops turning. Others using the site meet the same problem.

    I removed 11.4 and installed 10.3 and all is well again.

    __________________________________________________________

    Web site: gmws.edupage.org/timetable (the school calendar that I administer). A calendar should appear, and clicking on 'teacher', 'class', etc. should give a drop-down list of options. (Try less 10.3 and you will see the correct behavior).

    I discovered that I was using 14 Firefox; When I updated, it works fine.

    Sorry for the confusion.

Maybe you are looking for

  • Canon MG7520 no work since the upgrade of the Sierra.

    MacBook Pro communicates only with the Canon MG7520. Tried to reconnect with USB to the printer, no joy.  Called Canon they are aware of the problems of the Sierra.  Someone at - it find a workaround until this Canon & Apple get together.  If you hav

  • remove the development tools

    I have tried everything I can find online, but I just can't help the developer tools to interfere when I type in a search, or type text on a web page. I went to about: config and off each dev listed, still nothing changes. Please tell me how to remov

  • Problem with 'open with' records not of programs on external hard drive

    Hi - I have several large programs installed on an external hard drive. Previously, there were no problems with the program and files associated with the other. My computer had to be rebuilt recently and all re-installed with the exception of those p

  • Make your smaller screen.

    My screen widens, and its colors are going wild. I can't narrow it down, and it won't fix itself when I stopped him. What I do and how do I get it back to normal?

  • Why Dell does not 14 XPS and Inspiron 7000 14

    Really, I bought months ago that my laptop but I couldn't decide if a 13-inch or 15-inch. For 5 years, I was used to 15 in laptop and I think it's the best size, and I am determined to keep this size. If you think that 13 is very small, and I use gla