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

wiggle expression error

Enthusiast ,
Jul 13, 2024 Jul 13, 2024

Hi,

 

I am trying to wigle only y sxis. That means its [1].

 

In first case the cloud changes its position,ignoring the keyframe value of  X axis. and in 2nd case cloud stops wiggling but remain in where I want it to be.

 

whai am doing wrong? 😥

 

first casefirst casesecond casesecond case

 

TOPICS
Expressions
817
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

Advocate , Jul 13, 2024 Jul 13, 2024

Expression 1:

a = wiggle(4,5);
[a[1], value[0]]

value[0] is the X axis, you should try:

a = wiggle(4,5);
[value[0], a[1]]

 

Expression 2:

a = wiggle(4,5);
[a[1], value[transform.position[0]]

value[0] = X axis value

value[1]  = Y axis value

value[2] = Z axis value

value[transform.position[0]] doesn't make sense

 

You should try:

x = value[0];
y = wiggle(4,5)[1];
[x, y]

 

 

 

Translate
Advocate ,
Jul 13, 2024 Jul 13, 2024

Expression 1:

a = wiggle(4,5);
[a[1], value[0]]

value[0] is the X axis, you should try:

a = wiggle(4,5);
[value[0], a[1]]

 

Expression 2:

a = wiggle(4,5);
[a[1], value[transform.position[0]]

value[0] = X axis value

value[1]  = Y axis value

value[2] = Z axis value

value[transform.position[0]] doesn't make sense

 

You should try:

x = value[0];
y = wiggle(4,5)[1];
[x, y]

 

 

 

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
Enthusiast ,
Jul 13, 2024 Jul 13, 2024

Thank you so much. I was about to cry for not figuring out what is going on. 😥

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
Enthusiast ,
Jul 13, 2024 Jul 13, 2024

value[transform.position[0]] doesn't make sense-- I learned this from atutorial. U can drag whip to Y or X or anyvalue that u wanna keep fixed in expression. Instead of writting [1], u can drag the whip to Y axis, expression will write value[transform.position[1]]

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
Enthusiast ,
Jul 13, 2024 Jul 13, 2024

Check this--

 

whip.gif

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
Advocate ,
Jul 13, 2024 Jul 13, 2024

it's:

temp = thisComp.layer("Circle").transform.position[0];

not:

temp = value[thisComp.layer("Circle").transform.position[0]];

 

value[0] is a shorthand for:

thisComp.layer("Circle").transform.position.value[0];

 

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
Enthusiast ,
Jul 13, 2024 Jul 13, 2024
LATEST

😮 😮 facepalm

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