Author Topic: Custom line ends  (Read 355 times)

0 Members and 1 Guest are viewing this topic.

zhuravsky

  • Jr. Member
  • **
  • Posts: 59
Custom line ends
« on: October 31, 2023, 04:41:14 AM »
Is there any way make custom line end with the behavior like standard ones.
In the attached file custom line end has a problem - size of line end goes to zero when line weight is 0 pt. Is it possible to fix this?

Surrogate

  • Hero Member
  • *****
  • Posts: 1836
    • ShapeSheet™ Knowledge Base
Re: Custom line ends
« Reply #1 on: October 31, 2023, 05:06:41 AM »
This post also have some back-story

Yacine

  • Hero Member
  • *****
  • Posts: 3236
Re: Custom line ends
« Reply #2 on: October 31, 2023, 07:41:30 AM »
I will look later more in depth at that line end.
Meanwhile you could use the standard line end #20 which seem to be identical to your custom stuff.


----


I understood the zero-size problem, but what about the scaling is it wanted?
I'm thinking of using 2 different line ends depending on the size of the line.
If (line.weight<1,use(end2), use(end1))
« Last Edit: October 31, 2023, 07:51:16 AM by Yacine »
Yacine

zhuravsky

  • Jr. Member
  • **
  • Posts: 59
Re: Custom line ends
« Reply #3 on: November 01, 2023, 08:28:51 AM »
Thanks to Yacine for an idea with "If (line.weight<1,use(end2), use(end1))"

Standard line end 20 is transparent in the middle, this is why I started playing with custom line ends.