Skip to main content
Inspiring
April 10, 2019
Question

Essential graphics & master properties - Choosing a face for a character

  • April 10, 2019
  • 1 reply
  • 478 views

Let's say I have dozens of different compositions of faces for my characters.

I want to be able to use the same character few different times in my comp with different faces, without duplicating it, so I considered using master properties.

I created a comp with all of the faces on top of each other, and tried controlling their opacities using master properties by creating one text layer and changing its source text to the name of face I want to use.

However - it was EXTREMELY slow!

Is there any different approach to this common problem?

Thank you

This topic has been closed for replies.

1 reply

Martin_Ritter
Legend
April 10, 2019

You can do such a thing with DUIK quite nice. Have a look at DUIK connector.

Not sure what EG is capable of but if you can link a layer selector, this would be the most comfortable solution.

I would create a null, add a slider and link the slider value to the opacities of the faces. Like: MyOpacity is 100 when I'm layer 1 and slider value is 1. When I am layer 2, my opacity is 0, because the slider is set to 1.

Pseudocode:

myindex = thisLayer.index;

slider = path to slider;

if (myindex == slider){

100;

} else {

0};

The null can be placed everywhere, just place it before linking the slider to the opacities.

*Martin

Guym20Author
Inspiring
April 17, 2019

Thank you

I tried your suggestion and it's extremely slow

It seems like DUIK works in a similar way..

Any other suggestions?

Martin_Ritter
Legend
April 17, 2019

Did you do it with DUIK or did you take my code?

If my expression turns out extremely slow, I think the cause is somewhere else - the expression is far from complex.

How many faces are there, in what resolution are you working in? Is it also slow if you keyframe the opacity with suppressed (hold) keyframes?

*Martin