How to script ENGINE_PAR_ for instrument Main FX

Jazzman
Jazzman Member Posts: 8 Member

Hello

i try to code a engine_par for Makeup SComp in Main FX slot 1

but it don't work


on ui_control($SComp)
	set_engine_par($ENGINE_PAR_SCOMP_MAKEUP,$SComp,-1,0,-1)
end on

Best Answer

  • corbo-billy
    corbo-billy Member Posts: 83 Helper
    edited June 2022 Answer ✓

    Just add $NI_MAIN_BUS instead of the last -1 _

Answers

  • Jazzman
    Jazzman Member Posts: 8 Member

    Hello

    Does anyone know how to access the Main Instrument FX parameters via ksp?

  • corbo-billy
    corbo-billy Member Posts: 83 Helper
    edited June 2022 Answer ✓

    Just add $NI_MAIN_BUS instead of the last -1 _

  • Jazzman
    Jazzman Member Posts: 8 Member

    Thanks Corbo-Billy

    it works 👌

    on ui_control($SCompM)
    	set_engine_par($ENGINE_PAR_SCOMP_MAKEUP,$SCompM,-1,0,$NI_MAIN_BUS)
    end on
    
    
Back To Top