Disabling/Enabling morph targets at runtime

Hello all!

I’ve been looking into using morph targets for a bit of facial animation, which are driven by curves stored on anim sequences. I was wondering if there was a way to disable and enable these morph targets at runtime? And in particular, on a per animation basis for fine control to when these are active.

Looking around for information there have been suggestions about using Set Morph Target function and setting the value to 0 for disabling it. However, that doesn’t feel like a good way of doing this, particularly if you are having to do this every tick, and with lots of curves.

Also, this doesn’t necessarily allow me to do it per sequence. I realise this feels like very specific controls that I’m looking for and potentially they don’t exist but I thought I’d ask at least as I can’t find any information out there for this.

Thanks,

Simon

Hey,

There really isn’t a way to disable a morph targets curve or the morph target at runtime directly. But you can modify the curve or replace it when certain logic is present. There is node in the animgraph, Modify Curve, where you could at runtime, scale the current value of the curve by another value.

[Image Removed]

Then you can define what does that scaling as a variable in your event graph.

Hi Dustin, thanks for the quick reply. I thought this would be the situation and suggestion but thought I’d check none-the-less to see if there way anything I was missing.

Thanks!

Simon