SketchUcation Plugin Store

 

 

[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
Please, register (free) to access all the attachments on the forums.
Last edited by Matt666 on Fri May 08, 2009 9:55 am, edited 7 times in total.
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] Point

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

:thumb: ;)
| menos é mais
marcosrodrigues
 
Posts: 54
Joined: Tue Jun 10, 2008 2:14 am
Location: Salvador, Brasil
Name: Marcos

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.

@+
REGIS
 
Posts: 925
Joined: Mon Nov 19, 2007 11:25 pm
Location: Toulouse; France
Name: Régis Revaux

Re: [Plugin] Point

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

Thanks a million,... winxp here runs.
herodes
 
Posts: 31
Joined: Tue Jan 29, 2008 7:40 pm
Location: Rethymno, Crete, (Hellas)
Name: 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!
;)
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

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:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27607
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Point

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

Great job Matt! Good job on the toolbar too,

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6680
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: [Plugin] Point

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

Thank you! :oops:
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

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
PRSS
 
Posts: 95
Joined: Sun Nov 25, 2007 6:12 am

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?
Bones
 
Posts: 6
Joined: Wed Apr 23, 2008 1:15 pm

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
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Point

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

Have a problem loading: see attachment.
Please, register (free) to access all the attachments on the forums.
"If you don't plan ahead you'll be at the mercy of those that do" - Ashleigh Brilliant

"Bad is not good until worse happens" - Bob James
User avatar
Bob James
Premium Member
Premium Member
 
Posts: 605
Joined: Fri Jan 18, 2008 9:29 pm
Location: Lompoc, CA, USA
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Advanced

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?
dotdotdot
User avatar
Jeff Hammond
Global Moderator
 
Posts: 4308
Joined: Thu Jan 24, 2008 11:16 pm
Location: newyorkcity
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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!!
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

Re: [Plugin] Point

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

:thumb: ;) :D
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

Re: [Plugin] Point

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

Obviously useful :thumb: :thumb:

MALAISE :)
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

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.
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

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.
dotdotdot
User avatar
Jeff Hammond
Global Moderator
 
Posts: 4308
Joined: Thu Jan 24, 2008 11:16 pm
Location: newyorkcity
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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
Please, register (free) to access all the attachments on the forums.
agrazdi
 
Posts: 71
Joined: Tue Nov 13, 2007 1:26 am

Re: [Plugin] Point v1.2

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

Matthieu, thank you
great addition for making of general plans
ilay7k
 
Posts: 308
Joined: Wed Nov 14, 2007 3:49 pm
Location: Shymkent, Kazakhstan
Name: Ilya Shpilkin

Re: [Plugin] Point v1.2

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

Thank you!
agrazdi, I will see what I can do!
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

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!
Please, register (free) to access all the attachments on the forums.
Last edited by NewOne on Tue Sep 15, 2009 1:08 am, edited 2 times in total.
NewOne
 
Posts: 329
Joined: Thu Oct 23, 2008 6:21 pm
Location: Maramures, Romania

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
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

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:
NewOne
 
Posts: 329
Joined: Thu Oct 23, 2008 6:21 pm
Location: Maramures, Romania

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.
Jim
Global Moderator
 
Posts: 4126
Joined: Mon Nov 12, 2007 10:13 pm
Location: NEOH
Name: Jim
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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.
NewOne
 
Posts: 329
Joined: Thu Oct 23, 2008 6:21 pm
Location: Maramures, Romania

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
Please, register (free) to access all the attachments on the forums.
NewOne
 
Posts: 329
Joined: Thu Oct 23, 2008 6:21 pm
Location: Maramures, Romania

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
User avatar
simon le bon
 
Posts: 1077
Joined: Sat Jan 26, 2008 10:22 am
Location: Chouy/ Picardie/ France
Name: Simon Bonnet

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
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

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!!!!!
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1925
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
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

Are you a Premium Member? Get your freebies here. Are you not a Premium Member yet? Upgrade your account to grab these freebies instantly.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: aitatz, arnon5, bangkondi, pacha, panixia, SMckie1 and 8 guests