[REQ]Reset scale multiple components
-
If I select only one component, I can reset scale with right click, If I select two components, this option disappear...
Maybe is it possible to do that with code? -
@baldaman said:
If I select only one component, I can reset scale with right click, If I select two components, this option disappear...
Maybe is it possible to do that with code?Check out my Reset Scale plugin on my blog.
-
Thank you sdmitch, I downloaded it and installed it but it appears that if the components have been modified by CHris fullmer's plugin "Scale and rotate multiple" it doesn't work.
It works well if components have been modified with Sketchup's native scale tool...
???
If I use scale_reinit.rb
http://forums.sketchucation.com/viewtopic.php?t=11552
it works even with components modified with CHris fullmer's plugin "Scale and rotate multiple"
but of course the components come back to their original orientation...
I do not care about orientations issues in today's case, but I just wanted to inform you, thank you again! -
UPDATE: with scale_reinit.rb the components go back to their original sclae and orientation but they are moved away from their original poisition...
even if the component's axes are right in the middle of the object -
I think that is because scale_reinit assumes the default lower left component origin.
-
Ah OK, do you think that it is possible to change the code to assume the bonding box center origin?
-
I don't see why not but maybe you had better ask Chris about that.
-
@baldaman said:
Ah OK, do you think that it is possible to change the code to assume the bonding box center origin?
With apologies to Chris, you might try changing this line
Sketchup.active_model.active_entities.add_instance(ent.definition,ent.bounds.corner(0))
to this
Sketchup.active_model.active_entities.add_instance(ent.definition,ent.bounds.center)
-
Thank you very much!
It works now!
Advertisement