Forum
    • Categories
    • Register
    • Login
    1. Home
    2. Lindon
    3. Posts
    • Profile
    • Following 0
    • Followers 11
    • Topics 622
    • Posts 6,800
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Viewport - set(""viewPositionY")

      @David-Healey nope there are no dynamic panels any more...

      posted in General Questions
      LindonL
      Lindon
    • RE: Viewport - set(""viewPositionY")

      @David-Healey child of the holder-panel - yes, a lot of them - they are all pre-declared and set up, so Im not sure they will have any effect here...hoping not anyway...

      posted in General Questions
      LindonL
      Lindon
    • RE: Viewport - set(""viewPositionY")

      @David-Healey thanks yeah - I wonder how dependent it is upon how many sub panels I m using at any given time....

      posted in General Questions
      LindonL
      Lindon
    • RE: Viewport - set(""viewPositionY")

      @Lindon so it appears to be a timing issue....if I add a button to do this positionY stuff that works - so is there a listener for the viewport rejigging itself?

      I cant find anything in the Broadcaster wizard that looks like it can be applied...but Im a complete novice in there...

      posted in General Questions
      LindonL
      Lindon
    • Viewport - set(""viewPositionY")

      OK so I have viewport with a holding-panel inside it, that panel has a variable number of sub-panels being displayed....

      So I cant get the Viewport to respond to viewport.set("viewPosition",1), except on init...

      so first time thru - it sets the viewport to the end, but if I change the number of sub-panels displayed, and thus change the size of the holding-panel, then the viewport shoots back to the top and wont act on any ViewPositionY I send it as part of the holding panels repaint function...

      What am I doing wrong?

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @Lindon ohh

      "height": undefined <---whata dumb ass....

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey look at this!

      b784e504-f37a-45ac-9472-0f0164027a3f-image.png

      everything says its there - but its not displaying...

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @Lindon literally nothing is working now...I've broken it somehow...

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @Lindon well actually no paint routines trigger at all and no panel will show up even if I've commented out all teh paint routines...

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey yes

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey now even this isnt working:

      for(i = 0; i <NUM_individualLibPanels; i++)
      {
      	individualLibraryPanels[i] = Content.addPanel("iLibPanel" + (i+1), 0, 0);
      	Content.setPropertiesFromJSON("iLibPanel" + (i+1),  {
          "type": "ScriptPanel",
          "x": 1.0,
          "y": 0.0,
          "parentComponent": "LibraryDisplayPanel",
          "width": 275.0,
          "height": LIB_PANEL_HEIGHT,
          "borderSize": 1.0,
          "borderRadius": 0.0
        });
        individualLibraryPanels[i].showControl(false);
        individualLibraryPanels[i].setPaintRoutine(function(g)
        {
        	Console.print("painting painting");
        });
      };
      
      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey except this doesnt work!!!!

      It always draws the first image you loaded......

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey sadly its a bit of a monster...

      Here's a paint routine:

      function paintLibraries(g)
      {
      	panelValue = this.getValue();
      	//Console.print(trace(panelValue));
      	Console.print("trying to draw:" + panelValue.LibImage);
      	
      	templibImg = imageDirFile.getChildFile(panelValue.LibImage);
      	this.loadImage(templibImg.toString(templibImg.FullPath), panelValue.LibImage);
      	g.drawImage(panelValue.LibImage, [0,0,this.get("width"),this.get("height")], 0, 0);
      	//draw edgeing in black
      	g.setColour(Colours.black);
      	g.drawRect([0,0,this.get("width"),this.get("height")],1);
      	//draw the icon for opened or closed...
      	g.setColour(Colours.white);
      	if (panelValue.DisplayState == 0)
      	{
      		//not opened
      		g.fillPath(paths.icons.PointRight, [this.get("width")-20,this.get("height")-30,15,25]);
      	}else{
      		//opened..
      		g.rotate(radianFromDegree*90,[this.getWidth()-10,this.getHeight()-15]);
      		g.fillPath(paths.icons.PointRight, [this.get("width")-15,this.get("height")-20,12,22]);
      	};
      };
      

      As you can see each panel has a json object in its value and it uses this to decide which image to load....

      Thinking about doing this a completely different way.. and fixing panels to thier owning JSON, not loading the json into the panel...

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @David-Healey thats more or less what Im doing, but the paint routine isnt drawing what I want -despite me asking politely... its drawing the first image loaded into the panel....

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      @Lindon ..and if I reload the image in the paint callback it works -- but that seems very inefficient..

      posted in General Questions
      LindonL
      Lindon
    • RE: Images in panels - load and unload

      , just to be clear I also tried just load, but this seems to load multiple images and only ever displays the first one....

      posted in General Questions
      LindonL
      Lindon
    • Images in panels - load and unload

      Does anyone have a clear idea how these work?

      I want to use a set of panels, each with a single image loaded....

      I want that image to change based upon a mouse click in the panel....

      I tried load and unload, and on anything past the init callback then I get nothing loaded into my panels....

      So on init: the panels have no image, and I run a load - and they display correctly...
      On mouse click: I run an unload on each one, then another load a few lines later - and here I get no images loaded...

      What am I doing wrong?

      posted in General Questions
      LindonL
      Lindon
    • RE: Bar-style frequency analyzer instead of curve?

      @shawntarget split the signal up in a script node and process it there..

      posted in Scripting
      LindonL
      Lindon
    • RE: Hise.Activate

      @dannytaurus we have modified the requirement.

      posted in General Questions
      LindonL
      Lindon
    • RE: Hise.Activate

      @dannytaurus said in Hise.Activate:

      @Lindon I'm following your posts about this because I'm thinking of implementing something similar.

      I thought one of your early requests was that a user can load content from multiple expansions at once, and that's not possible with Full Expansions, right? Or have I misunderstood?

      you are correct you cannot load content from multiple Full Instrument expansions at once.

      posted in General Questions
      LindonL
      Lindon