application.remove() question

deadReactor
KVRer
29 posts since 26 Jan, 2012

Post Fri Jan 18, 2019 5:13 am

Hi,

what started out as me being curious about how to handle midi return messages on my traktor f1 controller got a little out of hand :help: :hihi:

Anyway there is one issue I can't seem to figure out:

Clips have a dedicated delete method so implementation is straightforward,
Scenes and tracks don't have this.
It seems that the way to go here is to do a select/selectInEditor and then an application.remove().

This doesn't work reliably thoguh ... I have to first manually select a scene/track via ui in the editor/mixer window. Only then it is working (until I select the other thing, e.g. scene=>track)

If anyone can shed some light into this on how to handle this properly I'd be more than happy.

Ah and 2.4.3/api 7, javascript fwiw.

w.

User avatar
moss
KVRAF
1541 posts since 13 May, 2004

Re: application.remove() question

Post Fri Jan 18, 2019 12:09 pm

Yes, already on my wishlist: https://github.com/teotigraphix/Framewo ... issues/180

Feel free to bug the Bitwig guys for improvements, too :-)

deadReactor
KVRer
29 posts since 26 Jan, 2012

Re: application.remove() question

Post Fri Jan 18, 2019 12:20 pm

Ok thanks for clarifying, much appreciated.

Found this remarked in the jam script, scary that this has api 1, bitwig guys for sure have been busy on getting modular for quite some time ;)

// TODO : Delete once API has reliable path to doing it
//applicationControl.focusClipLaunch();
//applicationControl.getApplication().remove();

Will bug.
w.

Return to “Controller Scripting”