[Plugin] LSS Toolbar 2.0 Beta
-
@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.
-
I get the attached error (and similar other errors with other buttons) when trying to use the Toolbar
-
This tool has an overly complex installation requirement.
Some files go in the Plugins folder but some others go in the Resources folder.
It's explained in the tool's installation guide.It must find some files in the Resources folder because in several places like this:
Plugins\lss_toolbar\lss_crvsmth.rb
The tool has code:
resource_dir = File.dirname(Sketchup.get_resource_path("lss_toolbar.strings")) html_path = "#{resource_dir}/lss_toolbar/crvsmth.html"
If '
resouce_dir
' is not found, then the empty folder path used for thehtml
file will mean it's broken !Use this in the
Ruby Console
to find your Resources folder:
` File.dirname(Sketchup.get_resource_path("."))C:/Program Files (x86)/SketchUp/SketchUp 2014/Resources/en-US)`
If you have this tool's files in the right places the
strings
file should be found too, when using.
` File.dirname(Sketchup.get_resource_path("lss_toolbar.strings"))C:/Program Files (x86)/SketchUp/SketchUp 2014/Resources/en-US)`
If you don't get a 'path' some files are mis-filed...The returned paths will vary depending on your setup and SketchUp version etc...
-
For the correct path, you must extract Plugin content into Sketchup/plugin and Resources content into Sketchup/Resources.
See below:See install guide here:
https://sites.google.com/site/lssoft2011/home/lss-toolbar
Advertisement