If you select multiple components, Flip Along works based on the model axis orientation. If it’s a single component selected, Flip Along is based on the component’s axis orientation. It’s supposed to work that way.
I don’t know of a plugin that would flip each component of a large selection based on its own axes but I imagine it could be written.
Could you make them unique from the ones that aren’t getting flipped? If so, what you want could be done without a plugin.
i get that its supposed to work that way. My concern was that there was a simple key modifier (like ctrl or something) that would make it work on individual components when multiples are selected and that i didnt know about it.
I do a similar thing with rotation, with a little script like this…
def rotate(axis, angle)
sel = Sketchup.active_model.selection
sel.each { |entity|
o = entity.transformation.origin
tr = Geom::Transformation.rotation(o, axis, angle.degrees)
entity.transform!(tr)
}
end
but i cant get it to work with translating the X by -1.
Could you maybe rewrite your script to loop through the selection’s entities and scale them each by -1 along local red (or whatever local axis you pick)?
Just looking at that now. I’m exporting the component name, location and rotation of each object to a file for use elsewhere. Ideally i need the component name to be the same.
But i’m going to try what you suggested, then select all and use replace selected instance to replace the modified with the original - which should then be correctly oriented.
That’s a lot of work. Select the ones that need to be flipped and make them unique. They will all be instances of the new component. Open the Component for editing and select all of the geometry. Flip the selection…