reaper api function to change track tcp width. shortest answer please
- User
reaper api function to change track tcp width. shortest answer please
- Assistant
reaper.SetMediaTrackInfo_Value(track, "I_TCPH", newWidth) - User
that is height
- Assistant
Apologies for the confusion. Here's the correct function for changing the track TCP width:
reaper.SetMediaTrackInfo_Value(track, "I_WNDW", newWidth) - User
that's not it
- Assistant
I apologize for the oversight. The correct function to change a track's TCP (Track Control Panel) width in Reaper is not directly available via a single API function as of my last update. Reaper's API allows you to change various track properties but does not directly expose a function specifically for adjusting the TCP width through a script.
Width adjustments are typically achieved through user actions in the Reaper UI or through theme adjustments. For scripting custom UI layouts or specific project views, you might need to work with the SWS extension (if available) or utilize track layouts provided by the current Reaper theme, which can indirectly influence track widths.
If your goal is deeply integrated into customization or automation beyond the provided API capabilities, consider exploring:
- ReaScript: Check if any newer updates to the API or SWS extensions offer more direct control over the TCP dimensions.
- Theme Editing: Modifying or creating a theme that better fits your requirements for track width.