Page 1 of 2

How to draw a straight line segment

Posted: Sun Aug 22, 2010 2:05 am
by Peteroid
How does one draw a straight line segment of a given color and thickness?

Draw rectangles, circles, triangles, stars and spirals... sure.... don't see a 'draw line' tool.

The 'add point' tool seems to want a closed shape before anything is drawn, and ALL the tutorial only dealt with closed shapes such as circles and rectangles.

There was no tutorial that showed how to draw just a line segment of a desired color and thickness (other than freehand, I want straight line precision at ANY angle).

Thanks in advance! :)

Posted: Sun Aug 22, 2010 2:19 am
by heyvern
You can draw just two connected points, select those two points with the create shape tool and create a shape. This will create a "stroke only" shape that can have thickness and stroke color.

The "auto fill" option for the add point tool isn't going to auto create a non closed shape. It only works when the shape is finally closed. That is why to create a non closed single line shape you must use the create shape tool and select the points OR use the paint bucket shape tool and click on the vector. The paint bucket tool works with closed or unclosed shapes.

-vern

Posted: Sun Aug 22, 2010 2:20 am
by sbtamu
I'm not sure what you are asking but you can always draw the line then use create shape for it and set the color and width. This is what I do.

Stephen

Posted: Sun Aug 22, 2010 2:21 am
by sbtamu
oops double post, sorry vern you were one min ahead of me :D

Posted: Sun Aug 22, 2010 2:33 am
by Peteroid
Thanks guys! Yeah, I should have thought of 'Create Shape'... :)

Re: How to draw a straight line segment

Posted: Thu Sep 02, 2010 5:35 am
by RATHAHONNI
Peteroid wrote:How does one draw a straight line segment of a given color and thickness?

Draw rectangles, circles, triangles, stars and spirals... sure.... don't see a 'draw line' tool.

The 'add point' tool seems to want a closed shape before anything is drawn, and ALL the tutorial only dealt with closed shapes such as circles and rectangles.

There was no tutorial that showed how to draw just a line segment of a desired color and thickness (other than freehand, I want straight line precision at ANY angle).

Thanks in advance! :)


What turned on a light for me was,watching a tutorial on stick figures the tutor used the rectangle tool to make his straight lines,any length,width or color.

But How Do You Do It?

Posted: Sun Mar 04, 2012 9:02 am
by monkeywisdom
You cannot select points with create shape. You can draw shapes with it. This thread seems to be in Greek. How do you draw a straight line? "select points with create shape tool" does not tell anyone how to draw a straight line. Can anyone tell me how to do it? I'm trying to create a curve for the curve profile tool, but it's impossible to draw a horizontal line that this tool requires. I'm assuming that's why the curve profile tool won't even show up as an option. Thanks.

Posted: Sun Mar 04, 2012 10:53 am
by slowtiger
Use the (F) freehand tool to draw a short line, then the (T) transform tool to select single points and adjust them. Remember: what you draw is just the construction curve, in order to see something you need to assign a shape and an outline to it, that's what the "create chape" tool does.

Posted: Sun Mar 04, 2012 11:51 am
by monkeywisdom
Yeah, that translate points tool seems to have a knack for making the lines straight with little effort. Thanks. Now I'm just having troubles making curves for the curve profile tool. If I make a triangular "tooth" sitting on a horizontal line with the bottom line segment of the "tooth" taken out, that horizontal line doesn't seem to register as part of the curve. Then, after using the curve profile tool, there are no spaces between the "teeth". Can't seem to figure out how to draw these curves.

Posted: Sun Mar 04, 2012 12:13 pm
by slowtiger
You need to develop a feeling for it. The tools you have are:
- freehand drawing
- add point
- translate point (selects and deletes points as well)
- curvature adjustment.

Experiment a bit with these, you'll soon know what to do.

Posted: Sun Mar 04, 2012 4:01 pm
by hayasidist
viewtopic.php?t=19526&start=15 -- drawing tool that might help if what you want is a dead straight line with your choice of number of points (4 to 72) on it (plus other drawing options..)

Posted: Mon Mar 05, 2012 1:23 am
by monkeywisdom
I installed that script. Not sure whether I'm accessing it correctly. I click scripts--->draw and the choices are polygon, star and "apply sketchy effect". The polygon could come in handy. Didn't see anything regarding line segments, though.

Posted: Tue Mar 06, 2012 6:27 am
by monkeywisdom
The script finally kicked in. There's an "other" section underneath the pan and zoom tools. It can't find the image icons, but the script still works (with X's instead of tool icons). The line tool can draw a perfect horizontal line with the shift button. Haven't figured out the vertical part, but as one of you said, Translate Points works just well after drawing an imperfect line. I also figured out how to get good curvature tool effects. I think that the horizontal line segments forming the base of the curves weren't set to weld to the curve profile shape. Thanks, Y'all.

Posted: Wed Mar 07, 2012 12:11 pm
by hayasidist
Hi.. been on the road (again!) - sorry for slow response.

to get the icons: (as in the "readme")

The tool icon and the script itself (hs_shape .png and .lua) need to go in the directory
... \scripts\tool

The folder containing the icons for the individual tools (the other .pngs) needs to go in the directory
... \Resources\ScriptResources and named ... \Resources\ScriptResources\hs_shape_icons

The readme also describes tool options, how to get horizontal and vertical lines...

Posted: Wed Mar 07, 2012 9:45 pm
by monkeywisdom
Got that. Everything's in the right folders and the new folder's named correctly. My copy of the program probably just doesn't like the script. It's version 7.