View Single Post
Old 04-25-2019, 07:09 AM   #47
Reno.thestraws
Human being with feelings
 
Reno.thestraws's Avatar
 
Join Date: Nov 2009
Location: Belgium
Posts: 9,753
Default

et le mÍme qui agit sur TOUTES les pistes

Code:
function main()

  for tr = 0, reaper.CountTracks(0) -1 do
    local track = reaper.GetTrack(0,tr) 
      for i = 1,  reaper.CountTrackEnvelopes( track ) do
        local env = reaper.GetTrackEnvelope( track, i-1 )
            br_env =  reaper.BR_EnvAlloc(env, false)
            active, visible, armed, inLane, laneHeight, defaultShape, _, _, _, _, faderScaling = reaper.BR_EnvGetProperties( br_env )
            if visible == true  then
            reaper.BR_EnvSetProperties( br_env, true, 
                                              false, 
                                               true, 
                                              inLane, 
                                               laneHeight, 
                                              defaultShape, 
                                              faderScaling )
            
            reaper.BR_EnvFree(br_env, true)
            
            else
            reaper.BR_EnvSetProperties( br_env, true, 
                                                      true, 
                                                       true, 
                                                      inLane, 
                                                      laneHeight, 
                                                      defaultShape, 
                                                      faderScaling ) 
          reaper.BR_EnvFree(br_env, true)
           
            end
      end
  end  
end 

main()
Reno.thestraws is offline   Reply With Quote