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

   2338   10   3
User Avatar
Member
692 posts
Joined: 8月 2019
オフライン
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: 6月 2020
オフライン
What if you plug in a Rig Pose SOP before the sweep?
User Avatar
Member
247 posts
Joined: 5月 2017
オフライン
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: 8月 2019
オフライン
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 - 2025年2月21日 07:12:38
User Avatar
Member
247 posts
Joined: 5月 2017
オフライン
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: 3月 2013
オフライン
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: 8月 2019
オフライン
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
789 posts
Joined: 2月 2017
オフライン
What about an attribute paint?

Cheers
CYTE

Attachments:
Paint.gif (1.3 MB)

User Avatar
Member
393 posts
Joined: 8月 2018
オフライン
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 - 2025年3月10日 15:45:26
User Avatar
Member
545 posts
Joined: 3月 2014
オフライン
Rigpose seems to work as well.

Image Not Found
Edited by toonafish - 2025年3月11日 17:46:21

Attachments:
rigpose_pscale_sweep.mp4 (2.6 MB)

User Avatar
Member
269 posts
Joined: 3月 2013
オフライン
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