[Plugin] JS Align - Update

[Plugin] JS Align - Update

Postby Pixero » Tue Jun 23, 2009 7:46 am

I've updated the script so it will work better.
Now works correct inside groups.

Get the latest version from the PluginStore

Download

0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] JS Align - Update

Postby Bob James » Wed Jun 24, 2009 6:41 am

Tried your JS Align: neat tool.

Tried your JS MoveTool: entered a value in the "Measurement" window, pressed enter, then tried all the arrow keys but nothing happened.
0
2x Xeon E5-2690, 2x GeForce GTX TITAN 6GB, 64GB Crucial DDR3-1600, 2x Vertex 4 500GB RAID 1, WD Black 8TB RAID 5, SpaceMouse Pro
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] JS MoveTool

Postby Pixero » Wed Jun 24, 2009 9:55 am

bob.james5 wrote:Tried your JS Align: neat tool.

Tried your JS MoveTool: entered a value in the "Measurement" window, pressed enter, then tried all the arrow keys but nothing happened.


Just to be sure. You have something selected, right?
Are you on Mac or PC? I dont have a Mac so I cant test if it works.
0
Last edited by Pixero on Wed Jun 24, 2009 7:55 pm, edited 1 time in total.
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] JS Align - Update

Postby Bob James » Wed Jun 24, 2009 7:23 pm

Pixero wrote:Just to be sure. You have something selected, right?
Are you on Mac or PC? I dont have a Mac so I cant test if it works.


Yes, I had a simple rectangle (grouped) :D

I tried it on my iMac at home and on my MacPro here at work.
0
2x Xeon E5-2690, 2x GeForce GTX TITAN 6GB, 64GB Crucial DDR3-1600, 2x Vertex 4 500GB RAID 1, WD Black 8TB RAID 5, SpaceMouse Pro
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] JS MoveTool

Postby Pixero » Wed Jun 24, 2009 7:53 pm

There might be something wrong with this part of the script:

Code: Select all
elsif RUBY_PLATFORM == "powerpc-darwin" then            # Mac OSX
    $leftArrow = 63234       # Arrow Left Key
    $upArrow  = 63232        # Arrow Up Key
    $rightArrow  = 63235     # Arrow Right Key
    $downArrow = 63233       # Arrow Down Key
    $altKey  = 524288        # Alt/Option Key
    $shiftKey = 131072      # Shift Key
    $controlKey = 1048576   # Command (Apple) Key
end #if

Anyone with a Mac that can test if it's correct?
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] JS Align - Update

Postby Chris Fullmer » Wed Jun 24, 2009 7:57 pm

Bob do you use Sketchyphysics? I have had Mac users not be able to use their arrow keys if they have SketchyPhysics installed. And I can't remember if Chris fixed that issue.....?

Also, to test Jan's snippet there, you might open the Ruby Console and type in:

RUBY_PLATFORM

and see what it prints to the console. Copy and paste that back here.
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] JS Align - Update

Postby utiler » Thu Jun 25, 2009 12:06 am

Thanks Jan, great little tool....! :bounce:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] JS Align - Update

Postby Bob James » Thu Jun 25, 2009 1:44 am

Chris Fullmer wrote:Bob do you use Sketchyphysics? I have had Mac users not be able to use their arrow keys if they have SketchyPhysics installed. And I can't remember if Chris fixed that issue.....?


No, I don't have Sketchyphysics installed on either machine.

Chris Fullmer wrote:Also, to test Jan's snippet there, you might open the Ruby Console and type in:

RUBY_PLATFORM

and see what it prints to the console. Copy and paste that back here.

See attachment.
0
2x Xeon E5-2690, 2x GeForce GTX TITAN 6GB, 64GB Crucial DDR3-1600, 2x Vertex 4 500GB RAID 1, WD Black 8TB RAID 5, SpaceMouse Pro
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] JS MoveTool

Postby Pixero » Thu Jun 25, 2009 7:08 am

Bob, check your PM.
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] JS Align - Update

Postby hkgiordano » Mon Jul 27, 2009 8:44 am

Thak You, a very useful tool
0

hkgiordano 
 

Re: [Plugin] JS MoveTool

Postby thomthom » Mon Jul 27, 2009 12:22 pm

Pixero wrote:There might be something wrong with this part of the script:

Code: Select all
elsif RUBY_PLATFORM == "powerpc-darwin" then            # Mac OSX
    $leftArrow = 63234       # Arrow Left Key
    $upArrow  = 63232        # Arrow Up Key
    $rightArrow  = 63235     # Arrow Right Key
    $downArrow = 63233       # Arrow Down Key
    $altKey  = 524288        # Alt/Option Key
    $shiftKey = 131072      # Shift Key
    $controlKey = 1048576   # Command (Apple) Key
end #if

Anyone with a Mac that can test if it's correct?



The SU API Docs suggest this code to detect Mac or PC: http://code.google.com/apis/sketchup/docs/faq.html
PLATFORM = (Object::RUBY_PLATFORM =~ /mswin/i) ? :windows : ((Object::RUBY_PLATFORM =~ /darwin/i) ? :mac : :other)
It simply looks for the existance of "darwin" in the PLATFORM constant string.
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] JS Align - Update

Postby krmccurdy » Mon Jul 02, 2012 11:11 pm

Great tool! This will save LOADS of time with site files.

Thanks!
0

krmccurdy 
 

Re: [Plugin] JS Align - Update

Postby rv1974 » Thu Dec 20, 2012 10:55 am

One thing is needed to make this tool perfect:
Respect current UCS.
0

rv1974 
 

Re: [Plugin] JS Align - Update

Postby TIG » Thu Mar 06, 2014 1:33 pm

There is an update available in the PluginStore to suit SketchUp v2014
http://sketchucation.com/pluginstore?pln=jsAlign
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] JS Align - Update

Postby Pixero » Thu Mar 06, 2014 1:43 pm

The one on my site is now also v1.6.
Thanks to TIG. :thumb:
0
User avatar
Pixero 
Premium Member
Premium Member
 

Re: [Plugin] JS Align - Update

Postby pep75 » Thu Apr 24, 2014 2:12 pm

Great plug-in! But would it be possible not the change an object's position when you lock it? This would make the plug-in perfect.... :P
0

pep75 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 7 guests

Visit our sponsors: