Skip to main content
Participant
July 31, 2024
Question

AFPHairrig v03.51 error de expresión

  • July 31, 2024
  • 1 reply
  • 1426 views

Tengo un error que ya se posteo en estos foros y algunos de reddit hace unos años, pero no encuentro solución y simplemente no puedo utilizar el script

Aqui dejo el codigo junto algunas capturas de lo que me sale:

 

/////AFPHairRig//////
if(thisComp.layer('MASTER_HR_controller').effect('TurnOffHairRig')('Checkbox') == false)
{

pointFromParent= 4;
refLayer = thisLayer;
pos = refLayer.effect('Delay')('Slider')*(pointFromParent/8);
fallOffLoc = (pointFromParent-1)/4;
amp = refLayer.effect('Amp')('Slider')*refLayer.effect('FallOff')('Slider').valueAtTime(fallOffLoc)*thisComp.layer('MASTER_HR_controller').effect('masterFallOff')('Slider').valueAtTime(fallOffLoc)*comp('GLOBAL_HR_controller').layer('GLOBAL_HR_controller').effect('globalFallOff')('Slider').valueAtTime(fallOffLoc);
freq = refLayer.effect('Freq')('Slider');
masterFreq = thisComp.layer('MASTER_HR_controller').effect('masterFreq')('Slider');
globalFreq = comp('GLOBAL_HR_controller').layer('GLOBAL_HR_controller').effect('globalFreq')('Slider');
offset =refLayer.effect('Offset')('Slider');
phase = refLayer.effect('PhaseLocator')('Slider');
delay = 1-(pos*(1/refLayer.effect('Freq')('Slider')));

n = freq.numKeys+masterFreq.numKeys+globalFreq.numKeys;
if (n > 0)
{
delay = (1-(pos));
};
value+refLayer.effect('WaveMath')('Angle').valueAtTime(time+delay)*amp;


}else
{
value;
};

 

1 reply

Legend
July 31, 2024

I just tried the script, and it works great with AE in English.

I checked a few posts that discuss the problem, and they all use AE in Spanish, Portuguese.

Error with AFPHairRig v03.51 

New to AE and trying AFPHairRig v03.51, am I doing something wrong? 

 

The script/expressions probably doesn't use a universal language.

In conclusion, it's necessary to use the English version of After Effects.

Ags752Author
Participant
July 31, 2024

Estoy usando AE en inglés, en la screenshot se puede ver "Layer name" y "Parent and Link"

Legend
July 31, 2024

I don't know, on my computer, the script runs correctly to the end in English, and the window closes by itself. In the Spanish version, the script crashes very quickly, it just adds a few effects, and I have to close the window manually.

 

But even in English, it's not great. I just tested it by selecting two shape layers, and it only animates the first selected layer. The script is outdated and needs to be completely redone.