Copy link to clipboard
Copied
i'm trying to use the selected object to squash and stretch the spring on this Shock & Strut to give it that realistic feel
what would i use to connect the positioning of the selected object to control the springs scaling to be elongated and or squished
what would i need to do to accomplish this?
i also have the Stare feature from Motion V2 to have certain peaces stare at other and have then align
Thanks in advance
Copy link to clipboard
Copied
That's bog standard stuff. Simply do a web searh for lookAt() or "targeting" expressions and the like. Same for the scaling. A simple case of measuring the distance with length() and correlating it to the layer size by piping it through a linear() interpolator.
Mylenium
Copy link to clipboard
Copied
thank you i'm fairly new to to any sort of coding to make this happen i'l try to research what you've suggested thank you
Copy link to clipboard
Copied
how would i get to only affect one of the scaling values ONLY?
Copy link to clipboard
Copied
n-dimensional properties are arrays. You address their components by referencing their index array beginning with 0, so scale X is scale[0] and scale Y is scale[1].
Mylenium
Copy link to clipboard
Copied
what would i type after clicking the option and stop watch to bring up the white box to type in