[Plugin] LSS Toolbar 2.0 Beta
-
The last few weeks I was deeply involved in the implementation of alternative user interface for Sketchup tools so I did not answer to new posts...
@driven said:
Webkit reported errors so I changed lss_common.js, just syntax
Changed show()to show_modal() for mac use.So does it mean that there is light at the end of the tunnel for mac users? I mean I lost any hope that 'LSS Toolbar' can be adapted to run on mac.
@thomthom said:
Here is a method I use that allows me to use instructor content wihtout placing the files in the SU folder.
Thomas thanks a lot I think I'll use the same method too for next update if you don't mind
Little announcement:
I just want to inform that I'm going to suspend 'LSS Toolbar' development for a while, since now I need to raise a kind of library with custom UI graphic controls for all previously made plugins/extensions. It will be an alternative to standard UI class of Sketchup API and to WebDialog class. Here is a video where it is possible to take a look at how such custom control looks like (skip to 1:08 for preview)
http://youtu.be/QLfI1McLMa0
[flash=560,315:23rrabxa]http://www.youtube.com/v/QLfI1McLMa0?version=3&hl=ru_RU[/flash:23rrabxa]
I decided to get rid of WebDialog class so all issues caused by ruby-javascript communication will be immediately solved (for example non-decimal model units issue). But since I want to keep web-dialog flexibility then standard UI class is not an option, that's why I decided to make custom UI library.@rumcajs said:
I have tested your LLS toolbar and have few questions and suggestions.
Thanks for valuable feedback and new ideas. Chaining idea is cool
Speaking of 'Coating idea', you may try 'Stick Group' tool of 'LSS Toolbar' for this purpose (not sure about clothes modelling, but it is possible to apply some flat decoration on free formed surface not high poly though...) -
@kirill2008 said:
@thomthom said:
Here is a method I use that allows me to use instructor content wihtout placing the files in the SU folder.
Thomas thanks a lot I think I'll use the same method too for next update if you don't mind
@kirill2008 said:
It will be an alternative to standard UI class of Sketchup API and to WebDialog class.
Have you seen Aerilius' libary?
http://forums.sketchucation.com/viewtopic.php?f=180&t=47605@kirill2008 said:
(for example non-decimal model units issue).
You mean comma vs period?
I always keep all data as floats and lengths - Do not convert anything until it's being presented in the UI. What you want to watch out for if you send Length objects to WebDialogs is ensuring they are sent as floats.
http://www.thomthom.net/thoughts/2012/08/dealing-with-units-in-sketchup/Very cool video - looking forward to seeing the final product.
-
@thomthom said:
@kirill2008 said:
It will be an alternative to standard UI class of Sketchup API and to WebDialog class.
Have you seen Aerilius' libary?
http://forums.sketchucation.com/viewtopic.php?f=180&t=47605No I haven't seen, unfortunately... Looks like I don't need to raise my own library
@thomthom said:
@kirill2008 said:
(for example non-decimal model units issue).
You mean comma vs period?
I mean when distance string has quote and double quote sign and "/" sign at the same time (when model units are set to feet and inches). The point is that if I send raw distance value in SU internal units (decimal inches) to web-dialog, then I need to implement 'format_length' and 'parse_length' analogs on java-script side, so I send formatted length string to web-dialog. It's OK if model units are set to decimal (no matter metric or not), but if formatted string contains quote, double-quote and "/" sign (for fractional part), then it becomes non-obvious task to send such strings back and forth...
BTW I read your blog fairly often so I read your article about dealing with units a while ago and it really helped. But the point is I didn't find any hints in it how to let user edit formatted length string in a web-dialog, then send this information from web-dialog to ruby and this appears to be the most tricky part... -
@kirill2008 said:
I mean when distance string has quote and double quote sign and "/" sign at the same time (when model units are set to feet and inches). The point is that if I send raw distance value in SU internal units (decimal inches) to web-dialog, then I need to implement 'format_length' and 'parse_length' analogs on java-script side, so I send formatted length string to web-dialog. It's OK if model units are set to decimal (no matter metric or not), but if formatted string contains quote, double-quote and "/" sign (for fractional part), then it becomes non-obvious task to send such strings back and forth...
BTW I read your blog fairly often so I read your article about dealing with units a while ago and it really helped. But the point is I didn't find any hints in it how to let user edit formatted length string in a web-dialog, then send this information from web-dialog to ruby and this appears to be the most tricky part...Escape the string before you send it to the webdialog. You can quickly do this by using the
#inspect
method of a string.Say you have a string with " or ':
string = %{10.5"}
If you pass that directly to the webdialog you will get parse errors:
webdialog.execute_script( %|javascript_function("#{string}")| )
This will be evaluated in the webdialog's javascript engine as:
javascript_function("10.5"")
- un-escaped quotes.If you make use of
#inspect
:
string = %{10.5"}.inspect
This returns the string:10.5\"
This we can use:
string = %{10.5"} webdialog.execute_script( %|javascript_function("#{string.inspect}")| )
This will be evaluated in the webdialog's javascript engine as:
javascript_function("10.5\"")
- valid!I made a wrapper for this - so I can call javascript functions such as:
webdialog.call_script( 'javascript_function', %{10.5"} )
The first argument is the javascript function - the remaining arguments (as many as you like) becomes the javascript function's arguments properly formatted with any required escape quotes. It also convertsHash
objects intoJSON
. I've also extended it to convert Geom::Point3d and Geom::Vector3d into javascript structures which can be passed back.
Thewebdialog.call_script
also returns the value the javascript function return - converting ruby values <=> javascript values.Part of TT_Lib2:
window.rb
javascript.rb
json.rb
base.js -
Stick group - I want to
performing "preliminary sticking" action while I did not set any option yet is annoying. I have to confess that I don't have enough patience to wait so long every time when I click "Stick group" icon. So this is what I really mind on this plugin and will not use it until it will be fixed in future. I suggest disable any preliminary actions, add a button into the box, where user can click to preliminary draw and see how it would look. This would be voluntary, so user needs not to click it. Don't start any action until the conf. window is open and user will start do his own clicking actions. The test which I do today was with standard sphere with 24 segments. I even wonder what machines are you running guys! -
this beta looks very good promising.. congrats!
only 2 question:- does this tools support pseudo quads?
- does it actually have a conflict with tru-paint?
thank you
-
greetings scf,
LSS toolbar, verygood tools, thanks
-
Same compliments as everyone else
This seems like a small bug that isn't in the file indicated.
traupmann
-
@kirill2008 said:
Note
- current version runs under Windows only
- some certain tools conflict with SketchyPhysics plugin
Do you have plans to make this available for Mac? If so, any idea as to how soon?
Thanks!
-
great tools, thank you so much.
-
These are some pretty amazing tools!
I'm getting an error that I'm not sure is just me. Once I start the process of Voxelizing a model, if I don't choose the voxel size first, and then the group, I get locked into a pop-up dialog that won't go away. It simply warns me how many copies of the voxel there will be, and there is no way to exit aside from killing SketchUp in the task manager.
Any thoughts on what I'm doing wrong? Thanks!
Matt
-
Hi,
I am not sure if LSS tool bar does not work for mac plattaform or I am just missing some steps during the installation but it doesn't work properly. The tool bar is displayed and everything seems ok, but it doesn't let me pick neither the forms nor the path, If I selected the two forms and the path at the same time and then I pick the tool, it kind of works because the program displays the forms that are supposed to form the model, but I am not able to apply the transformation correctly because nothing happens... An none of the other tools work also. Am I missing something here? I follow the video tutorials but nothing. I have installed the beta version, the light version, and nothing... Someone knows what to do or what's happening?
Thanks.
Pablo
-
I'd like to know if this plugins works on Sketchup Pro 2013
-
great! thanks a lot.
-
Will there be still any updates on this plugins? This is actually one of the best plugins ever made for SU...
-
@pep75 said:
Will there be still any updates on this plugins? This is actually one of the best plugins ever made for SU...
true to that.
It rivals Fredo6s collection for the first place -
Hello All,
I tried several times to run this plugin ( or toolbar) but doesn't work for me.
I have SK 2008 and I follow the installation instructions. It could be a problem about language ? ( mine SK is in spanish). I say that about the "en-US" folder that must bΓ© extracted on "sources" SK folder.
Thanks in advance
Kind Regards
-
would love to have the lss toolbar and matrix in 2014!~
-
Is there a new version of this plugin for sketchup 2014?
-
I ve already tested it. LSS toolbar also works in sketchup 2014. Thank you so much.
The follow edges tool is brilliant.
Advertisement