Fredo6 Toposhaper on Mac
-
Any experiences of using the Toposhaper plugin in SketchUp Pro 2019 on a Mac? The user interface is not working very well:
-
@nopea said:
Any experiences of using the Toposhaper plugin in SketchUp Pro 2019 on a Mac? The user interface is not working very well:
Could you confirm you use the latest version (v2.5a).
Also could you open the Ruby Console before launching TopoShaper, and check if there are errors displayed.
Fredo
-
The version is Toposhaper 2.5a and the Ruby console shows the following errors.
Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead>
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:insprintf' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in
compute_show_text'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:inblock in button_input_manage' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:in
draw_button'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:inblock in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in
each'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:indraw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:in
draw'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:indraw' Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead> /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in
sprintf'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:incompute_show_text' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:in
block in button_input_manage'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:indraw_button' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:in
block in draw'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:ineach' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in
draw'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:indraw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:in
draw'
Error: #<ArgumentError: incomplete format specifier; use %% (double %) instead>
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:insprintf' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6input.rbe:196:in
compute_show_text'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:841:inblock in button_input_manage' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:2637:in
draw_button'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3159:inblock in draw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:in
each'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6palette.rbe:3152:indraw' /users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/lib6palette.rbe:74:in
draw'
/users/xxxxxxxx/library/application support/sketchup 2019/sketchup/plugins/fredo6_toposhaper/toposhapercloudtool.rbe:753:in `draw' -
I tried changing the decimal separator in Mac, did not help.
Is this a Mac issue, i.e. does the plugin work in SketchUp Pro 2019 in Windows?
-
This error stems from the v2019 Ruby being more strict about its print-formatting.
It's not MAC specific [I think].The method
sprintf
can be used to take a numerical value and reformat it into a string - e.g. curtailing a number to a specific number of decimal places, or adding a % suffix.This error seems to revolve around % percentage formatting.
Here is an example that sets the string 'ps' from the float 'pc' to 1 decimal place, with a % suffix added - of what used to work and what's needed now with double
%%
not%
...
ps = sprintf("%.1f%", pc) ps = sprintf("%.1f%**%**", pc)
So1.2321 >>> 1.2%
So I think that Fredo probably needs to trap for this issue, and then republish ?
Unless of course he has already done so, and your current version is not up to date ? -
This problem is fixed in v2.5b.
Actually, I missed it, because the format string used in
sprintf
is defined separately, not in thesprintf
statement. -
The issue has already been addressed in the release that was published yesterday 2.5b. I can confirm that at least the user interface seems to work both on Mac and Win running SketchUp Pro 2019 with no error messages printed in the Ruby console.
-
Would you be so kind to point me in the right direction regarding the following?
Toposhaper produces the actual terrain for which I have laser scanned data (a point cloud) from a laser scan from the air. Would you have any suggestions of how to visualise the height differences? I would somehow need to spot which sections of the terrain is e.g. in the range [33.00,33.25] meters and which in the range of [33.25,33.50] meters.
Creating isocontours with toposhaper seems rather straightforward. However, with e.g. 10 isocontours it is not possible to say which is which, e.g. that what sections the terrain are in the range [33.00,33.25]. Hence, I'm thinking of how to add colours to the faces between the isocontours.
I'm trying to figure out if this plugin could be used, https://forums.sketchup.com/t/colour-face-by-zheight-range/40883. Perhaps with some modifications. First, one must have faces to which colour can be added. Second, one must defines the colour space and add colour the the faces identified in step 1 based on their (average?) location on the z axis.
-
Further on Topographer on SketchupPro 2019, an issue present on both Mac and Win, pressing the exit button forces the triangles back to the model. Is this also on issue on older versions of SU? Would it be possible to rid of this feature?
I get no error messages.
So I would like to have this:
Put when I press the Exit tool I get this:
-
@nopea said:
Further on Topographer on SketchupPro 2019, an issue present on both Mac and Win, pressing the exit button forces the triangles back to the model. Is this also on issue on older versions of SU? Would it be possible to rid of this feature?
I get no error messages.
So I would like to have this:
[attachment=1:8obdu9lo]<!-- ia1 -->1.JPG<!-- ia1 -->[/attachment:8obdu9lo]
Put when I press the Exit tool I get this:
[attachment=0:8obdu9lo]<!-- ia0 -->2.JPG<!-- ia0 -->[/attachment:8obdu9lo]
The two modes can be toggled with the menu "Edit > Hidden Geometry".
I think TopoShaper just re-establish the Hidden Geometry mode that is in effect when you launch it.
Advertisement