[Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby IAGDint » Mon Dec 14, 2009 5:57 pm

great. thanks.
0

IAGDint 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby Edson » Mon Dec 14, 2009 6:12 pm

thomthom wrote:just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.

this is exactly what happens with me. as you orbit they scatter all over the place.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby thomthom » Mon Dec 14, 2009 6:24 pm

Edson wrote:
thomthom wrote:just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.

this is exactly what happens with me. as you orbit they scatter all over the place.

Chris has found this to be a bug in SU. He'd working on a workaround.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby Chris Fullmer » Mon Dec 14, 2009 6:39 pm

Yes, this was an interesting bug to track down. It includes a few steps to get around it, but I have it working. I just have not been able to find time to work it into this script yet. And when I release it I'll owe a few big "thank you's" to a bunch of helpful people out there.

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby thomthom » Mon Dec 21, 2009 1:54 pm

Chrisssss! I used your plugin on a forest of faceme trees - quickly found myself in a mad frenzy of trees dancing ghostly around. :? :shock:

Update? pretty pleeeease! :D
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby TIG » Mon Dec 21, 2009 2:00 pm

Chris
My idea of making its faceme false doing the rotation then resetting its faceme back again should be easy to include ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby thomthom » Mon Dec 21, 2009 2:06 pm

TIG wrote:Chris
My idea of making its faceme false doing the rotation then resetting its faceme back again should be easy to include ?


I just tried to use the Console to turn off then on:

sel[0].definition.behavior.always_face_camera = false
*Scale and Rotate Multiple*
sel[0].definition.behavior.always_face_camera = true

But still got the same problem. :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby Chris Fullmer » Mon Dec 21, 2009 6:14 pm

Hi Tig and Thom. Sorry I still haven't updated it. I've got the code all worked out, just not put into place. The issue is 2 fold - 2 different bugs at play. TIG your trick helped the part that faceme's components bounding boxes ( bounds.center ) no longer return the center of the component. The return center of entire range of motion. Which is not helpful. So I used your tip to make the faceme into a regular component, then grad the centerpoint and then I have the point to scale about. So it helps find the scale about point which is otherwise impossible since v7.1.

The dancing and jumping is another bug. You can no longer use ANY of the uniform scaling transformations on faceme components. It sort of cheats, and just adjusts the 16th matrix element. So the 16th should always be 1, but if you use (which I did) a uniform scaling method, it will change that 16th element to act as an overall scaling factor, which freaks out faceme's in 7.1.

So if you want fix it Thom, you would need to change the faceme scaling method. And I don't have the code in front of me, but it should scale by something like this:

sf = (the scale factor, as a float)
t = Geom::Transformation.new(sf,0,0,0,0,sf,0,0,0,0,sf,0,0,0,0,1)

That should scale a component uniformly by aplying the scale over the entire matrix, and not just adjust the 16th element.

Or I'll try to fix this later today (but it might be well after midnight in your neck of the woods Thom).

Chris

PS - I know very little about transformation matrices. So I apologise if I used incorrect terms or theories :)
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED March 22, 09)

Postby thomthom » Mon Dec 21, 2009 6:28 pm

No worries. I'm home now - and only have one day left before I take Christmas holiday.

Though, in my tests for uniform scaling of a faceme component 2x, the 16th turned into 0.5 and 13-15 also halved their values.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Chris Fullmer » Tue Dec 22, 2009 11:10 pm

Woohoo! Thanks to lots of persistence by others asking me nicely to get this one fixed, and thanks to finding the problems by Thom and Edson, and some great solutions by TIG, Jeff99, and others - I think I can finally say that this script is updated and working with SU 7.1!

Well, hopefully. Please test it when you get a chance. I tried every combination of faceme and regular component scaling I could think of.

v2.5 - SU 7.1 compatibility fix
  • Fixed scaling so that Face Me components don't freak out like they have been doing since SU 7.1 was introduced. Big Thanks to Edson and Thom for helping figure out what was breaking.
  • Cleaned up some code - a big chunk thanks to a tip from TIG!

So if you have this script installed already, go back to the first post in this thread, and re-download. Then overwrite the existing file in your plugins folder. Thanks, and I hope this works now!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby plot-paris » Wed Dec 23, 2009 9:20 am

brilliant! another Christmas Present! thanks a lot, Chris :ecstatic:
0
User avatar
plot-paris 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby nektares » Sun Dec 27, 2009 7:47 pm

Wow thanks man, you are very creative with your scripts, they are very useful and easy to use. Thanks!
0

nektares 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby thomthom » Mon Jan 04, 2010 10:55 am

Ah! Finally I can adjust the size of my forest without it flying away! :D

oh - one last request? Make it remember the values used last?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Edson » Mon Jan 04, 2010 1:47 pm

chris,

a big THANKS for fixing this bug! this plugin is used by me so much that it feels like recovering from a broken leg. i just tested it and everything seems to be back to normal. i'll let you know in case there is any odd behaviour as i use it more.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby plot-paris » Thu Jan 07, 2010 2:56 pm

thomthom wrote:one last request? Make it remember the values used last?

:thumb:
0
User avatar
plot-paris 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby J40 » Sun Jun 13, 2010 11:45 pm

Great plugin! saved me so much tree rotation. Thanks Chris!

plot-paris wrote:
thomthom wrote:one last request? Make it remember the values used last?

:thumb:

:thumb:
0

J40 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Crevard » Wed Aug 25, 2010 6:40 pm

thank youuuuuuuuuuuuuu !!!!
0

Crevard 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby bupaje » Sat Apr 02, 2011 5:57 pm

Hey Chris - great plugin. I was thinking it would be useful to add space between components before rotate.

For example on this stone wall



your tool did a great job of jumbling the stones but turn more than a little and they intersect their neighbor. In this case it would be useful to add a 'gap.'

I'm sure there is probably another plugin that does just this, and this test project is easy enough to move by hand, but figured I'd suggest it anyway.
0

bupaje 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Lersince1991 » Tue Apr 19, 2011 12:44 am

Amazing thanks a lot! Brilliant plug in, just made the landscape look so much better with random trees :D
0

Lersince1991 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Chris Fullmer » Tue Apr 19, 2011 2:15 am

Cool, glad it helped!

@Bupaje - not sure I'll be incorporating that into the plugin soon. This really is only made to modify components in place. It would be hard to figure out how to "add spacing" since spacing in that sense is a linear movement.

However, I also think you could do what you wanted with the tool in its current state. Select the blocks and do a uniform scale only on the x axis. That will effectively add a space between the blocks. Then do it again and add some random rotation. See if that is about the same effect,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby bupaje » Tue Apr 19, 2011 2:52 pm

Thanks Chris. will give it a try when I get home tonight.

EDIT: tried this during my lunch break and works. Scaled the bricks, then hiit reset scale and that left the spacing. Thanks.
0
Last edited by bupaje on Tue Apr 19, 2011 8:00 pm, edited 1 time in total.

bupaje 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby ishboo » Tue Apr 19, 2011 6:50 pm

Excellent tool, I can see a ton of uses for it. Great idea!
0
SketchUp plugin marketplace: http://extendsketchup.com/

ishboo 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby lapx » Wed Jun 08, 2011 8:36 pm

Chris,

Thank you so much for an excellent program. I have trees as images to be exported as proxy's or instances for Kerkythea. Is there a way to random rotate images? Perjaps not if they are faceme objects which they are. Would like to know how others deal with this delima.

Lapx
0

lapx 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Chris Fullmer » Thu Jun 09, 2011 5:58 am

If they are face-me's then they will always face the camera in SU. I don't know how kerkythea handles proxy's, does it work with face-me billboards? I think other renders just end up exporting the geometry in the location it is when the export buttin is pressed. So the trees would all be facing the same direction. I'm not really sure that rotating them with this plugin will help fix any of these concerns though.
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby coulteri » Sat Oct 08, 2011 10:04 am

Hello,
this is great plugin I am using every day. I think it would be much more powerfull if there was a possibility to scale randomly by all axis. One would be able to randomize e.g. stones or 3D vegetation.

Is this possible to implement?

Thanks.


coulteri
0
User avatar
coulteri 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Earroyo » Wed Nov 16, 2011 11:36 pm

Hello everyone,
CAN SOMEONE HELP ME LOAD THESE PLUG-INS.
THERE ARE SEVERAL with the .rb extension that my Pc does not recognize.
0

Earroyo 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby TIG » Thu Nov 17, 2011 1:05 pm

earroyo wrote:Hello everyone,
CAN SOMEONE HELP ME LOAD THESE PLUG-INS.
THERE ARE SEVERAL with the .rb extension that my Pc does not recognize.
Sounds like you don't understand how Plugins work at all ?
:roll:
A .rb file is a text-file - often called a 'script'.
If you put it into your Plugins folder and restart Sketchup it will auto-load the tool for you.
The only time you need to 'open' a .rb file is to actually 'read' its contents - and if you are so inexperienced you don't really need to do that [just yet]! However, if you use Notepad.exe to open a .rb file you will find it's readable text [always use a plain-text editor - never use a wordprocessor as that will mess up the contents big time!]...

In the case of this specific tool... it's quite a simple one - so the .rb file just goes into the Plugins folder and you restart Sketchup; and the Usage: says
Select the components and/or groups to be scaled and/or rotated. Run the plugin at Plugins>Chris Fullmer Tools>Scale Multiple> . There are two plugins found here. One will scale everything equally. The other will scale them randomly based on minimum and maximum provided values. NOTE: The scale factors are not percentages. They are factors. Which means if you want to scale something to be twice as large, you enter 2. If you want something to be one half the size, enter .5 . Entering 50 will not a result that is 50% the original, but will give a result that is 50 times larger than the original.


There's only one .rb file for this tool called 'clf_scale_rotate_multiple.rb' - you download it and put it into the 'Plugins' folder and restart Sketchup to activate the tool...
So what "other" .rb are you referring to in your post ? :?

More generally... Read the installation instructions that come with each tool - on their download page.
Some are in zipped sets and need extracting / installing into the Plugins folder, keeping the files in any subfolders etc so they work properly.
Also ensure you know how the tool is used - e.g. Some are Extensions that need activating from Window > Preferences, some appear as menu items - typically under the 'Plugins' menu... BUT some can appear elsewhere [like 'Tools' or 'Draw'], some are context-menu specific [e.g. appearing only if you select a particular type of object], some have a toolbar activated from View > Toolbars, a few are run by typing a command into the Window > Ruby Console... :geek:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Earroyo » Thu Nov 17, 2011 4:37 pm

Thank you all for your response. I am new to plug-ins and one thing i did not tdo was restart the program. I will do that this morning. Thanx for your input. Looking forward to a new crew.
0

Earroyo 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby Jeggebis » Tue Nov 22, 2011 9:38 pm

Hi Chris and the rest of ya

I have been trying out this plugin + your component stringer since i am trying to recreate my little 1:50 model in sketchup. But i cant seem to find a smart way to do it, or maybe i am missing something.

My idea was to draw a path using something like bezier curves or the free hand tool and then use different components in randomized pairs of 2 "rafts" in 1 component. These should then stack on top of each other with a random rotation. Simulating the way i glued all them sticks together in my model:
Skærmbillede 2011-11-22 kl. 21.28.08.png
Skærmbillede 2011-11-22 kl. 21.28.32.png


I have tried dividing the "path" for the stringer plugin in to 100mm lines connected in to one long line. That way the wood would seem to rest upon each other - as in stacks. It works great with the axes placed in the middle of the component, but I couldn't figure out how to do this on something like the bezier curve, as the components would then rotate along a wrong axis. Havn't been able to work out how to place the Axes tool to avoid this.
Skærmbillede 2011-11-22 kl. 21.32.07.png


Also, when i just use the same component i wont get the more "spacious" look my model has + sometimes the wood would seem to through each other.
Skærmbillede 2011-11-22 kl. 21.33.00.png


How would you guys approach this?

Thanks for your time and wonderful plugins!
0

Jeggebis 
 

Re: [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

Postby caronte01 » Tue Dec 20, 2011 5:52 pm

Thank you Chris for this useful plugin!
0

caronte01 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Ardhoek, PhilipBlignaut and 28 guests

Visit our sponsors: