Hello, I'm trying to inject multiple interactions to a snippet using python.
I've used "Scumbumbo's" code which worked on a "Single Interaction" only, adding more than one interaction to the "Mixer Id" didn't work.
from sims4.tuning.instance_manager import InstanceManager
from sims4.resources import Types
SNIPPET_ID = 24511
MIXER_ID = 13984173314801262715
def add_mixer_to_snippet(original, self):
if self.TYPE == Types.SNIPPET:
key = sims4.resources.get_resource_key(SNIPPET_ID, Types.SNIPPET)
snippet_tuning = self._tuned_classes.get(key)
if snippet_tuning is None:
affordance_manager = services.affordance_manager()
key = sims4.resources.get_resource_key(MIXER_ID, Types.INTERACTION)
mixer_tuning = affordance_manager.get(key)
if mixer_tuning is None:
snippet_tuning.value = snippet_tuning.value + (mixer_tuning, )
How can I modify this to make it accept more than one interaction in the "MIXER_ID" ?
Thank You very much.