I’ve been trying to create a script that Hides all tracks, whether enabled or disabled, that have no midi after the start of bar 1 (1.1.1.0) and it has not been working. Can someone help me?
The above works on Disabled tracks but not Enabled tracks
Hi,
I would do it this way:
Filter Target
( Media Type is | Equal | MIDI | And
container Type is | Equal | Track | And
Property | Property is Set | Is Empty )
Action Target
Track Operation | Hide Track | Enable
Function
Transform
Pre-Process Command
Agents > Show All Channels/Tracks
This way you:
- Simplify the filter (condition) and you keep only the relevant parts.
- Show All Channels/Tracks before you process them, so it will work for all Channels/Tracks.
The “Position | Bigger |…” condition doesn’t make any sense, as the Track container doesn’t have any position. The MIDI Parts in the track have position, not the Track itself.
Unfortunately all my tracks have a midi part for automation, setting default Modulation, Expression and Volume, in -1 bar, i.e. All tracks have a midi section in -1 bar. So I don’t think this will work for me
