[Plugin] Point v1.2

[Plugin] Point v1.2

Postby Matt666 » Wed Oct 01, 2008 5:15 pm

Hi all !

Here is a plugin that draw a point wherever you want. You also can write length value in the VCB.
I created this plugin mainly to get familiar with some of Ruby functions, quite difficult to understand at first... :D
If this script can be used to someone ... ;)

Like Didier said : "Enjoy!" :lol:

PS : Thanks to Fredo6 for his help !

EDIT2: 07/05/2009 | Version 1.2:
  • Compatibility with Mac users.
EDIT1: 02/05/2009 | Version 1.1:
  • Add an icon, on demand of simon le bon
    PointTool.png
  • It does not create a point on an existing point
  • Supports organizer
  • You can now draw just one point
9
Last edited by Matt666 on Fri May 08, 2009 9:55 am, edited 7 times in total.
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point

Postby marcosrodrigues » Wed Oct 01, 2008 5:35 pm

:thumb: ;)
0
| menos é mais

marcosrodrigues 
 

Re: [Plugin] Point

Postby REGIS » Wed Oct 01, 2008 9:11 pm

Hi Matt

Unfortunately, it doesn't run on mac, load error point.rb.

@+
1

REGIS 
 

Re: [Plugin] Point

Postby herodes » Thu Oct 02, 2008 8:29 am

Thanks a million,... winxp here runs.
0

herodes 
 

Re: [Plugin] Point

Postby Matt666 » Mon May 04, 2009 7:48 pm

Hi all!
This plugin seems to have success (Downloaded 123 times)...
Here is an update (v1.1)... Read the first post for details!
;)
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point

Postby Gaieus » Mon May 04, 2009 8:01 pm

And I was the first to download this version.
Funny that there are quite a few "robust" plugins nowadays and we tend to forget about "small" but equally (if not even more) useful scripts that may make our lives so much easier and actually so much more often during every phase of modelling. Sometimes you don't even notice that you are using a plugin because you take it so natural that it's there. Like Weld.rb. Or this one.

Thanks a lot! :thumb:
0
User avatar
Gaieus 
 

Re: [Plugin] Point

Postby Chris Fullmer » Mon May 04, 2009 8:12 pm

Great job Matt! Good job on the toolbar too,

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] Point

Postby Matt666 » Tue May 05, 2009 9:56 am

Thank you! :oops:
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point

Postby PRSS » Tue May 05, 2009 4:40 pm

This will be really useful for me. Thanks a ton!

With best regards
PRSS
0

PRSS 
 

Re: [Plugin] Point

Postby Bones » Wed May 06, 2009 1:29 pm

Hi, cool plugin, you done a great job! If there a posible to put arow keys on blue, red , green axes like pen tool does?
0

Bones 
 

Re: [Plugin] Point

Postby simon le bon » Wed May 06, 2009 9:15 pm

Cher Matt!

Bravo pour cet outil!

I agree completely with Gaieus: a seemingly "little" tool that we forget that we need all the time.

How could we do without this tool ??




But at the end we need to erase all those construction points!!!
No problem! Just use the so powerful Matt666's Selection Manager ;) ;)


And dear Matt I'm sure you will not be angry about me if i complete the panoply with those daily other useful tools:
Jim Foltz's Construction Line Tool
Jim Foltz's Arc Centerpoint
Todd Burch's CenterPoint
Didier Bur's fr_lines_converter

:thumb: :thumb: Simon
0
User avatar
simon le bon 
 

Re: [Plugin] Point

Postby Bob James » Thu May 07, 2009 12:59 am

Have a problem loading: see attachment.
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Point

Postby jeff hammond » Thu May 07, 2009 1:58 am

Bob James wrote:Have a problem loading: see attachment.


ditto

looks very useful too... anyone know how to make this mac compatible?
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Point

Postby Matt666 » Thu May 07, 2009 11:05 am

@ Bones : Hi ! I will give a try... Not sure I can do that...
@ Jeff Hammond & Bob James : Ok, thank you for that! I have asked to Fredo6 (because his compatibility between Win & Mac is great), so be patient please! :D
@ simon le bon ... Bah didon belle présentation !! Merci à toi :oops: Thank you for this great presentation!!
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point

Postby simon le bon » Thu May 07, 2009 2:11 pm

:thumb: ;) :D
0
User avatar
simon le bon 
 

Re: [Plugin] Point

Postby MALAISE » Fri May 08, 2009 8:10 am

Obviously useful :thumb: :thumb:

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

Re: [Plugin] Point

Postby Matt666 » Fri May 08, 2009 9:52 am

Thank you Pierre!
A new version 1.2 is available... Try to fix Mac problems.
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point

Postby jeff hammond » Fri May 08, 2009 5:24 pm

Merci!

it's working nicely now on my mac.
btw, i think the provided icon is too small.. it's 16x16 but SU can use 24x24 as well..


simon le bon wrote:But at the end we need to erase all those construction points!!!
No problem! Just use the so powerful Matt666's Selection Manager ;) ;)


another option is edit->delete guides.. not as powerful as selection manager but it will get rid of the points as well.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Point v1.2 + dividing spaces

Postby agrazdi » Sun May 17, 2009 6:54 pm

I found this plugin great.
But it could be excelent if after you inferrenced the distance with another object you could tape /# of spaces and add constructions points. Sort of dividing a line in 2,3,4.... spaces.
Is it possible to add this request ?

Thanks

agrazdi
0

agrazdi 
 

Re: [Plugin] Point v1.2

Postby ilay7k » Sun May 17, 2009 8:40 pm

Matthieu, thank you
great addition for making of general plans
0

ilay7k 
 

Re: [Plugin] Point v1.2

Postby Matt666 » Sun May 17, 2009 8:45 pm

Thank you!
agrazdi, I will see what I can do!
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Point v1.2

Postby NewOne » Mon Sep 14, 2009 9:59 pm

--EDITED POST-- changed the files, and added code suggestion.

Alternate icons for PointTool
Matt666, if you like this icons, please edit your script to use 24x24px and 16x16px icons.

The changes I made to your script to accept those icons and cursor icon are:
Code: Select all
cmd.large_icon = File.join(p, "PointTool", "PointTool24x24.png")
cmd.small_icon = File.join(p, "PointTool", "PointTool16x16.png")

and
Code: Select all
def initialize
#...your previous code
p=Sketchup.find_support_file("Plugins")
pointTool_cursor_path = File.join(p,  "PointTool", "PointTool cursor.png")
@@pointTool_cursor = UI::create_cursor(pointTool_cursor_path, 3, 30)
end

def onSetCursor
UI::set_cursor(@@pointTool_cursor)
end


I am not sure if this is entirely correct, but it works for me.
If you decide to change the icons, pay attention on hotspot coordinates of the cursor ;)
Suggestion: add getExtents method to avoid disappearance of the OpenGL line.
Code: Select all
def getExtents
bbox = Geom::BoundingBox.new
   bbox.add @ip1.position
   if (@state == 0)
      bbox.add @ip.position if (@ip.valid? && @ip.display?)
   elsif
      bbox.add @ip2.position
   end
   bbox
end


P.S. I like your script very much, it ease my work a lot! It's a simple, but strong idea!
0
Last edited by NewOne on Tue Sep 15, 2009 1:08 am, edited 2 times in total.

NewOne 
 

Re: [Plugin] Point v1.2

Postby simon le bon » Mon Sep 14, 2009 10:45 pm

Hi NewOne,
Your icons are NumberOne ;)
But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.



:circle: simon
0
User avatar
simon le bon 
 

Re: [Plugin] Point v1.2

Postby NewOne » Mon Sep 14, 2009 10:52 pm

simon le bon wrote:Hi NewOne,
Your icons are NumberOne ;)
But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.
:circle: simon

Well... This is what I do now: try to figure out why on image viewer and on forum page the icon looks nice, but in Sketchup is a little messed up.
QUESTION: how many colors does sketchup accept for icons? true color, 256, or less? :oops:
0

NewOne 
 

Re: [Plugin] Point v1.2

Postby Jim » Mon Sep 14, 2009 11:25 pm

Sketchup Toolbar icons are 24x24, or 16x16 for the small icons. Tool cursors are 32x32.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Point v1.2

Postby NewOne » Mon Sep 14, 2009 11:47 pm

Jim wrote:Sketchup Toolbar icons are 24x24, or 16x16 for the small icons. Tool cursors are 32x32.

THANK YOU !! :sketchstatic:
I tested with 24x24 and it looks wonderfull.
0

NewOne 
 

Re: [Plugin] Point v1.2

Postby NewOne » Tue Sep 15, 2009 10:43 pm

The Blue Icon, because Simon Le Bon loved it...
PointTool-blue.png

for making the script to show cursor, see this post: http://forums.sketchucation.com/viewtopic.php?f=180&t=13077&st=0&sk=t&sd=a&start=15#p184325
0

NewOne 
 

Re: [Plugin] Point v1.2

Postby simon le bon » Tue Sep 15, 2009 11:21 pm

Hi NewOne,
Thank for it (the blue pen) . Now adopted :thumb: ;)
:line: simon
0
User avatar
simon le bon 
 

Re: [Plugin] Point v1.2

Postby watkins » Sat Sep 19, 2009 6:40 pm

Dear Matt,

I have downloaded your version 1.2, but cannot work out how to draw a single point other than hitting the Esc key. What should I do?

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Point v1.2

Postby utiler » Mon Nov 09, 2009 2:31 am

simon le bon wrote:Hi NewOne,
Your icons are NumberOne ;)
But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.



:circle: simon


I think JClements made the Construction line tool Icon. Would be good to see a similar icon for the point tool also.

Both point and Construction line tool I use all the time, thanks heaps guys!!!!!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Bull_10, medeek, NAGGA, Pio Pinzón and 5 guests

Visit our sponsors: