How to draw a straight line segment

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
Peteroid
Posts: 162
Joined: Thu Aug 12, 2010 3:57 am
Location: las vegas, NV
Contact:

How to draw a straight line segment

Post 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! :)
[==Peter==]
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Post 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
Sorry for bad animation

http://www.youtube.com/user/sbtamu
sbtamu
Posts: 1915
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Post by sbtamu »

oops double post, sorry vern you were one min ahead of me :D
Sorry for bad animation

http://www.youtube.com/user/sbtamu
User avatar
Peteroid
Posts: 162
Joined: Thu Aug 12, 2010 3:57 am
Location: las vegas, NV
Contact:

Post by Peteroid »

Thanks guys! Yeah, I should have thought of 'Create Shape'... :)
[==Peter==]
RATHAHONNI
Posts: 32
Joined: Mon Aug 16, 2010 4:34 am

Re: How to draw a straight line segment

Post 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.
monkeywisdom
Posts: 13
Joined: Tue Feb 28, 2012 8:18 am

But How Do You Do It?

Post 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.
User avatar
slowtiger
Posts: 6240
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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.
monkeywisdom
Posts: 13
Joined: Tue Feb 28, 2012 8:18 am

Post 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.
User avatar
slowtiger
Posts: 6240
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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.
User avatar
hayasidist
Posts: 3831
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Post 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..)
monkeywisdom
Posts: 13
Joined: Tue Feb 28, 2012 8:18 am

Post 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.
monkeywisdom
Posts: 13
Joined: Tue Feb 28, 2012 8:18 am

Post 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.
User avatar
hayasidist
Posts: 3831
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Post 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...
monkeywisdom
Posts: 13
Joined: Tue Feb 28, 2012 8:18 am

Post 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.
Post Reply