Ah yes that's what i thought it should do, but I told myself otherwise by mishearing something. I Learn't from youtube, I guess once you grasp ruby, you'd have a more in-depth insight into SU.
Posts made by fullyfledgeded
-
RE: Globally select all groups in model?
-
RE: Globally select all groups in model?
yes that makes logical sense. Someone once told me that comps' only take up the size of the definition & all instances don't add to count towards memory, where as group instances do.
cheers
-
RE: Globally select all groups in model?
I see. Another problem is that, it does not seem to be reducing my file size much at all. If you run your script on the same file http://sketchucation.com/forums/download/file.php?id=106847 you will see size stays the same.
-
RE: Globally select all groups in model?
any thing to worry about with regards to how it will affect my model?
-
RE: Globally select all groups in model?
http://sketchucation.com/forums/download/file.php?id=106847
run your sript > edit - undo = splat
-
RE: Globally select all groups in model?
cheers thomthom, i confused it with http://sketchucation.com/forums/viewtopic.php?t=29462
worked perfectly, my only concern is that I undid it, to check the stats via model info & it bugsplatted. So I have saved a new copy to be safe.
I put enough in your cookie jar for two beers in the uk, so you can atleast afford one in Norway.. damm expensive
-
RE: Globally select all groups in model?
TIG, your code works perfectly, provided groups that are duplicate copies to be found, are in the active selection set. I have attachedTIG code test.skp in case this doesn't make sense.
In the outliner, Please select the contents of "test 1: in active selection set" & run your code. Then repeat for "test 2: not in active selection set".
I need the script to find them all for me, as there are hundreds nested deep within the outliner, which i hope explains why I said "globally locate".
thomthom's code achieves this, but makes each duplicate group copy a unique component , so a synergy of your 2 codes would be perfect, but this is probably asking a lot.
thomthom, i installed your mashup with your quick install plugin, but i cant find it? I've searched "g2c" in the launchup plugin too.
Cheers
-
RE: Globally select all groups in model?
yes, the identical doors and windows etc are actually copies of each other. Entity info does saythat there are copies of that group.
Your selection toys, allows the doors and windows etc to be converted to comps' one by one, but not globally all at the same time(what i need) . Oh & its kinda imperative that the code can globally locate them all too, so i don't have to do that manually.
cheers
-
RE: Globally select all groups in model?
There are multiple geometrically identical:
- doors
- windows,
- walls
etc, going up to about 200 different architectural objects.
Way too many to convert manually with selection toys, as follows:
context click > group copies > covert to components
As it only seems to convert one at a time.
-
RE: Globally select all groups in model?
It does, but it gives each group, it's own unique component definition name regardless of whether or not it is a group or group copy. I need the group copies to inherit the same component definition. Can the code be tweaked?
-
RE: Globally select all groups in model?
Yes thomthom, that's right. I have had some success with http://sketchucation.com/forums/viewtopic.php?t=30143 even on nested comps'!!!:
but it doesn't work as well on the subject of this post, partly because loads of the comps' are grouped.
Is there any way of selecting every set of group copies globally,nested or not? It takes ages manually, using the outliner & anyway, context clicking them > group copies > covert to components, only seems to do one set at a time? Plus, the selection, can only be in one nested group/comp' at a time.
I would even pay good money for a script that does this, as if i can't find an alternative, i will have start the slow process one by one.
cheers
-
RE: Globally select all groups in model?
Sorry, maybe i didn't make myself clear. I have 1500 groups, comprised of many different group copies(different objects). E.g there are multiple copies of doors, windows, ceilings etc & replacing these with one component definition, would replace the multitude of different objects with one.
-
RE: Globally select all groups in model?
yeah, they don't stay selected & what one click would it be? make component. That wouldn't decrease the file size
-
RE: Globally select all groups in model?
haha, yeah thanks Box. Unfortunately I have about 1500 groups, so going through the outliner or using the comp dropper would take till Christmas! TT's script converts all my groups to comps, but makes each group copy unique component definitions, thus increasing file size. which is the opposite of what i'm trying to achieve. Still progress though
-
RE: Globally select all groups in model?
Box, any idea how to tweak that code to achieve aim?
-
RE: Globally select all groups in model?
Hi thomthom, it worked thanks. However unfortunately it did not assign the individual group copies with the same component definition, but instead gave each copy it's own unique definition.
multiple copies of one definition, is what i really need in order to make the model workable. Is there any way of tweaking it?
After I ran your "[Plugin] Component Comparison (0.2.0a) β 15 August 2010" which achieved my aim on nested components too, but on a smaller file as the large file is struggling with both scripts
cheers
-
Globally select all groups in model?
I am currently trying to tidy up a SU model from 5 years ago (when i didn't use components ), to make it workable for rendering.
Is there anyway to select all groups, including nested ones at once, throughout the whole model? Then I can use TT's plugin to convert them to components? Or some code i can paste into the ruby console?
I can select group copies one by one, but there are 1840 groups!
Thanks
-
RE: Default material replacing problem
Yeah cheers i will keep that in mind when i try & create a my own default style
-
RE: Default material replacing problem
Right OK, so i must inadvertently replaced my default back material, to the glowing material i did not want.
That green back facing sounds handy. It would be a good if there was somewhere where you could download other peoples templates, keyboard shortcuts etc. Recently I spent a while creating keyboard shortcuts & wasn't too bothered what key was assigned to action.
Thanks for your help
-
RE: Default material replacing problem
Hi Dave R, upon your advice i changed the style which solved the problem, so thanks, however, regrettably it would be now difficult to now post images.
when I go on faces in style dialogue box, I can change the colour of the back face, but i do not know how to change the SU's default material?
yes, It is on the back of the translucent face