Hi all
I'm trying to drive the scale of copied boxes by the proximity of a circle. I've been at it for a few days and its driving me nuts.
I have gotten as far as having the translation of the inner circle to drive all of the boxes' scale in x & z, but I want the scale to be driven mutually exclusively by the circles proximity to each of them,
Here is an attached file with where i'm going wrong
any help?
Landin
driving scale with point distance
5868 5 2-
- stinkylando
- Member
- 6 posts
- Joined: 4月 2012
- Offline
-
- claudio_101
- Member
- 121 posts
- Joined: 7月 2008
- Offline
You can use the distance() expression to figure out the distance between two points. In the copy node I added a new variable called prox and added the following expression below. The expression calculates the distance between the centerpoint of the small circle to the corresponding point.
You were close.![](/static/djangobb_forum/img/smilies/big_smile.png)
Cheers
distance(
centroid(“../xform2”, D_X),
centroid(“../xform2”, D_Y),
centroid(“../xform2”, D_Z),
point(“../point1”, $PT, “P”, 0),
point(“../point1”, $PT, “P”, 1),
point(“../point1”, $PT, “P”, 2)
)
You were close.
![](/static/djangobb_forum/img/smilies/big_smile.png)
Cheers
distance(
centroid(“../xform2”, D_X),
centroid(“../xform2”, D_Y),
centroid(“../xform2”, D_Z),
point(“../point1”, $PT, “P”, 0),
point(“../point1”, $PT, “P”, 1),
point(“../point1”, $PT, “P”, 2)
)
Available for new projects
-
- stinkylando
- Member
- 6 posts
- Joined: 4月 2012
- Offline
-
- claudio_101
- Member
- 121 posts
- Joined: 7月 2008
- Offline
-
- stinkylando
- Member
- 6 posts
- Joined: 4月 2012
- Offline
-
- claudio_101
- Member
- 121 posts
- Joined: 7月 2008
- Offline
-
- Quick Links