Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error with AFPHairRig v03.51

Community Beginner ,
Dec 26, 2022 Dec 26, 2022

Tengo el siguiente error en pantalla con este script y no se como solucionarlo:

 

Por si necesitas todo el código es el siguiente:

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

puntoDesdePadre= 4;
refLayer = esta capa;
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);
frecuencia = refLayer.effect('Freq')('Slider');
masterFreq = thisComp.layer('MASTER_HR_controller').effect('masterFreq')('Slider');
globalFreq = comp('GLOBAL_HR_controller').

desplazamiento =refLayer.effect('Offset')('Slider');
fase = refLayer.effect('PhaseLocator')('Slider');
delay = 1-(pos*(1/refLayer.effect('Freq')('Slider')));

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


}más
{
valor;
};

TOPICS
Crash , Error or problem , How to , Scripting
2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Dec 26, 2022 Dec 26, 2022

I created another new project and the script worked for me, I don't know how but hey, thanks anyway for helping me.

Translate
Community Expert ,
Dec 26, 2022 Dec 26, 2022

That's a strange error message. It's complaining about not being able to find the Slider Control named 'globalFallOff', but the line that it's pointing at doesn't reference that control. Can you post a screen shot of the controls on the 'GLOBAL_HR_controller' layer?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 26, 2022 Dec 26, 2022

Sorry, I can't find that layer anywhere, maybe that's the problem. This script was not created by me, it was made by Anthony Possobon. The problem is that it also worked correctly before, the only thing I did was update after effects to the 2022 version.
If it works for you, I'll pass you the script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 26, 2022 Dec 26, 2022

It appears that when you run the script, it creates the control layer and then applies expressions to your shape layer (with puppet pins) that refer to the controls. It sounds like that's not the process you followed here, is that correct? Is this an older project file where the script had been run previously? If so, maybe the control layer got renamed or deleted?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 26, 2022 Dec 26, 2022
LATEST

I created another new project and the script worked for me, I don't know how but hey, thanks anyway for helping me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 26, 2022 Dec 26, 2022

Well, have you actually created the controller layer with all the sliders mentioned in the code?

 

Mylenium 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines