Skip to main content
S_ A
Inspiring
July 13, 2024
Answered

wiggle expression error

  • July 13, 2024
  • 1 reply
  • 923 views

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? 😥

 

 

This topic has been closed for replies.
Correct answer Airweb_AE

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]

 

 

 

1 reply

Airweb_AECorrect answer
Legend
July 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]

 

 

 

S_ A
S_ AAuthor
Inspiring
July 13, 2024

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