Scale an object and keep position | VOPs xform

   515   7   1
User Avatar
Member
50 posts
Joined: May 2018
Offline
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)

User Avatar
Member
50 posts
Joined: May 2018
Offline
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)

User Avatar
Member
28 posts
Joined: July 2022
Offline
transform SOP, why you cant use a custom attribute for uniform scale?

Attachments:
PixPin_2024-04-04_22-30-44.png (741.3 KB)

User Avatar
Member
50 posts
Joined: May 2018
Offline
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?
User Avatar
Member
28 posts
Joined: July 2022
Offline
scale attrib update each frame. But I am still correct here

Attachments:
PixPin_2024-04-04_23-07-59.png (659.6 KB)

User Avatar
Member
50 posts
Joined: May 2018
Offline
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)

User Avatar
Member
28 posts
Joined: July 2022
Offline
try `point(0,0,'final',0)`
because `point` need point number, `detail` do not required
User Avatar
Member
50 posts
Joined: May 2018
Offline
Oh your right, that fixed it. Appreciate that!
Edited by CreativeWaves - April 4, 2024 11:28:41
  • Quick Links