Download

Can you change MPC vars at runtime with a script?

Is it possible to change the value of Material Parameter Collection variables during runtime with Python (or any other language)?
I’m using version 4.24.1 of UE4, and Python 3.8.5.

I currently have this set up to be a function of keyboard clicks, but I’m hoping to automate things. If it’s not possible to change MPC vars through API calls, is there a recommended way to simulate keyboard clicks in UE4 with a Python script? I’ve found generic ‘simulate keypresses’ packages, but am wondering if there are any specific packages that play nicely with UE4.