[Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Re: [Plugin] Perpendicular Face Tools (UPDATED AGAIN 3-25-09)

Postby Chris Fullmer » Thu Mar 26, 2009 4:57 am

Well I see where its handy, especially if its already a normal part of your workflow. I think what I can implement easy enough is like a shift key that will rotate the faces. Hit the shift key once and it rotates.

A square could rotate 45 degrees each shift. A circle could rotate whatever degree would be require to shift between a flat edge down or a vertex down. THe custom face could rotate 90 degrees, since a fast way to rotate it 180degrees would be handy, perhaps increments of 90 would be a good place.

Anyhow, those are thoughts. I'll implement it. I'll even see if I can make the circle work so that it starts with the vertices at the top and bottom from the start. So the shift would take make it have an edge on top bottom. Make sense? Anyhow, I'll work on it. Let me know if you have any thoughts on the ideas and I'll see what I can do. But I'll be taking a break to watch LOST in a few minutes :)

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED AGAIN 3-25-09)

Postby jeff hammond » Thu Mar 26, 2009 5:22 am

Chris Fullmer wrote: But I'll be taking a break to watch LOST in a few minutes :)


haha


i don't know. it's up to you.. i do think it's important to keep it fairly simple instead of using a somewhat obscure reason to bloat it.. maybe some others can chime in and reach a consensus..
now that i think about it, once i start using this in a drawing, i'll probably prefer using the square instead.. even if i'm drawing an arc.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools v0.1 beta

Postby jeff hammond » Thu Mar 26, 2009 5:30 am

and just to jump start that consensus, here's what TIG had to say earlier in the thread.

TIG wrote:Circle - not so important to get 'square', but if it has few segments it'd be best if a vertex were at the lowest point in Z



:)
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED AGAIN 3-25-09)

Postby Chris Fullmer » Thu Mar 26, 2009 5:42 am

Well, it turns out that its super simple to implement a modifier key rotation. SO I'll go ahead and do that. I tried shift and it kept rotating when I was trying to orbit and pan with shift key and middle mouse button. Alt was no good, kept opening the menu system and it was annoying to have to keep click back off of the menu.

I think I'll do the up arrow key. Thats convenient and not in use while my tool is activated.

Chris

In fact, I've pretty much got it implemented and its quite nice. I'll have the update in a little bit.
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 6:11 am

UPDATE! v1.2 Implemented some of the stuff we've been discussing in previous posts.

v1.2 Updates:
  • Changed so that circles default to have their vertices on top and bottom, not edges.
  • The up arrow key rotates the faces after they have been placed. Squares will rotate 45 degrees. Circles will rotate the angle needed to alternate between having an edge or a vertex on the top. Custom faces rotate in 90 degree increments. Helpful for fixing faces that are oriented 180 off, or that were drawn on the wrong axis.

Chris

Sorry to everyone who has been downloading every update today....3 installs in one day! Thanks for trying this script.
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby pilou » Thu Mar 26, 2009 9:19 am

Funny sound video! A new ambiance ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby free agent » Thu Mar 26, 2009 10:00 am

wow thanx this script should be awsome now all i need is the occasion to use it.
0
User avatar
free agent 
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Dave R » Thu Mar 26, 2009 12:05 pm

Chris, thank you very much for plugging away at this (pun intended :))

I just zipped out the attached in about 2 minutes thanks to this plugin. I think I can see some neat applications for this.

0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby dylan » Thu Mar 26, 2009 3:06 pm

Dave that is exactly the sort of thing I thought of using this for when I realized the new features added.

Thanks Chris, this is fantastic :thumb:
0

dylan 
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Dave R » Thu Mar 26, 2009 4:10 pm

Dylan, I was just experimenting and came up with this thing. It could be a drawer or door pull or something. I could have made the corners a bit more rounded but since I started out not knowing what I was going to draw, this is alright. The section is an ellipse and it is thicker in the middle than at the ends. Between Chris's plugin and the Skin plugin, this was all dead simple and fast work.

0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 4:40 pm

Hey, great woork. Its good to see the plugin being used!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby jeff hammond » Thu Mar 26, 2009 5:26 pm

sweet, the circle is working great now..

i'm starting to feel like a pest now but i can't get the rotation to work on my mac.. it doesn't bother me but some other mac users might like the rotate option (and actually, i probably will too once i find myself doing a custom profile).

the status bar says this when i'm using the script:
Code: Select all
Click on a line-end to place a perpendicular square on it. ctrl = Use "Arbitrary Rotation"


the ctrl key on a mac (in conjunction with the mouse) triggers a right click.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby jim smith » Thu Mar 26, 2009 5:56 pm

Great tool Chris - I can see quite a few uses.

I could see this type of script speeding up the process of putting a model together from imported cad elevations. Attached is a WIP showing a model I just started to assemble from autocad parts. My process now is to make faces, rotate and snap together. I wonder if there is any chance that a divided surface might eventually take advantage of this script?
site_03-26-09.jpg
0
"Out of clutter find simplicity,
from discord find harmony,
In the middle of difficulty lies opportunity"
Albert Einstein
User avatar
jim smith 
Premium Member
Premium Member
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby MALAISE » Thu Mar 26, 2009 7:34 pm

Hi Chris, really good tool :ecstatic:

Just have a look :

MALAISE
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 7:57 pm

Hmm, interesting I'll look at that cosmetic issue.

Also, is there someone on a Mac who would be able to help me find the right key for the up arrow? You would just install the little ruby attached to this message like a regular ruby. Then run sketchup. Open the ruby console and type:

load 'key_finder.rb'

After you type that, leave the ruby console open. And click back into the Sketchup window. Then press the up arrow. A message will display in the ruby console. Hopefully something like

The Key identifier is: 38

Could you please copy and paste that message back here for me?

Probably just delete the file from your plugins folder afterwards. Thanks

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby jeff hammond » Thu Mar 26, 2009 7:59 pm

The Key idenetifier is: 63232
(that's for the up arrow)

[took me a while to figure out how to open the ruby console :lol: ]
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 8:33 pm

Excellent, thanks! I'll try to get that worked into the code tonight.

Also, I've thought about trying to make it more compatible with multiple faces. It would not be all that difficult to make it work with multiple flat faces. It would take a little bit more work to get it to work with non-planar faces. But I have a feeling that if I sat down and tried to make it work like that, I would also iron out the bug that makes the custom face tool slightly unpredictable. So maybe it would be good. But multiple planar faces would actually probably be pretty straightforward to implement.

Thanks for the help and suggestions everyone,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Jim » Thu Mar 26, 2009 10:31 pm

Don't the key constants work? It seems like the most portable solution.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 11:00 pm

Well, yes. But I would nee dot figure out how to use those :oops:

Also, I didn't spend a lot of time with them because I wanted to use the up arrow key, which it seems is not supported with the key constants.

Have any hints how to you use those and which is best? I like ctrl on the PC, but it apparently conflict on the Mac.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Jim » Thu Mar 26, 2009 11:06 pm

Well, then we woo nee dot show lkie tihs.
Code: Select all
if key == VK_UP
  # do this
end
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby jeff hammond » Thu Mar 26, 2009 11:22 pm

Chris Fullmer wrote: I like ctrl on the PC, but it apparently conflict on the Mac.


actually, i'm not quite sure ctrl would conflict..
ctrl is used with some other tools:

cmd-ctrl-leftclick = orbit
shift-ctrl with the eraser = unsoften/unsmooth

i was just saying earlier that it's generally used for right clicking if you use apple's one button mouse.

with the orbit example, i can ctrl-leftclick and get the context menu or i can add the command key and start orbiting.. i'm guessing it won't be a problem to use ctrl for the rotate function in your script and besides, it would probably be nicer to have a key on the left side of the keyboard instead of the right..

is there anyway i can test a ruby with a ctrl modifier to see if it works on a mac?
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Thu Mar 26, 2009 11:29 pm

Jim wrote:Well, then we woo nee dot show lkie tihs.
Code: Select all
if key == VK_UP
  # do this
end


I am a bad typer and a fast typer.....they don't go together well!

Thanks for the tip Jim. Is there a way to list all the constants? I tried constant_variables (like global_variables does for globals), but thats not it. Is there a variable that contains all the initialized constants?

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Dave R » Fri Mar 27, 2009 12:02 am

Chris, I've been playing with this plugin some more. I like it in case you haven't noticed. :D

Drawer Pull.jpg

This is a drawer or door pull or maybe a handle for the lid of an Asian influenced box.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Fri Mar 27, 2009 12:37 am

Dave, how are you getting the scale to change over the length of the shape? My tool only places the face on the line, but your shapes are all changing scale along their path quite smoothly. What is the trick there?

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Dave R » Fri Mar 27, 2009 12:57 am

Chris, I'd love to tell you something like, "I found a loophole in your script." :lol: Alas, I'm just scaling the faces after placing them. In the case of the last image I posted, I drew a Bezier curve for the path--the curve you see in the top view--and another for the curve you see in the side view. I drew the custom face as half the profile and used your script to put it at the vertices along the curve. I rotated the large end profile 5° off vertical for this pull and then scaled all of them to height to match that upper curve.

After that was all done, I exploded the faces, deleted the faces leaving the edges and used the Skin plugin to fill things in. I only made a quarter of the handle, made it a component and copied/fipped it to make the other three quarters.

I probably don't need to use your plugin to create this but it is so quick at putting the faces in at the desired points and I think the end shape looks a bit nicer with the faces turned at each vertex to split the angle.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Chris Fullmer » Fri Mar 27, 2009 1:19 am

Dave R wrote:Chris, I'd love to tell you something like, "I found a loophole in your script." :lol:


Ha, yeah right. A "loophole" in my script would be more likely to crash your system indefintely than create unexpected awesome geometry :)

Thanks for the explanation. I was wondering how you were getting the scaleing to come out so evenly. The bezier above them makes a lot of sense,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby takesh h » Fri Mar 27, 2009 1:36 am

An interesting Ruby, Chris. This can be really handy.
One wish from me - Is it possible to pick a reference point (a vertice that sticks to the path) when placing profiles onto a path?
Right now it uses centers (more or less) of faces?
0
User avatar
takesh h 
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby Dave R » Fri Mar 27, 2009 1:38 am

Chris, I don't mean to be getting off topic but here's sort of a deconstruction of the thing. The horizontal guides intersect the Bezier curve at the nodes or vertices. (Is it proper to call them nodes?) You can see the Bezier drawn on the ground plane, too. I copied that one and used the copy as the "path" for placing the faces with your plugin. All of this runs parallel to the red axis. Which you would glean from the position of the original face shown in green off to the right.

I did have to scale the faces in the green direction to get the vertical edges to lie on the centerline of the handle.

Drawer Pull Explained.jpg
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby xrok1 » Fri Mar 27, 2009 1:46 am

Thanks for the explanation. I was wondering how you were getting the scaleing to come out so evenly. The bezier above them makes a lot of sense,


wouldn't it be awsome if you could get you're script to do that automatically?!! :P scale to curves. WOW! how about this; draw to curves (rails) at get the profile to copy and scale at given intervals, say /6 or /12 or whatever. :P

now that would be a great tool!!!!!!!!!!!
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Perpendicular Face Tools (UPDATED 26-03-09)

Postby xrok1 » Fri Mar 27, 2009 1:49 am

takesh h wrote:An interesting Ruby, Chris. This can be really handy.
One wish from me - Is it possible to pick a reference point (a vertice that sticks to the path) when placing profiles onto a path?
Right now it uses centers (more or less) of faces?


place a constuction point and you should be able to use that.
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: opal1979, songgoggo and 11 guests

Visit our sponsors: