[Plugin] Toggle Units
-
Thank you Gaieus!
-
Great plugin~ I find it easy to switch from mm to M when just to measure the area of a plan now!
-
Hi.
I don't think it's a Lion issue... per sayon the mac the MF_UNCHECKED MF_CHECKED just doesn't work to your advantage, and after a few wrong combinations, it stops switching the screen text, although console says it's working.
if you run it with RC open you can see that your better off re-clicking the currently selected first, to turn the shadow off, then changing. it's a drag, but SU enabled the native buttons behavior to latch and when it also coded to latch....
the mac native SU button code needs to be modified, then we can have buttons the toggles, like 'some' native SU ones that were set up correctly.
as a stop gap I changed the MF_CHECKED to MF_UNCHECKED, which sightly reduces confusion.
john -
Well, no luck here on OS X Lion, with v 2.11
Only the first 4 icons and the 2 setting the precision work; And the greyed out icons stays on when it should go out.
-
no the native setting will still shadow the buttons as if selected, the light greying seems to work, until it/you gets confused,
it only works on unavailable options, so maybe the fractions/decimal triggering could be modified to make it more intuitive...
I just turned off Fractions and Arch and Use ENG in either metric or imperial, but with decimals only.
I understand fractions, but not the use of them.... although they should run faster with binary conversions....
john
-
Oh ! you mean the shadowing of the buttons is within SU.
Oh well, then I can just re-click it to make the shadow go.
Here in Quebec, we are caught between 2 worlds so I have to use both Arch. and Met. -
Hum... in this case, we do not really need the current icon being greyed cause we can see witch is the current unit setting just by looking at the dimensions in the model.
The main drag is that some do not work. Maybe taking the "greying" part of the code out ?
update; I deleted the "MF checked-MF unchecked" and "validation" parts and they now all work fine.
Now If I could find how to disable the greying out of the icons. -
hay,
I'm in England, 50% of the population think mm is the Mickey Mouse Club and the rest think a foot is on the end of their leg...
I work with both
-
Hi. I apologize for mac bugs, I have no mac to test plugins...
Did you see there is an option that lets you choose icons you want to display? You can hide fractional icon if you want. -
Useful plugin.
-
Useful plugin!!! Thanks!!
-
Matt666, thank you for the very handy plugin. I use this all the time and was wondering if I could make one request...
Could you add a favorites toggle? What I mean by this is allow the user to set favorite units / precision combinations they could toggle between with one click. In my case I need to toggle CM with 0.0 precision and Inches with 1/16 precision constantly. If I could set these two as favorites and have one button that would switch between only those two I would owe you!!
-
Hi Pete! Thank you for your kind words..
i don't use SU and Ruby anymore, my new job as musician doesn't need for these kind of software!
But I love programming so I will try to do something for you..I just have to reinstall SU!
-
i have a question please;
can i use the plugin toggle units in commercial use; i mean i will not sell it, i want to use it in my design, i am interior designer and i use sketchup pro 8, to designs designs for clients so is it allowed to me to use it or no?thank you
waiting your feedback -
@design54 said:
i have a question please;
can i use the plugin toggle units in commercial use; i mean i will not sell it, i want to use it in my design, i am interior designer and i use sketchup pro 8, to designs designs for clients so is it allowed to me to use it or no?
thank you
waiting your feedback
Obviously you can't 'sell' someone else's creation, but the use of most of the forum's 'free' tools in your 'business' is acceptable, unless there is something specifically in a tool's 'notices' saying you can't... In this case it's 'All Rights Reserved... Free License...' etc but with no other limitations that I can see...
Having said that it would be nice to offer an author a modest PayPal donation - after all if you are making money from a tool then sharing some of it would only seem fair... "What goes around comes around..."
Matt666 doesn't have a donation button on the 'SketchUcation Plugin Store', but this doesn't prevent you sending him a Private Message and asking the question... If he declines you are no worse off, if he accepts you might feel better in your heart... -
Hello there,
I just installed SU 2014,
After downloading Matts Toggle_Units.rb using the sketchucation download-Manager I get the following Error message:Fehler beim Laden der Datei Matt_Toggle_Units.rb
Error: #<SyntaxError: C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units.rb:62: syntax error, unexpected ',', expecting ')'
Sketchup.register_extension (ext,true)
^>
Any Idea how to fix this ?
thank`s for your comments,
Uli -
same problem here !
could someone please make this wonderful plugin available for sketchup 2014 ?
thanks
FrankError Loading File Matt_Toggle_Units.rb
Error: #<SyntaxError: C:/Users/Frank/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units.rb:62: syntax error, unexpected ',', expecting ')'
Sketchup.register_extension (ext,true)
^> -
You should try to contact Matt by email or something, so that he can fix it.
In the meantime, open the file
C:\Users\USERNAME\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp\Plugins\Matt_Toggle_Units.rb
in notepad.Change the last line from
Sketchup.register_extension (ext,true)
to
Sketchup.register_extension ext, true
Then it should work fine.
BTW, even if we can't get in touch with him, we cannot redistribute a fixed version of his plugin, as he states in his files "All Rights Reserved".
EDIT : It seems he visited the forum on Feb 27, so he should be around somewhere
-
Hi all, I edited 1st post with a correction of the bug. Thank you.
-
your right,
after changing the last line, everything works fine.
thanks for your help jiminy-billy-bobUli
Advertisement