Constrains animation ad iLogic

Constrains animation ad iLogic

mirko.saiani
Enthusiast Enthusiast
521 Views
4 Replies
Message 1 of 5

Constrains animation ad iLogic

mirko.saiani
Enthusiast
Enthusiast

Hello,

I have a constrain (angle) where d_vin = 0° is the angle to start ma drive animation.

 

I want to make a role where is d_vin > 15 to 

MessageBox.Show ("hello HOME!")

But when I use drive constrain d_vin doesn't change ....

 

can you help me?

thank

mirko

0 Likes
522 Views
4 Replies
Replies (4)
Message 2 of 5

mirko.saiani
Enthusiast
Enthusiast

Maybe it's non clear my problem?

0 Likes
Message 3 of 5

theo.bot
Collaborator
Collaborator

I think you need to explain a little bit more about what you have and what your want. 😉

0 Likes
Message 4 of 5

mirko.saiani
Enthusiast
Enthusiast

I thought it was easy ... but only in my mind 😀

 

I have two pieces with a constraint

mirkosaiani_1-1637919034485.png where d2 is the angle

 

I made this roule:

iLogicVb.UpdateWhenDone = True
MessageBox.Show (d2)
If d2 > 20
  d2 = 0
  MessageBox.Show("bla bla bla", "bla bla bla", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If

I try to animate the constraint

mirkosaiani_2-1637919257756.png

 

when the angle is >20 I havent the MessageBox ... how can i do?

 

thanks!

mirko

 

0 Likes
Message 5 of 5

theo.bot
Collaborator
Collaborator

When you use drive constrain, you can't get an update of the parameter (or affected parameter) values. But instead of using drive constrain, you can also drive a parameter with a small loop. 

0 Likes