[Plugin] Name Group on Creation

[Plugin] Name Group on Creation

Postby Jim » Tue Apr 29, 2008 10:24 am

This simple script creates a Group from the selected geometry, then prompts for the group's name. Use the "Make Named Group" function from the Edit menu. Also has a context menu item.

2010-Dec-07

* Up to 20 Names are saved between SketchUp sessions. The names are sored ina file name Plugins/makeNamedGroups_names.txt, which can be edited using a plain-text editor - one name per line.

This file is meant to replace the file named makeNamedGroup+.rb, if installed.

Download
makeNamedGroup.rb
0
Last edited by Jim on Sat Apr 02, 2011 5:24 pm, edited 6 times in total.
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby Stinkie » Tue Apr 29, 2008 10:53 am

Thanks. Very handy.
0
User avatar
Stinkie 
 

Re: [Plugin] Name Group on Creation

Postby alz » Tue Apr 29, 2008 2:37 pm

Nice - Thanks Jim! I've added it as my new group shortcut.
0

alz 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Name Group on Creation

Postby plot-paris » Thu May 01, 2008 8:33 am

quite handy.
but sometimes I dont want to name a group (for example if it is just temporary). I do know nothing about programming. but is it possible to write a ruby, that lets the cursor appear within the group's name in the outliner after creation instead of popping up a new window?

that would be the perfect solution for me...
0
User avatar
plot-paris 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Thu May 01, 2008 11:21 am

plot-paris wrote:quite handy.
but sometimes I dont want to name a group (for example if it is just temporary). I do know nothing about programming. but is it possible to write a ruby, that lets the cursor appear within the group's name in the outliner after creation instead of popping up a new window?

that would be the perfect solution for me...


Just tapping the Enter key will make the dialog go away and name the group "Group". There is no way to select the group in the outliner for editing. (At least from Ruby.)
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby JClements » Thu May 01, 2008 3:39 pm

Thanks Jim, I changed my shortcut for grouping to your script.

Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Name Group on Creation

Postby a4chitect » Thu May 01, 2008 6:11 pm

it should ideally prompt in the VCB only :)
0

a4chitect 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Name Group on Creation

Postby Jim » Thu May 01, 2008 11:01 pm

JClements wrote:Thanks Jim, I changed my shortcut for grouping to your script.

Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.


Yes, but only if I switch it to use a WebDialog. Which I will do a little later just for kicks.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby Jim » Thu May 01, 2008 11:03 pm

a4chitect wrote:it should ideally prompt in the VCB only :)


I quite like this idea - no dialog at all. I'll try this too.

EDIT: Unfortunately, this can't be done. Anyone guess why?
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby RickW » Sat May 03, 2008 6:14 pm

Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.
0

RickW 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Sat May 03, 2008 6:45 pm

RickW wrote:Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.


True, and also any key shortcut you hit while typing the name will exit the Tool anyway.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby a4chitect » Sat May 03, 2008 7:52 pm

sorry for not checking myself first... thanks for looking into it
0

a4chitect 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Name Group on Creation

Postby AlexMozg » Tue May 20, 2008 11:14 pm

Jim, thank you for a wonderful idea.
I edited your script and added list of the before entered values for a substitution
and also checking for an empty selection.
Jim, once again thank you.
*************
Jim, I regret because published this script here.
I think that it is not nice for my part.
0

AlexMozg 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Name Group on Creation

Postby j_forrester » Tue Sep 09, 2008 2:10 pm

Can this be used commercially?
0

j_forrester 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Wed Sep 10, 2008 12:02 am

j_forrester wrote:Can this be used commercially?


I sent you a PM.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby bianhai » Wed Sep 10, 2008 8:57 am

Thanks!Jim! :thumb:
0

bianhai 
Banned
 

Re: [Plugin] Name Group on Creation

Postby watkins » Wed Sep 10, 2008 2:05 pm

Dear Jim,

Could you possibly modify your script to include a toggle On/OFF icon so that the box can be made to automatically pop up when a group is created. As it stands, leaving the Entity Info box open on the screen is more convenient. The box automatically popping up would remind the user to name the group, making Outliner easier to use. The toggle OFF option would be useful for those not needing the detail.

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Tue Sep 16, 2008 10:18 pm

AlexMozg wrote:Jim, thank you for a wonderful idea.
I edited your script and added list of the before entered values for a substitution
and also checking for an empty selection.
Jim, once again thank you.
*************
Jim, I regret because published this script here.
I think that it is not nice for my part.


Thanks, I've included your modified version in the first post of this thread.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby watkins » Thu Sep 18, 2008 9:05 pm

Dear Jim,

I note that when a named group is deleted it disappears from the list in Outliner, but not from the list in makeNamedGroup+.rb.

Is there any way to update/purge the list when groups are deleted?

Kind regards,

Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Thu Sep 18, 2008 9:33 pm

Hi Bob,

I'll have a look at it over the weekend, as well as your earlier message.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby watkins » Thu Sep 18, 2008 9:47 pm

Dear Jim,

As always, many thanks.

By the way, the polymer base is in manufacture, and so is the load spreader. I am currently working on the details of the drive unit.

Regards,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Sat Sep 20, 2008 1:22 pm

watkins wrote:Dear Jim,

Could you possibly modify your script to include a toggle On/OFF icon so that the box can be made to automatically pop up when a group is created. As it stands, leaving the Entity Info box open on the screen is more convenient. The box automatically popping up would remind the user to name the group, making Outliner easier to use. The toggle OFF option would be useful for those not needing the detail.

Kind regards,
Bob


Isn't this how it works? The dialog pops-up if you use the Make Group option in the Plugins menu.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby watkins » Sat Sep 20, 2008 1:46 pm

Dear Jim,

Yes, you are right. I missed the right-click context menu. Apologies for wasting your time.

Thanks,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Sun Sep 21, 2008 2:06 am

Good news - I found a way to detect when a Group is created. This is cool because now I can pop-up a dialog when the built-in Make Group is used - so there's no need for a separate menu item at all. I'll update when I get through it.

Also, the option can be turned on and off using the Extensions (in Preferences) dialog, or a Toolbar button. Enabled you get a Name: prompt, disabled you get the normal Make Group.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby watkins » Sun Sep 21, 2008 8:44 am

Dear Jim,

Excellent news! I do not know why this not a feature of native SU as one needs to name groups if one is to use Outliner effectively.

Remember, weekends are also for relaxing.

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby JClements » Sun Sep 21, 2008 3:48 pm

Hi Jim,

I've been using the newer edition for a while now. One thing I wish could be done is have the option to cut and paste a name from the drop-down list into the entry box and then modify the name. Or, perhaps, there could be another box in which the drop-down selection is automatically pasted so it could then be modified?

Finally, I believe you have to add a space to "clear" group's existing name, is that correct? Would a "remove name" in the drop-down list (at the top or bottom of it) be helpful?

John
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Name Group on Creation

Postby watkins » Sun Sep 21, 2008 4:56 pm

Dear John,

I think that Jim is revisiting the script. As I wrote before, I should like to see a group's name disappear automatically from the list when a group is deleted.

Regards,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Sun Sep 21, 2008 5:44 pm

Would anyone be terribly disappointed if it only worked for top-level Groups? Meaning, it wouldn't work if you created a group inside another Group?
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] Name Group on Creation

Postby watkins » Sun Sep 21, 2008 8:13 pm

Dear Jin,

That would be a big advance. I take it that you've hit a brick wall with the more sophisticated version.

Regards,
Bob
0

watkins 
 

Re: [Plugin] Name Group on Creation

Postby Jim » Mon Sep 22, 2008 12:02 am

watkins wrote:Dear Jin,

That would be a big advance. I take it that you've hit a brick wall with the more sophisticated version.

Regards,
Bob


I'm just being lazy.
0
Hi

Jim 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: AntBM, Debora Macedo, Google Bot, ljus, ngoctung0211 and 13 guests

Visit our sponsors: