1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Solved load_ir_sample() for Main Effects

Discussion in 'Scripting Workshop' started by James Worster, Oct 15, 2021.

  1. James Worster

    James Worster NI Product Owner

    Messages:
    87
    Is there any way to use load_ir_sample() and target the new 'main effects'?

    From the reference it seems you can only target the insert or send effects by setting the <generic> argument to 1 or 0.

    Cheers
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Sure, you can use the new constants that target different FX busses:

    $NI_INSERT_BUS (previously we used 1)
    $NI_SEND_BUS (previously we used 0)
    $NI_MAIN_BUS (actual value is 2)
     
  3. James Worster

    James Worster NI Product Owner

    Messages:
    87
    Brilliant, thank you