[Plugin] Rename by Layer v1.0.3
-
@jql said:
however, I would somehow expect that components and groups on layer 0 that were nested inside a component on layer X would be renamed after layer X.
Here is little test code that will take the subgroups that are on layer0 and name them with the parent layer name.
model = Sketchup.active_model ents = model.active_entities groups = ents.grep(Sketchup;;Group) groups.each do |group| gg = group.entities.grep(Sketchup;;Group) gg.each do |g| g.name = group.layer.name end end
Will see how this feature can be integrated in future update to existing code. Since other requests are already done maybe will go ahead and release them first and then add what we just mentioned. Thanks for suggestions!
-
Renderiza,
I wouldn't know where to insert the code you have there... Maybe I could get there by myself, but I prefer to use what you have right now as it is, and wait for further developments on the plugin.
I'm curious though: are you considering the idea of making a new plugin that would be based on groups instead of layers?
Thanks and best regards,
JQL
-
[pre:1trtoyqg]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.1
Date:: 9/13/2013
Cost:: Free[/pre:1trtoyqg]
Rename by Layer v1.0.1 is now available for download. -
@jql said:
I wouldn't know where to insert the code you have there...
To test code I recommend using [as] Ruby Code Editor - http://extensions.sketchup.com/en/content/ruby-code-editor ... but there are other good ones as well.
@jql said:
I'm curious though: are you considering the idea of making a new plugin that would be based on groups instead of layers?
I am having difficulties in picturing exactly how will it work...can you give me an example to see if I understand better?
-
-
Are you real Renderiza?
Are you peeking on my shoulder and coding while I'm writing? Are you doing it right now? Yikes!
Let me test and I will answer!
Thanks,
JQL
-
Ghosteriza you uncanny coder,
I already tested it and you nailed it! The option to write a name is awesome!
The only option the plugin lacks right now could be "renaming selection only". If you manage to pull it off too, then it covers everything I need for now and in the predictable future... in terms of renaming!
There is still some room for improvement... If you are the prefectionist it seems you are, you could some how automate/facilitate the process described in the images that follow.
The idea for plugin that I was talking about before was to rename groups/components, using the name of the group/components where they are nested in. When you are working inside a group called "columns" every group component inside it would be renamed to "columns - 00n" whatever the layer they would be on.
In other words your dialog would have a logo that would say "My name is: rename by GROUP". For me it's redundant now, but I can see some uses though. Maybe create even one more option would solve it.
This would pose a new problem though... your plugin would be much more than layer based naming, and you could also want to change the name of the plugin. You have a keen sense for names/renames so I bet you can figure out something funny! An image that crosses my mind would be Swiss Army Kname...
Thanks and thanks, and get the hell out of my shoulder... It spooks me!
JQL
-
What a powerful concept! Could make me rethink the way I manage my Sketchup models...
Could the plugin be adapted to also have a filter for the active layer?
Thank you very much!
-
@jql said:
The only option the plugin lacks right now could be "renaming selection only".
Will try to add this feature for next update.
@jql said:
In other words your dialog would have a logo that would say "My name is: rename by GROUP".
Good idea indeed will see if I can work on it.
@jql said:
An image that crosses my mind would be Swiss Army Kname...
Love it!
@jql said:
However if one could somehow choose to rename/clear only instances names or definition names the job would be handled much easily.
Will see how that can be a feature for next update.
Note: By the way thanks for making me laugh!
-
[pre:m1n0fdbx]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.2
Date:: 9/14/2013
Cost:: Free[/pre:m1n0fdbx]
Rename by Layer v1.0.2 is now available for download.
%(#909090)[Thanks to the people that contributed ideas to make the plugin better! ] -
Very good updates. It's almost unbelievable that something like this is not already done before.
-
great idea... really great for organizing models.
-
the window could be 80% smaller
-
You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?
In the future maybe collapsible tabs may help but not sure.
Thanks
-
It is getting really great - BIG THANKS!!
Can We have an option to append the layer name or/and numbers to the existing component's/group's names? -
@dedmin said:
It is getting really great - BIG THANKS!!
Can We have an option to append the layer name or/and numbers to the existing component's/group's names?That is good suggestion so lets see if it can be added to next update.
-
Amazing! Really Really good. A great companion to this is "Layers Panel" - photoshop layers window with nested layers. still in Beta and some wrinkles to iron out but, Like this plugin, very impressive!!
All i could say on a negative - could we have a smaller window? it takes up alot of space and we know the name of it, if we lost the logo (sorry), at least i'd get back half my screen.
cheers for the great plugin
c -
@renderiza said:
You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?
In the future maybe collapsible tabs may help but not sure.
Thanks
I never knew this!!! Duh!
c
-
@cmeed said:
Amazing! Really Really good. A great companion to this is "Layers Panel" - photoshop layers window with nested layers. still in Beta and some wrinkles to iron out but, Like this plugin, very impressive!!
I am a big fan of "Layers Panel" and think everyone should have it...Can't recommend it enough! http://sketchucation.com/forums/viewtopic.php?p=488833#p488833
@cmeed said:
All i could say on a negative - could we have a smaller window? it takes up alot of space and we know the name of it, if we lost the logo (sorry), at least i'd get back half my screen.
Next update should have smaller windows and I agree that the logo is taking too much space.
Thanks for feedback...cheers!
-
[pre:2yc1rtr7]Authors:: | Bagatelo| Renderiza |
Plugin Name:: Rename by Layer
Version:: 1.0.3
Date:: 9/17/2013
Cost:: Free[/pre:2yc1rtr7]
Rename by Layer v1.0.3 is now available for download.
%(#909090)[What is new:- The web-dialog is smaller
- Keep existing name - This will include the existing name to the newly created one. For example:
Layer = bed
Existing name = door
Add Number = True / Prefix
Result = 001 - bed - door]
Again thanks for feedback!
Note: Need to recheck "Keep existing name" feature since its not working...will try to fix it as soon.
Advertisement