Scale an object and keep position | VOPs xform
1087
7
1
2024年4月4日 9:57
Hello, is it possible to use the xform vop to scale an object uniformly, while keeping its position (pivot)? I've tried doing it in vex and with a transform node, but neither worked. The transform node would have worked, except you can't drive the uniform scale parameter with an attribute.
Attachments:
scale by the center and not so that it moves to the 0 origin while scaling.png (230.2 KB)
2024年4月4日 10:04
This is what it would look like with a transform node (except you cant use a custom attribute for uniform scale).
Attachments:
Screenshot 2024-04-04 220112.png (491.3 KB)
2024年4月4日 10:38
I tried doing that and it just turns green and stays at 0. My scale attribute is updating each frame so I guess that's why it doesn't work?
2024年4月4日 11:18
So it seems to be something with my attribute being a point attribute. I tried filling it in the transform like your detail attribute example, but it doesn't like the syntax.
Edited by CreativeWaves - 2024年4月4日 11:18:56
Attachments:
Screenshot 2024-04-04 231732.png (216.6 KB)
juejuezi
Member
34 posts
Joined: 7月 2022
Offline
2024年4月4日 11:26
try `point(0,0,'final',0)` because `point` need point number, `detail` do not required
2024年4月4日 11:28
Oh your right, that fixed it. Appreciate that!
Edited by CreativeWaves - 2024年4月4日 11:28:41