by TIG » Thu Feb 02, 2012 4:53 pm
dereeei wrote:Bug or natural behavior?
-when I mirror a component that cuts opening, it mirrors fine, the mirrored cuts its opening too. But, if I mirror two (or more) instances of that component, at the same time, the instances won't cut opening. Neither the mirrored ones, nor the original instances.
Is it a bug, can be fixed, or is just how it works?
Not been reported before... If you select one cutting instance it's mirrored/copied without recourse to temporary grouping, so the cutting is retained. If you select more than the one cutting-instance then the selection is grouped copied/mirrored/exploded. So the original gluing instance is unglued from its face and then it and the exploded copy versions aren't told where to glue to... There are several 'reglue' tools available... I suggest my HolePunch tool which has a simple one - you select the now unglued instance[s] and select Reglue off the context-menu, the face[s] below the instance[s] [if any] are found and the instance[s] are glued onto it, thereby cutting holes in the face[s] too if they are 'cutting-components' - they don't need to be any special 'hole-punching' instances, it will work on any gluing instance - even ones that don't then 'cut' - however if they do 'cut' and you also want them to then 'punch' a hole through any inner face[s] then they can, once they are each glued to an initial face ! ...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by dereeei » Thu Feb 02, 2012 10:54 pm
Hmm, I can't see any "reglue" option in my context menu  where should it be? I also have Thomthom's Superglue... but it doesn't work for those particular components. I mirrored them one by one. Is it possible to make the plugin to mirror each element one by one, instead of grouping them prior mirroring? In this way, the "cut hole" property would still be present.
-
dereeei
-
- Posts: 564
- Joined: Tue Nov 16, 2010 1:48 pm
- Name: derei
by TIG » Thu Feb 02, 2012 11:10 pm
No, because you might mess up by including other geometry in the selection, AND how is the mirrored object to know the face it ought to be glued onto ? It's too complex... but simply selecting the mirrored / prior instances and re-gluing fixes the issue... This is the context-menu... IF you have an instance selected that could be 're-glued' the item is active... Your context-menu won't look exactly like my customized one... BUT the 'Hole Punching' part will be exactly the same ! [You do need to install my HolePunch tool  ]
Please, register (free) to access all the attachments on the forums. TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by dereeei » Fri Feb 03, 2012 1:50 pm
Ohh, sorry. I thought that Reglue is a SketchUp's default action. Thank you for clarifying.
-
dereeei
-
- Posts: 564
- Joined: Tue Nov 16, 2010 1:48 pm
- Name: derei
by TIG » Fri Feb 03, 2012 1:56 pm
dereeei wrote:Ohh, sorry. I thought that Reglue is a SketchUp's default action. Thank you for clarifying.
The 'UNglue' IS a context-menu option allowing you to detach a selected component-instance from its companion face [also available for a group or an image that's glued when made/added] - BUT the action 'REglue' needs a script... 
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Sun Feb 05, 2012 5:36 pm
Here's v3.7 viewtopic.php?p=276512#p276512Mirroring gluing component-instances will now glue them into any same context faces they might then be placed onto, and/or it re-glues mirrored/original gluing component-instances onto their previous faces as appropriate. [This resulting from some constructive nagging from dereeei  ]
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Mental » Sun Feb 12, 2012 11:45 pm
Hi. Forgive me for possibly a stupid question but which advantages does this plugin bring compared to good old scale x -1. Probably I'm missing something. Thanks
-
Mental
-
- Posts: 15
- Joined: Thu Jan 28, 2010 3:16 am
- Name: Mental
by TIG » Mon Feb 13, 2012 12:36 am
The native 'flip' tools in the context-menu and/or Scale -1 only work 'axially' - RGB / XYZ. They also affect the original objects. The Mirror Tool, however, mirrors just the selected objects [temporarily grouping them to avoid geometry clashes], about any picked point or line from two picked points, or [more usually] a 'plane' you define by any three picked points - therefore the mirroring need not be 'axial' / orthogonal [but of course it can be if you so wish, since picking the points has all of the usual inferences/snaps/locking etc of native tools]. The other advantage of the Mirror Tool is that it initially mirrors a temporarily grouped copy of the objects and leaves the original objects in place, a closing dialog asks if you want to erase the originals - when Yes removes them and No leaves them in place, both options leaving the mirrored copy where it was required, with the temporary grouping exploded. So as well as doing a simple Mirror it can also Copy the objects at the same time if desired - whereas using native tools this would be a much more intensive operation as you'd need to copy objects off to the side, perhaps grouping objects to avoid geometry clashes, scale -1 [ignoring the steps needed for resetting axes etc if the mirroring-plane were non-orthogonal] and moving back the mirrored objects back into place and exploding any temporary groups... 
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Mental » Mon Feb 13, 2012 10:55 pm
TIG wrote:The native 'flip' tools in the context-menu and/or Scale -1 only work 'axially' - RGB / XYZ. They also affect the original objects. The Mirror Tool, however, mirrors just the selected objects [temporarily grouping them to avoid geometry clashes], about any picked point or line from two picked points, or [more usually] a 'plane' you define by any three picked points - therefore the mirroring need not be 'axial' / orthogonal [but of course it can be if you so wish, since picking the points has all of the usual inferences/snaps/locking etc of native tools]. The other advantage of the Mirror Tool is that it initially mirrors a temporarily grouped copy of the objects and leaves the original objects in place, a closing dialog asks if you want to erase the originals - when Yes removes them and No leaves them in place, both options leaving the mirrored copy where it was required, with the temporary grouping exploded. So as well as doing a simple Mirror it can also Copy the objects at the same time if desired - whereas using native tools this would be a much more intensive operation as you'd need to copy objects off to the side, perhaps grouping objects to avoid geometry clashes, scale -1 [ignoring the steps needed for resetting axes etc if the mirroring-plane were non-orthogonal] and moving back the mirrored objects back into place and exploding any temporary groups... 
Thanks for detailed reply. My area of Sketchup Application is architectural concepts so in my case I work in various axis orientations anyway (and reset if required to go back to original one). So having to create a custom axis for mirroring is never a big deal. But I'll definitely give your plugin a go if I find that my scale -1 tool doesn't give me what I'm after. Thanks!
-
Mental
-
- Posts: 15
- Joined: Thu Jan 28, 2010 3:16 am
- Name: Mental
by JGA » Fri Feb 24, 2012 11:02 pm
Thanks for keeping on the development of this tool; it's the first one I loaded years ago that made SKUP more familiar to an AutoCAD user.
Regards, JGA
-
JGA
-
- Posts: 117
- Joined: Wed Nov 14, 2007 4:57 pm
- Location: Scotland
- Name: JGA
by bmike » Thu Aug 09, 2012 8:10 pm
-

bmike
-
- Posts: 487
- Joined: Mon Dec 15, 2008 6:42 pm
- Location: vermont
-
by bmike » Thu Aug 09, 2012 8:16 pm
Mental wrote:Hi. Forgive me for possibly a stupid question but which advantages does this plugin bring compared to good old scale x -1. Probably I'm missing something. Thanks
Much quicker, using the plugin, especially when dealing with off axis objects - compound roof rafters, sloping parts of stairs, etc. etc. No need to create an extra plane or line to include in the -1 Scale Operation to get the axis right... And it auto copies things for you, about any axis you choose, to dropping an identical assembly or rafter or whatever, exactly where you want it, is much easier.
-

bmike
-
- Posts: 487
- Joined: Mon Dec 15, 2008 6:42 pm
- Location: vermont
-
by TIG » Thu Aug 09, 2012 11:34 pm
Here's v3.8 viewtopic.php?p=276512#p276512It now honors any selected 'locked' components or groups, and does not mirror them. I've also included some minor 'behind the scenes' code tweaks...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by bmike » Fri Aug 10, 2012 12:49 am
TIG wrote:Here's v3.8 viewtopic.php?p=276512#p276512It now honors any selected 'locked' components or groups, and does not mirror them. I've also included some minor 'behind the scenes' code tweaks...
Thanks TIG! Sorry to call it out, but this is how I noticed the lock glitch!
-

bmike
-
- Posts: 487
- Joined: Mon Dec 15, 2008 6:42 pm
- Location: vermont
-
by Pilou » Fri Aug 17, 2012 3:24 pm
Seems there is a glitch ? An arc is drawn up left corner then "Mirrored" Making a group don't resolve the problem when explode mirrored group , arc is exploded! when explode original group , arc is not exploded! Mirror_arc.jpg
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Thu Jan 31, 2013 9:51 am, edited 1 time in total.
-

Pilou
- Top SketchUcator
-
- Posts: 10026
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by TIG » Fri Aug 17, 2012 3:55 pm
This something to do with Sketchup itself. If the arc/curve is grouped/mirrored with other connected-geometry [that borders a face] then the arc gets exploded ! If you replicate the arc+other_geometry_around_face > group, copy, scale -1, explode... you will find that native Sketchup breaks the arcs too...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Jim Smith » Fri Aug 17, 2012 4:06 pm
TIG, thank you for the update
"Out of clutter find simplicity, from discord find harmony, In the middle of difficulty lies opportunity" Albert Einstein
-

Jim Smith
- Premium Member

-
- Posts: 418
- Joined: Mon Nov 12, 2007 2:25 pm
- Location: Crown Point, Indiana, USA , home and office)
- Name: Jim Smith
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Pilou » Fri Aug 17, 2012 4:47 pm
Sketchup breaks the arcs too...
It's a pity! 
-

Pilou
- Top SketchUcator
-
- Posts: 10026
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Pilou » Fri Aug 17, 2012 5:56 pm
So solution is to group the rectangle first! With that all the mirrors of the arcs will keep the arcs not explosed! 
-

Pilou
- Top SketchUcator
-
- Posts: 10026
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by TIG » Fri Aug 17, 2012 8:40 pm
Yes - it's just the same in Sketchup when it's done manually...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by urgen » Mon Aug 20, 2012 6:35 pm
Pilou wrote:Sketchup breaks the arcs too...
It's a pity! 
....Pilow,don"worry.  make mirror and use plugin nilinies2arc.rb ( viewtopic.php?t=21155)...properties of the arc( in Entity Info) must have been restored 
--pupil forever...------
-

urgen
-
- Posts: 623
- Joined: Mon Nov 12, 2007 10:06 pm
by Pilou » Mon Aug 20, 2012 9:30 pm
Don't know this little last one 
-

Pilou
- Top SketchUcator
-
- Posts: 10026
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Jeff Hammond » Thu Jan 31, 2013 9:15 am
rainy day ideas..
mirror would be a good one for doing what you did to split_to_plane.. where <enter> is Z instead of the 3rd click.. lathe would be another candidate (2nd click when defining the axis)..
dotdotdot
-

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
by Pilou » Thu Jan 31, 2013 9:54 am
@Jeff Sorry don't understand first proposition ...and second proposition!  mirror would be a good one
: it's that the problem that don't work with 2 or 3 clicks even I split horizontally the rectangle lathe
??  A Copy Rotate works (don't explode the arc) but it's not the mirror function and i must draw some helper lines  copyrot.jpg
Please, register (free) to access all the attachments on the forums.
Last edited by Pilou on Thu Jan 31, 2013 10:21 am, edited 5 times in total.
-

Pilou
- Top SketchUcator
-
- Posts: 10026
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by rv1974 » Thu Jan 31, 2013 10:02 am
I use to render my projects in 3DS Max and my pipeline is to turn all entourage components to the cubes proxies (by Fredo's Ghost plug in), open simplified entourage skp file in Max and then replace them by another Max script with hi-poly vray proxies. What is interesting is that the mirrored (at some stage) SU components get wrong Z value in Max. I just wandering where is the wicked link: SU itself, mirror.rb, ghostcomponent.rb, exporters\importers? 
-
rv1974
-
- Posts: 512
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Thu Jan 31, 2013 10:50 am
rv1974 wrote:I use to render my projects in 3DS Max and my pipeline is to turn all entourage components to the cubes proxies (by Fredo's Ghost plug in), open simplified entourage skp file in Max and then replace them by another Max script with hi-poly vray proxies. What is interesting is that the mirrored (at some stage) SU components get wrong Z value in Max. I just wandering where is the wicked link: SU itself, mirror.rb, ghostcomponent.rb, exporters\importers? 
When you 'mirror' or use 'scale -1' [which is all that mirror really does] the component-instance is flipped [aka 'transformed']; however, inside its definition the geometry still has the original orientation. When exporting such objects into another format that exporter's code must identify the original geometry and its container's 'transformation', then typically it applies the transformation so it now looks right - some formats have limited 'transformation' abilities, so make everything changed so it looks right perhaps messing with the object's innards while doing this. This then breaks the direct link to the original's transformation, so maybe 'swapping' a component won't adopt the original's transformation... When you 'mirror' something it's typically about a bounding-box center-point - so is this 'Z difference' you see after swapping related to say half of the object's bounding-box 'height' [actually Z is its 'depth'!] - it might be that the Max script is incorrectly interpreting that point when applying its own transformation - would a fix be for the script to adjust the Z-value as it swaps ? Are you sure that the paired simple and complex proxies have the exact same bounding-box and insertion point etc - if they don't then the swapping of them can easily get muddled... If you swap and swap back do things reset properly or get worsened ? This could indicate such a state...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by rv1974 » Thu Jan 31, 2013 12:18 pm
may be the attached files would help.
Please, register (free) to access all the attachments on the forums.
-
rv1974
-
- Posts: 512
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Thu Jan 31, 2013 12:36 pm
So the Max 'swapper' script is misinterpreting the transformation of the imported objects ? If you swap and re-swap back as you were, are you back or has further wrong-transformation happened ? Seems to me the issue is with the Max swapper script itself, which is clearly flipping the 'mirrored' versions of swapped pyramids about their centers ?? If you used a non-symmetrical object as the two simple/complex we can better see the extent of the 'flipping' which might be a 'rotation' or a real 'scale -1' ??? try a pyramid placeholder with an offset apex so we can clearly see its transformation, and a more complex version for the 'swap'. The Z-offset issue should be solved if the script correctly flips these mirrored versions... I know little about Max scripts. Have you tried looking for solutions over on their forums...
TIG
-

TIG
- Global Moderator
-
- Posts: 13923
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by rv1974 » Thu Jan 31, 2013 2:04 pm
Wow you helped (even knowing little about max script) me to solve the the issue that was a real pain in the @ss for a very long period. I tended to blame Sketchup but it appears to be a Soulburn replacer problem. For all who suffered the same issue, Here is a good one (that respects SU components): https://www.scriptspot.com/3ds-max/scripts/replacer-0 
-
rv1974
-
- Posts: 512
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|