Animate dotted or dashed lines along a path

   2929   4   0
User Avatar
Member
205 posts
Joined: Dec. 2009
Offline
Hi,

I can create static dashed (or dotted) lines/paths quite easily via resampling and deleting certain parts (or using the generated points).

When I'd like to have a animated version, I would try it with a carve-sop inside a for-each or look into vex.

Out of curiosity and learning purposes, I am looking for other (maybe simpler) approaches. Any hints?

Cheers
User Avatar
Member
679 posts
Joined: Feb. 2017
Offline
Hey bollili,

maybe you can use the prim uv [www.sidefx.com] function to set positions on a curve. But I see that's the VEX approach you are talking about….

Cheers
CYTE
Edited by CYTE - June 10, 2020 04:49:32
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Hi bollili, I think we had this before: https://forums.odforce.net/topic/41791-animated-dashed-line/ [forums.odforce.net]
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
475 posts
Joined: July 2005
Offline
Hi,

you can do alot with the clip node, if your lines have enough points.

Attachments:
clip_carve_lines.hipnc (304.7 KB)

User Avatar
Member
205 posts
Joined: Dec. 2009
Offline
Thx guys! While playing around, I found another quite nice approach, incorporating the new pathdeform.
I just had to design the dashed line as I wanted it to look and move it along the path by animating the “Offset Position Using” parameter.
  • Quick Links