Here is a simple script that you can use to change a line or line segment to a different colour this idea came from a recent tread I was looking at (cant remember where now!)
Please keep in mind this is a first test but seems to be ok
Regards
Chris.
Re: Change Line Segment Colour
Posted: Tue Nov 05, 2013 11:05 am
by videodv
I forgot to point out on the video if you need straight ends then untick "Round Caps" in the Advanced section in the styles palette.
Regards
Chris.
Re: Change Line Segment Colour
Posted: Tue Nov 05, 2013 12:15 pm
by VĂctor Paredes
Nice script. I'm sure it will be useful in the future for fast segment painting.
Thanks.
Re: Change Line Segment Colour
Posted: Tue Nov 05, 2013 10:56 pm
by videodv
Your welcome
Regards
Chris.
Re: Change Line Segment Colour
Posted: Wed Nov 06, 2013 7:37 am
by videodv
Hi
Just a quick test pic to show some of the things this script will do that might not be obvious nothing fancy but could be of use at some point.
Regards
Chris
Re: Change Line Segment Colour
Posted: Wed Nov 06, 2013 9:26 am
by amanandink
Hey Chris
the script looks great, the only thing I noticed that might be an issue is on light colours, there is a pixel of black, its like the underneath colour shining through. you can see it on the yellow and green line
Jeremy
Re: Change Line Segment Colour
Posted: Wed Nov 06, 2013 10:17 am
by videodv
amanandink wrote:Hey Chris
the script looks great, the only thing I noticed that might be an issue is on light colours, there is a pixel of black, its like the underneath colour shining through. you can see it on the yellow and green line
Jeremy
Yep thats because the underlining line colour is black i'm sure the reason for the black pixel showing is because this was a quick and simple test and I changed the line size after creating the original line.
The second from the left is also coloured yellow but I changed the opacity to 50% to show the line colour underneath (black in this case)
Regards
Chris.
Re: Change Line Segment Colour
Posted: Wed Nov 06, 2013 11:22 am
by videodv
A final quick test pic.
Regards
Chris.
Re: Change Line Segment Colour
Posted: Wed Nov 06, 2013 1:45 pm
by videodv
Hi All
If you get an error for line 100 please change line 98 from this ptID = mesh:Point(segID+j) to this ptID = mesh:Point(segID)