Scale an object and keep position | VOPs xform
1055
7
1
April 4, 2024 9:57 a.m.
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)
April 4, 2024 10:04 a.m.
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)
juejuezi
Member
34 posts
Joined: July 2022
Offline
April 4, 2024 10:31 a.m.
transform SOP, why you cant use a custom attribute for uniform scale?
Attachments:
PixPin_2024-04-04_22-30-44.png (741.3 KB)
April 4, 2024 10:38 a.m.
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?
juejuezi
Member
34 posts
Joined: July 2022
Offline
April 4, 2024 11:09 a.m.
scale attrib update each frame. But I am still correct here
Attachments:
PixPin_2024-04-04_23-07-59.png (659.6 KB)
April 4, 2024 11:18 a.m.
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 - April 4, 2024 11:18:56
Attachments:
Screenshot 2024-04-04 231732.png (216.6 KB)
juejuezi
Member
34 posts
Joined: July 2022
Offline
April 4, 2024 11:26 a.m.
try `point(0,0,'final',0)` because `point` need point number, `detail` do not required
April 4, 2024 11:28 a.m.
Oh your right, that fixed it. Appreciate that!
Edited by CreativeWaves - April 4, 2024 11:28:41