I have an issue to change switch parameter of material instance in asset view.
I can do that if there are a few but I have over 1000 assets. (It is easy. just click check box!) so I tried to use python to do this automatically.
I googled a lot but I could get only setting scalar and vector not boolean and switch.
I know that boolean and switch can not change value at runtime but I want to change it not runtime.
Edit:
Based on this previous forum post, others have created different material instances variants with these static parameters turned on/of and then used the appropriate one. Yeah, I know not great if you have many switch parameters.
Thank you brisket for sharing the link. This is exactly what I have been searching for a while.
Okada’s code works only if the override is manually checked.
I have SwitchParameter.bOverride = true, but like Okada said, Instance->GetStaticParameters(); only contains parameters that have Override enabled.
Does anyone know how to set both? Thank you.