Code: Select all
var project = host.getProject();
var rootTrack = project.getRootTrackGroup();
Code: Select all
Track getRootTrackGroup ( )
Returns an object that represents the root track group of the active Bitwig Studio project.
Returns
the root track group of the currently active project
Since
API version 1
So how to derive what the object that is returned? and what functions/properties are on it?
And maybe i'm wrong but it seems like there are no properties of objects in the bitwig controller script api. Its just function calls on function calls. So to get a "property" of on object it goes something like this... itemCount() returns an integer Value object... which you also must markInterested() or addValueObserver(). and only then can you "get" the property.
this.trackbank.itemCount().get() instead of this.trackbank.itemCount
ok and back to my original question... how do i explore all the properties or see what type of object the getRootTrackGroup() returns?
if i print the object with println()... i get this...
Code: Select all
RootControlSurfaceObject/ProjectProxy(Project)/RootTrackGroupProxy