Sweep with expression controlled scale

   4090   5   2
User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
Hi

Is it possible to control the scale of the Sweep SOP with expression? I'd like to create roots, and the longer the curve, the thicker the scale. Apparently I cannot add expression to the Scale parameter.
User Avatar
Member
495 posts
Joined: July 2005
Offline
Hi,

you can create scale or pscale attribute on the backbone.
User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
Amazing, thank you very much!
User Avatar
Member
20 posts
Joined: April 2015
Offline
Hi,
i'm tryng to add a pscale on the backbone with a point wrangle, but nothing happend, i checked that attribute is there on points.
Any trick to make this work?
Thank you very much,
Carlo
User Avatar
Member
66 posts
Joined: May 2019
Offline
CarloB
i'm tryng to add a pscale on the backbone with a point wrangle, but nothing happend

Try to add backticks `@pscale`
However, you'll get a warning Local variable 'pscale' not found. I guess it's because Sweep SOP doesn't support local variables?

To fix this warning, use detail(opinputpath('.', 0), 'pscale', 0)or a short version: detail(0, 'pscale', 0).

This detail()expression will access incoming attributes from the upstream node(s).


Edited by AnimGraphLab - Oct. 12, 2024 07:44:07

Attachments:
houdini_mLb7ou6Dl9.gif (1.6 MB)

Generalist. Transforming still images to 3D animation 🔮
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
User Avatar
Member
271 posts
Joined: Aug. 2018
Offline
If you have @pscale on your backbone points, sweep should scale accordingly - and automatically.
Post your hip file if you need more help.
  • Quick Links