@classmethod
    def load(cls, filename, options):
        effect_hash = cls._generate_hash(filename, options)
        if effect_hash in cls._GLOBAL_CACHE:
            return cls._GLOBAL_CACHE[effect_hash]
        effect = cls()
        effect.set_options(options)
        if not effect.do_load(filename):
            RPObject.global_error("Effect", "Could not load effect!")
            return None
        return effect
Loads an effect from a given filename with the specified options.
dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/effect.py/Effect.load