quickbrownf0x
I had fun once. It was awful.
I'm wondering if it's possible to dynamically create and render an object, like a Monitor or Container by triggering a (global) function/bit of script. Like so;
decl contain_obj = new Container();// create the object
setattribute(contain_obj, 'rect', {0,0,640,480}); // set its dimensions and placement
show(contain_obj, 1); // render on screen.
Or maybe create a function;
function createContainer(id, positions, dimensions)
{
decl contain_obj = new Container(id);
setattribute(contain_obj, 'rect', {positions[0], positions[1], dimensions[0], dimensions[1]});
show(contain_obj, 1);
}
And then whenever I need it I can just go;
createContainer('oohlookatthisshinynewcontainer', {0,0}, {1280, 960});
...tie that sucker to a button, you know - something like that....
Liine's own documentation's a bit shit. Can't find anything about it. Does anyone know, or has anyone tried this? Or am I just being too much of nerd and do I have to accept the fact that my fancy Lemur UI won't be as flexible and dynamic as I would like it to be? Because (as far as I know) the alternative is to hard-code a ton of stuff, including things like patch articulations and their labels. Which would suck. I mean, that's just stupid.
Cheers,
Dj.
decl contain_obj = new Container();// create the object
setattribute(contain_obj, 'rect', {0,0,640,480}); // set its dimensions and placement
show(contain_obj, 1); // render on screen.
Or maybe create a function;
function createContainer(id, positions, dimensions)
{
decl contain_obj = new Container(id);
setattribute(contain_obj, 'rect', {positions[0], positions[1], dimensions[0], dimensions[1]});
show(contain_obj, 1);
}
And then whenever I need it I can just go;
createContainer('oohlookatthisshinynewcontainer', {0,0}, {1280, 960});
...tie that sucker to a button, you know - something like that....
Liine's own documentation's a bit shit. Can't find anything about it. Does anyone know, or has anyone tried this? Or am I just being too much of nerd and do I have to accept the fact that my fancy Lemur UI won't be as flexible and dynamic as I would like it to be? Because (as far as I know) the alternative is to hard-code a ton of stuff, including things like patch articulations and their labels. Which would suck. I mean, that's just stupid.
Cheers,
Dj.