Jump to content

space sphere apart with pscale attribute

Recommended Posts

If i have 5 points all at the origin each with i different pscale, how can i move them apart along the x axis so that when I copy spheres to them the spheres will touch but not intersect?

thanks in advance.

Share this post

Share on other sites

Use the point relax sop

Share this post

Share on other sites
45 minutes ago, DonRomano said:

Use the point relax sop

I tried that but I need the points to all in a line. The point relax pushes them into a circle.

Share this post

Share on other sites

using a line would be far simpler...but yes I can see your points coming from some particle emitter all from origin....but can be done.

the 0.1 should really be checked against the smallest pscale possible...or just be lazy...make the 0.1 be 0.0001

Edited by Noobini
• 1

Share this post

Share on other sites
8 minutes ago, Noobini said:

using a line would be far simpler...but yes I can see your points coming from some particle emitter all from origin....but can be done.

Amazing, thank you! I'm working with points created with the Table Import sop. The points are created at the origin.

I'm not exactly sure why your solution works. I guess @P.x = 0.1*@ptnum; starts them off in a line and the relax sop works like a solver to continue pushing them apart in that direction.

this was helpful for me.
thank  you.

Share this post

Share on other sites

and now...for 'nearly' in any direction you want...

- So if you want to line them up in an ortho axis X/Y/Z, just nudge the slider in that axis abit and leave the other 2 at 0.

- if you leave one axis at 0 and nudge the other 2, then you get some angle...(this is still planar...hence I said 'nearly' any direction you want, there's probably a way so you can align the line in ANY direction then apply the relax...job for the VEX gurus...not me )

vu_lineupSpheres2.hiplc

• 1

Share this post

Share on other sites

Oh good idea! Super cool. Thanks again!

Share this post

Share on other sites

YES !!!

Now works in any direction

vu_lineupSpheres3.hiplc

Edited by Noobini
• 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

• Leaderboard