SketchUcation Premium Membership

 

 

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

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

Postby MartinRinehart » Sat Aug 22, 2009 12:01 pm

Chris Fullmer wrote:I am learning how to use web dialogs


Chris, is it HTML, JavaScript or the linkage between these and Ruby (or all three)? I'm planning a frontal assault on the latter (rewrite Lininger but going much slower) which I could kick up to the front of the line. I've done HTML (http://www.easyHTMLtutorial.com) and am mulling on JS.

Martin
Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.
MartinRinehart
 
Posts: 762
Joined: Mon Jul 27, 2009 1:13 pm
Name: Martin Rinehart

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

Postby Chris Fullmer » Mon Aug 24, 2009 6:10 am

Hi Martin, I'm not even sure what it is that is holding me up. I don't know HTML at all. I don't JS at all. And I have no clue how they interact. So reading through JS tutorials leaves me confused because I don't understand what its doing tot he HTML. Reading through HTML tutorials seems to help the most currently. So I will gladly look over your HTML tutorial.

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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

Postby plot-paris » Thu Oct 08, 2009 12:42 pm

just a big THANK YOU!!! again, Chris.
you saved me about 15 minutes rotating and scaling a whole bunch of trees... :ecstatic:
User avatar
plot-paris
 
Posts: 1554
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby DIEGO-RODRIGUEZ » Fri Oct 09, 2009 12:15 am

hi Chris
I proposed an idea on the forum.
viewtopic.php?f=180&t=22569
If you have not seen her.
I think your plugins, could adapt well to the idea

Scale and Rotate Multiple

interested? is possible?

greetings
DIEGO-RODRIGUEZ
Banned
 
Posts: 272
Joined: Sat Jan 10, 2009 6:20 pm
Location: Argentina - Mar del plata
Name: diego

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

Postby majid » Sun Oct 25, 2009 3:24 pm

:berserk: recently I saw this. thank you for generousity
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

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

Postby Chris Fullmer » Sun Oct 25, 2009 6:52 pm

I just got a report that this might not be working right in 7.1!

So if you use it and it moves components all over th place, instead of just scaling them, please let me know. I need to look into it.

But otherwise I hope you find it useful :)

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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

Postby Chris Fullmer » Thu Dec 10, 2009 9:21 pm

Can any Mac users verify if this script is working on SU 7.1? It appears to working great on Vista, SU 7.1 but I still have a report or two of it not working.

Anyone have any example files where it is not working for them?

Thanks

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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

Postby thomthom » Thu Dec 10, 2009 9:39 pm

Chris Fullmer wrote:Can any Mac users verify if this script is working on SU 7.1? It appears to working great on Vista, SU 7.1 but I still have a report or two of it not working.

Anyone have any example files where it is not working for them?

Thanks

Chris

SU 7.1M1, OSX10.4
A´OK!
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby Chris Fullmer » Thu Dec 10, 2009 10:12 pm

Thanks Thom!

I should mention what is not working for some, just in case you just verified it loaded.

I have heard 2 or 3 reports of this plugin thoring components all over the place, instead of using their axes. It seems that for some, this plugin does not scale and rotate according to the specified axes.

So if anyone still feels like testing further, awesome. Otherwise, I'll write a debugging version and give that to anyone who wants to test it out, see what is broken on their system.

Thanks again,

Chris
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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

Postby thomthom » Thu Dec 10, 2009 10:18 pm

I just tried the random rotate and scale. That worked as expected. But if you have specific procedures that's reported to fail, then I can try that.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby Pixero » Thu Dec 10, 2009 10:53 pm

Yeah, I've seen that two times recently when using axis.
When I choose component base everything was o.k. though. :?:
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1290
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby Chris Fullmer » Thu Dec 10, 2009 11:24 pm

Has it been on all components? or is just on face-me perhaps?
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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

Postby thomthom » Thu Dec 10, 2009 11:33 pm

I tried with groups, components and face-me components. Can't reproduce.

...maybe it has to do with nesting..?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby thomthom » Thu Dec 10, 2009 11:37 pm

just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

Postby thomthom » Thu Dec 10, 2009 11:42 pm

that also occurs on PC.
See attached file for a sample of dancing Sang! :lol:
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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

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

great. thanks.
IAGDint
 
Posts: 10
Joined: Sat Jun 20, 2009 9:05 pm
Name: Jensen

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.
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2658
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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 ?
TIG
User avatar
TIG
Global Moderator
 
Posts: 14002
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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. :(
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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 :)
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer
SketchUp Team
 
Posts: 6699
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

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:
User avatar
plot-paris
 
Posts: 1554
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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!
nektares
 
Posts: 101
Joined: Fri Jun 20, 2008 3:38 pm

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?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17673
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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.
edson mahfuz, architect
http://www.mahfuz.arq.br

Anyone can get you more for more, but it takes genius to get you more for less.
User avatar
Edson
Global Moderator
 
Posts: 2658
Joined: Mon Oct 22, 2007 1:46 pm
Location: Porto Alegre, Brasil
Name: Edson Mahfuz
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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:
User avatar
plot-paris
 
Posts: 1554
Joined: Tue Apr 01, 2008 10:15 am
Location: London
Name: plot-paris
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Vertex Tools for SketchUp. Take control over each vertex with this vertex editor for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: dummy, natali7455, ppoublan, rudyarchi and 12 guests