Is there an interactive way to edit pscale on a curve?

   2535   10   3
User Avatar
Member
692 posts
Joined: Aug. 2019
Offline
I'm using Sweep SOP to create a simple tube-like shape from a curve:



In the above image I use a noise pscale. But what I actually want is to edit the pscale manually. Is it possible to be done in Curve SOP or Edit SOP?

I know I can use an extra Attribute Wrangle with a ramp parameter, but I feel that's quite unintuitive. Especially when the curve is quite long and complex, it's hard to tell which part of the ramp is which part of the curve.

Attachments:
Screenshot 2025-02-21 132223.jpg (122.7 KB)

User Avatar
Member
152 posts
Joined: June 2020
Offline
What if you plug in a Rig Pose SOP before the sweep?
User Avatar
Member
247 posts
Joined: May 2017
Offline
Here is a simple approach far from perfect but a starting point:
Interface to tweak single attr float in the viewport? [www.sidefx.com]
User Avatar
Member
692 posts
Joined: Aug. 2019
Offline
freshbaked
What if you plug in a Rig Pose SOP before the sweep?

I guess it's one way to do it... but still rather cumbersome. Rig Pose only reads/writes transform, not up/tangent/orient etc, so one needs to convert the output of Curve SOP to something that Rig Pose recognizes. And if the later node doesn't understand transform(for example, PolyExtrude only recognizes thickness), one has to convert it again.

Edit: for future reference, it's not that cumbersome. Just "3@transform = qconvert(p@orient);" Still one more node though.

vikus
Here is a simple approach far from perfect but a starting point:
Interface to tweak single attr float in the viewport? [www.sidefx.com]

This seems to be a more general solution. I'll take a look!
Edited by raincole - Feb. 21, 2025 07:12:38
User Avatar
Member
247 posts
Joined: May 2017
Offline
raincole
This seems to be a more general solution. I'll take a look!
Just uploaded a new file example with data change and sweep.
User Avatar
Member
269 posts
Joined: March 2013
Offline
I would just be using a ramp to be honest. As far as "knowing which bit of the ramp is controlling what
bit of your noodle, you can just have curveu driving a color ramp. Then it's easy to see which bit is aligned
visually.
I'm not lying, I'm writing fiction with my mouth.
User Avatar
Member
692 posts
Joined: Aug. 2019
Offline
lewis_T
I would just be using a ramp to be honest. As far as "knowing which bit of the ramp is controlling what
bit of your noodle, you can just have curveu driving a color ramp. Then it's easy to see which bit is aligned
visually.

For one single curve maybe. But if you have multiple curves drawn in one single Curve SOP, using ramp(s!) to control pscale is abysmal UX...
User Avatar
Member
802 posts
Joined: Feb. 2017
Offline
What about an attribute paint?

Cheers
CYTE

Attachments:
Paint.gif (1.3 MB)

User Avatar
Member
392 posts
Joined: Aug. 2018
Offline
CYTE beat me to it - was going to suggest the same. You'll need to tweak the brush settings a little, but it's easy and it works.
Edited by Mike_A - March 10, 2025 15:45:26
User Avatar
Member
562 posts
Joined: March 2014
Offline
Rigpose seems to work as well.

Image Not Found
Edited by toonafish - March 11, 2025 17:46:21

Attachments:
rigpose_pscale_sweep.mp4 (2.6 MB)

User Avatar
Member
269 posts
Joined: March 2013
Offline
raincole
lewis_T
I would just be using a ramp to be honest. As far as "knowing which bit of the ramp is controlling what
bit of your noodle, you can just have curveu driving a color ramp. Then it's easy to see which bit is aligned
visually.

For one single curve maybe. But if you have multiple curves drawn in one single Curve SOP, using ramp(s!) to control pscale is abysmal UX...

Your screen grab showed one curve.
I'm not lying, I'm writing fiction with my mouth.
  • Quick Links