@David-Healey nope there are no dynamic panels any more...
Posts
-
RE: Viewport - set(""viewPositionY")posted in General Questions
-
RE: Viewport - set(""viewPositionY")posted in General Questions
@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...
-
RE: Viewport - set(""viewPositionY")posted in General Questions
@David-Healey thanks yeah - I wonder how dependent it is upon how many sub panels I m using at any given time....
-
RE: Viewport - set(""viewPositionY")posted in General Questions
@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...
-
Viewport - set(""viewPositionY")posted in General Questions
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?
-
RE: Images in panels - load and unloadposted in General Questions
@Lindon ohh
"height": undefined <---whata dumb ass....
-
RE: Images in panels - load and unloadposted in General Questions
@Lindon literally nothing is working now...I've broken it somehow...
-
RE: Images in panels - load and unloadposted in General Questions
@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...
-
RE: Images in panels - load and unloadposted in General Questions
@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"); }); }; -
RE: Images in panels - load and unloadposted in General Questions
@David-Healey except this doesnt work!!!!
It always draws the first image you loaded......
-
RE: Images in panels - load and unloadposted in General Questions
@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...
-
RE: Images in panels - load and unloadposted in General Questions
@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....
-
RE: Images in panels - load and unloadposted in General Questions
@Lindon ..and if I reload the image in the paint callback it works -- but that seems very inefficient..
-
RE: Images in panels - load and unloadposted in General Questions
, just to be clear I also tried just load, but this seems to load multiple images and only ever displays the first one....
-
Images in panels - load and unloadposted in General Questions
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?
-
RE: Bar-style frequency analyzer instead of curve?posted in Scripting
@shawntarget split the signal up in a script node and process it there..
-
RE: Hise.Activateposted in General Questions
@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.
