[Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

[Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby kyyu » Tue Sep 28, 2010 3:01 pm

This was a request for a plugin to automatically divide up a solid into individual solids. The use would be importing out game levels. I guess the game engine can't deal with holes, like a wall with a window opening. What this plugin does is not divide up a solid, but works on 2D divided faces and pushpulls them into individual grouped solids. The thickness value needs to be manually changed in the beginning of the ruby. Default is 0.25
Original request thread is here: viewtopic.php?f=323&t=31112

blocks.gif


cube - groupPPfaces_explode.jpg


radialmove.png

[Original Version 0.1]

ky_Group_PushPull_2DFaces.rb


[Version 0.2]
I added an input box. Click ok to accept the default pushpull depth or enter new value. You can manual change two things in the code:
-change the value "thickness_default", to set the default thickness
-change to "use_input_box = false", if you don't want a input box

ky_Group_PushPull_2DFaces v0.2 (input box).png


ky_Group_PushPull_2DFaces v0.2 (input box).rb


[version 0.3b]
The plugin now has the option of making components instead of groups. A component option has been added to the input box. Like the other values, you can change the default in the code. Just read the comments at the beginning of the code, for instructions.

ky_Group_PushPull_2DFaces v0.3.png


ky_Group_PushPull_2DFaces v0.3b (comp).rb


[New version 0.4]
Now, saves changed input box values, for the entire sketchup session.

ky_Group_PushPull_2DFaces v0.4 (gvar).rb
1
Last edited by kyyu on Wed Oct 20, 2010 6:31 am, edited 5 times in total.

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces

Postby DIEGO-RODRIGUEZ » Tue Sep 28, 2010 3:54 pm

thanks, very handy tool.
Be possible to add the option pushpull thickness, using VCV?
-Operation
-Select faces
Tool-run
-PushPull thickness
I press ENTER, or double-click
-------------------------------------------------- ----------------------------
Some suggestions:
Entered value last remember?
if the value is 0, not does generate pushpull. Generates only groups of faces?
You can enter negative values?
pushpull possibility of center on the selected face?
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Group PushPull 2DFaces

Postby pilou » Tue Sep 28, 2010 5:26 pm

Radial move is here ;) by CPlassais & Pilou ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Group PushPull 2DFaces

Postby EarthMover » Tue Sep 28, 2010 5:45 pm

Making them into components instead of groups would be a better option. This would allow you to run ThomThom's "Replace Similar" script and have them replaced where applicable.
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Group PushPull 2DFaces

Postby Dave R » Tue Sep 28, 2010 9:08 pm

EarthMover wrote:Making them into components instead of groups would be a better option. This would allow you to run ThomThom's "Replace Similar" script and have them replaced where applicable.


+1 on that.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Group PushPull 2DFaces

Postby pilou » Tue Sep 28, 2010 9:31 pm

run ThomThom's "Replace Similar"

Where is this plug? :oops:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Group PushPull 2DFaces

Postby kyyu » Tue Sep 28, 2010 9:34 pm

I don't normally use components, so don't even know how to code for it. If anyone wants to, feel free to modify this plugin for components. And I will post it above, as an alternative.

This was just a quick writeup, that I never intended to improve on. But what I plan to do is incorporate this plugin into my PushPull & Group Plugin, which already has most of the features requested by DIEGO-RODRIGUEZ. I did try my PushPull & Group Plugin, originally, but it could not handle faces that touched (adjacent). You guys can check out this video, of the current incarnation of the PushPull & Group Plugin: http://www.youtube.com/watch?v=lQgeMuFdpKU

-Kwok
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces

Postby thomthom » Tue Sep 28, 2010 9:40 pm

EarthMover wrote:Making them into components instead of groups would be a better option. This would allow you to run ThomThom's "Replace Similar" script and have them replaced where applicable.

0.2.0 supports groups.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Group PushPull 2DFaces

Postby Dave R » Tue Sep 28, 2010 9:49 pm

thomthom wrote:0.2.0 supports groups.


Does it leave them as groups, though?
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Group PushPull 2DFaces

Postby thomthom » Tue Sep 28, 2010 10:24 pm

At the moment, yes ... I think. But Selection Toys can convert them into components.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Group PushPull 2DFaces

Postby razer » Wed Sep 29, 2010 8:19 am

This is good for old game engines due to the fact they only work with groups and basic solids, That way I can create my walls with doors and windows in a flash :D!
0

razer 
 

Re: [Plugin] Group PushPull 2DFaces (v0.2) Oct 13, 2010

Postby kyyu » Thu Oct 14, 2010 2:25 am

Updated to v0.2. Input box added.
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces (v0.3) Oct 19, 2010

Postby kyyu » Wed Oct 20, 2010 12:34 am

Updated to v0.3. You now have the option to make components.
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces (v0.3) Oct 19, 2010

Postby DIEGO-RODRIGUEZ » Wed Oct 20, 2010 1:13 am

thank you very much
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Group PushPull 2DFaces (v0.3b) Oct 19, 2010

Postby kyyu » Wed Oct 20, 2010 4:40 am

Your welcome, DIEGO-RODRIGUEZ.

Everyone, I found a bug and have released a quick update. (from v0.3 to v0.3b ) Please, get the new version. The bug I fixed only has effect, if you chose the option not to use the input box.

-Kwok
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces (v0.3b) Oct 19, 2010

Postby DIEGO-RODRIGUEZ » Wed Oct 20, 2010 4:53 am

thanks.
you can add the option to remember the last setting used?
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Group PushPull 2DFaces (v0.3b) Oct 19, 2010

Postby kyyu » Wed Oct 20, 2010 6:33 am

DIEGO-RODRIGUEZ wrote:thanks.
you can add the option to remember the last setting used?

Done, new version 0.4 posted. :)
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby DIEGO-RODRIGUEZ » Wed Oct 20, 2010 9:27 pm

thank you very much
0

DIEGO-RODRIGUEZ 
Banned
 

Re: [Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby 3dsketchupper » Thu Nov 11, 2010 3:35 am

Nice addition,Thanks for sharing. it will be good as mention to
have component option.
0

3dsketchupper 
 

Re: [Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby razer » Tue May 31, 2011 5:03 am

Hello I was wondering how could I put this in my right click menu? that way its easier to get to Thanks! I was also wondering if you could add more saved options that way I can have 2 measurements instead of going back and forth having to change it all the time
0

razer 
 

Re: [Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby kyyu » Tue May 31, 2011 5:47 am

razer wrote:Hello I was wondering how could I put this in my right click menu? that way its easier to get to Thanks! I was also wondering if you could add more saved options that way I can have 2 measurements instead of going back and forth having to change it all the time

Not too hard to learn a few thing, so you can customize plugins for your own needs. I just posted a few links for another beginner starting out: viewtopic.php?f=323&t=28086&p=332294#p332294
There is a link there to a pdf book, Automatic Sketchup, specifically Chapter "10.2 Menus", page 220. It's only a few pages, which will answer your 1st question about context menus. If it's still confusing, just look at another plugin that uses a context menu. It's generally the very last lines.

-Kwok
0

kyyu 
 

Re: [Plugin] Group PushPull 2DFaces (v0.4) Oct 20, 2010

Postby wjoey » Mon Oct 22, 2012 3:02 pm

It's save a lots of time. Thank you so much.
0

wjoey 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: linkph, raju7411, sreten, waci123pl and 8 guests

Visit our sponsors: