SketchUcation Plugin Store

 

 

[Tutorial] PickHelper - Visual Guide

[Tutorial] PickHelper - Visual Guide

Postby thomthom » Wed Aug 18, 2010 8:41 pm

When I first came across the PickHelper I was confused to exactly what data the various methods returned. I finally got around to compile a small visual guide.

Outdated
Latest version is here: http://www.thomthom.net/thoughts/2013/0 ... ual-guide/



Note: this is not a complete guide of all the methods.

PickHelper_1200.png


What you think? Understandable?
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Chris Fullmer » Thu Aug 19, 2010 1:42 am

I'm looking it over. The first thing I see if in the top, it says "in the example to right". the example is actually to the left.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Aug 19, 2010 7:20 am

Left - Right - it's all semantics... :roll: :oops:
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Edson » Thu Aug 19, 2010 12:46 pm

sorry, guys. you have lost me. what the heck is PickHelper???? :shock:
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2656
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Aug 19, 2010 12:56 pm

Edson wrote:sorry, guys. you have lost me. what the heck is PickHelper???? :shock:

You have strayed into the dark path of SketchUp API programming. :D
http://code.google.com/apis/sketchup/do ... elper.html
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Edson » Thu Aug 19, 2010 2:48 pm

sorry: wrong mumber. ;)
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2656
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Chris Fullmer » Thu Aug 19, 2010 8:32 pm

:roflmao:

@Thom - I've decided I do not know enough about the pickhelper to understand this yet. I've used it, but only the best_picked method. So I've never had to worry about leafs and paths. Maybe once I get more into the pickhelper I'll have something useful to say :P
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6691
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Aug 19, 2010 8:51 pm

Well - that means there is room for improvements. ;)
Is there some parts that does make sense?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby TIG » Thu Aug 19, 2010 10:13 pm

Sorry, but I understood it better before you published your guide :roll: ;)
TIG
User avatar
TIG
Global Moderator
 
Posts: 13980
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby jessejames » Fri Aug 20, 2010 7:36 am

Wow ThomThom this is a tough crowd tonight! :shock:. My connect speed seems to be on granny mode tonight (or your pdf is really large) but as soon as i can get an eyeall on that PDF i'll let ya know what i think ;)
Always sleep with a loaded gun under your pillow!
jessejames
 
Posts: 166
Joined: Sat Dec 27, 2008 3:30 am

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Tue Aug 24, 2010 8:14 am

Nothing to it but back to the drawing board. Think I'll make the next one bigger. Bigger is better, right? :D
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby MartinRinehart » Thu Aug 26, 2010 6:22 pm

Bravo, ThomThom! :thumb: :thumb: :thumb:

I love it when explorers return from parts unknown bearing and sharing maps.

(Nit: The plural of child is children.)
Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.
MartinRinehart
 
Posts: 762
Joined: Mon Jul 27, 2009 1:13 pm
Name: Martin Rinehart

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Aug 26, 2010 6:58 pm

MartinRinehart wrote:Bravo, ThomThom! :thumb: :thumb: :thumb:

Someone understood this? :o :)

MartinRinehart wrote:(Nit: The plural of child is children.)

Thanks - I'll sort it out for version 2. Getting a better idea on how to visualize this.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Wed Jan 02, 2013 8:50 pm

Revision 3

I've finally got around to work on a revision for this. Would you please have a look at this draft and give me your thoughts? Is it more understandable?
This version is more verbose and instead of trying to explain the entire class in one diagram I broke it down into categories.
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby jolran » Wed Jan 02, 2013 10:01 pm

I had a quick look. Good stylished job! Appears very easy too follow.
User avatar
jolran
 
Posts: 636
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Dan Rathbun » Wed Jan 02, 2013 10:07 pm

Text in Console Boxes a bit too small.

Green bubble text 2 steps too small.

Content text a bit too small.

Any Ruby expressions could be in Ruby-color.

Basically - too much wasted whitespace on the pages.

BUT the organization looks good... a should make a nice tutorial.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4074
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Wed Jan 02, 2013 10:26 pm

Dan Rathbun wrote:Text in Console Boxes a bit too small.

Green bubble text 2 steps too small.

Content text a bit too small.


How are you viewing it? Full pagewidth? On what size monitor?


Dan Rathbun wrote:Any Ruby expressions could be in Ruby-color.

Higher contrast for the code expressions would be good. But I wanted to ensure the content made any sense before I polished up the graphical details.


Dan Rathbun wrote:Basically - too much wasted whitespace on the pages.

Specifically where? The edges?
I've deliberately used white space to separate the sections and divide the information into chunks so the eye is served smaller units. Hearing why you think it's too much white-space would be interesting.


First of all I'm trying to gauge if the information is making sense. I want to nail the big details before I polish the small details.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Wed Jan 02, 2013 10:27 pm

jolran wrote:I had a quick look. Good stylished job! Appears very easy too follow.

Did it make any sense?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby jolran » Thu Jan 03, 2013 9:58 am

Yes it made sence. I love these visual guides :)

I might be a good testsubject because I have never used pickhelper.

Segments and Points confused me a little, and maybe another row of explanation would not hurt.

Theese following ideas may just be a subject of personal taste.
(People have their way of "taking in" information visually, and it might be impossible to please everyone.)


Label groups and components G1, G2 etc maybe adds 1 more level of translating information? If its for conserving space, maybe the example should include less entities.

The "Test scene" picture could be a "standard style"(lightgrey) screengrab? So user feel familiar with the scene and working in SU.

In any way. Great job, and thanks for doing guides like this.
User avatar
jolran
 
Posts: 636
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Jan 03, 2013 2:42 pm

jolran wrote:Segments and Points confused me a little, and maybe another row of explanation would not hurt.

Expand on what "segments" and "points" are?


jolran wrote:Label groups and components G1, G2 etc maybe adds 1 more level of translating information? If its for conserving space, maybe the example should include less entities.

This is something I went back and forth quite a bit with. Initially I had just plain colours, one for containers (groups and components) and one of leaves.
But I felt the need to reference and identify each branch - as the order of nesting is important. I find it difficult to remove the number of entities as the test scene is specifically set up to cover a multiple of scenarios. (Several entities overlapping each other but in different context.)
I agree though, it does add more noise to the chart - but without them I fear it'd be impossible to follow the flow. The Gx and Cx symbols are used to be able to reference specific entities in the descriptions.


jolran wrote:The "Test scene" picture could be a "standard style"(lightgrey) screengrab? So user feel familiar with the scene and working in SU.

Maybe so. I set it so I'd have darker background to match more the code blocks. But maybe that's not needed. But the light grey is just one of the default templates - Engineering templates are completely different.



I'll have to ponder on all this feedback.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Dan Rathbun » Thu Jan 03, 2013 3:35 pm

thomthom wrote:
Dan Rathbun wrote:Text in Console Boxes a bit too small.
Green bubble text 2 steps too small.
Content text a bit too small.
How are you viewing it?

When I click the download... Chrome d/l's it into the "~/documents/downloads" directory.
I have PDF set to open in Adobe Reader (a separate process, rather than within the browser.)

thomthom wrote:Full pagewidth?

Yes. I have Adobe Reader set to open docs in page width by default.

thomthom wrote:On what size monitor?

A 20 inch diagonal, Samsung 204B (1600x1200px,) which is 16" wide by 12" high.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4074
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby Dan Rathbun » Thu Jan 03, 2013 3:39 pm

thomthom wrote: Hearing why you think it's too much white-space would be interesting.

That's a minor thing... don't worry too much about that now.

thomthom wrote:First of all I'm trying to gauge if the information is making sense.

Yep.. I find the information very easy to follow.
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4074
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Jan 03, 2013 3:48 pm

I'll have to review the page size. To be honest - I don't know what paper size it is any more. I started out with a normal page format - but in order to focus on laying out the info I abandoned it and just expanded the page to make fit. The physical size is probably inherited by the underlying grid I used. Being vector I wasn't too concerned.

Thanks for the feedback.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby jolran » Thu Jan 03, 2013 4:25 pm

Expand on what "segments" and "points" are?


The last part where it says "Segments and Points". :)

It all depends on what user-level you are targeting.
Me, I felt I needed more information about points. (I've never used pic helper so I'm totally green on subject.) But then again I suppose this is meant to be a visual guide with as little text as possible, so that might work against the whole concept.


I'll have to ponder on all this feedback.


No need to "ponder" :D It is really good as it is.


Got a 21 inch screen. At full screenmode and 66,7% zoom the text size was fine on my computer.
Is target for print?
User avatar
jolran
 
Posts: 636
Joined: Sun Oct 26, 2008 9:23 pm
Location: Sweden
Name: Joel G
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Thu Jan 03, 2013 4:33 pm

jolran wrote:It all depends on what user-level you are targeting.
Me, I felt I needed more information about points. (I've never used pic helper so I'm totally green on subject.)

Yea, the thing with the pickhelper is that it serves multiple purposes. It let you pick entities in the model, but it also let you test against simple Geom::Point3d object - which which isn't represented by a model entity at all. I kind of feel the class should have been broken up into two separate classes because it's currently doing two separate jobs. I have been playing with making a wrapper that might make more sense to use.


jolran wrote:Is target for print?

No, screen was the target. Saving them poor trees.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby slbaumgartner » Sat Jan 05, 2013 4:22 am

thomthom wrote:Revision 3

I've finally got around to work on a revision for this. Would you please have a look at this draft and give me your thoughts? Is it more understandable?
This version is more verbose and instead of trying to explain the entire class in one diagram I broke it down into categories.


Thanks TT, looks clear and helpful. Now for your next assignment, compare/contrast pickHelper and InputPoint!

Steve
slbaumgartner
 
Posts: 66
Joined: Sat Dec 17, 2011 3:17 pm
Location: North of Boston, MA, USA
Name: Steve
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: woodworking
Level of SketchUp: Intermediate

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Sat Jan 05, 2013 12:24 pm

slbaumgartner wrote:Now for your next assignment, compare/contrast pickHelper and InputPoint!


Not sure if infographics is needed for that. :?:
PickHelper let you find out what you clicked on - like if you where making a Select tool. InputPoint uses inference, used by drawing tools such as Line, Rectangle, Circle etc.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Mon Jan 14, 2013 11:09 pm

Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby honkinberry » Fri Mar 15, 2013 8:30 pm

I have a Tool currently that uses the pick method, in order to place a Component that needs to be scaled.
The problem is, that seems to keep picking the *component* itself, so it keeps floating towards the camera.
I'm thinking PickHelper would, well, help with this? Am I understanding this right?
So conceivably, I would be replacing my @ip.pick with an @ph.do_pick, and then I could rifle through the objects to expressly avoid the component instance in question. Am I on the right track?

--J
honkinberry
 
Posts: 44
Joined: Sat Jan 19, 2013 10:18 pm
Name: Jeremiah Farmer
Operating system: Mac
SketchUp version: 8
License type: Free
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Tutorial] PickHelper - Visual Guide

Postby thomthom » Mon Mar 18, 2013 3:03 pm

I think you'd still get problems. You might have to avoid the PickHelper all together and use model.raytest - if you ray hits your component, you then re-shoot the ray from the point where it hit until it hits some other geometry or returns nil.

http://www.sketchup.com/intl/en/develop ... el#raytest
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17603
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Developers' Forum

Who is online

Users browsing this forum: binhnguyenhn and 4 guests