How to make a 10 sided dice...
just combo some SU scripts! total time 5 minutes
great work Fredo!


How to make a 10 sided dice...
just combo some SU scripts! total time 5 minutes
great work Fredo!


I think you can do this with the standard polygon tool and setting 4 sides in VCB
I've updated the script see first post for details,
here the new toolbar with new shapes.
enjoy 

I've finished the work on icosahedron too,
now I will try to implement feature you all request and clean the code a little.
see you next week.
@lapx said:
Can parametric tool be added this. After or during adding shape you can change radius or height parameters. VCB stuff you know. Now this would be fantastic!!!
VCB is fully supported by 3D shapes tool, read low-right corner hints.
I've noticed is if you draw on a back face, the cone is reversed,
and for the sphere depends on the order of the edge passed to the add_face
on the first face created. For the cone the first face is the base, so if it's
draw on an existing back face, all the cone became backfaced.
For other shapes i've just finished the regular dodecahedron (the last platonic solid missing!)
You are right!
I've adde the construction line feature ( ripped from your tool
)
It will be available in the next release, thank you.
Yes, you have to implement the method "onUserText" on your tool:
ex:
# This is called when the user types a value into the VCB
def onUserText(text, view)
# The user may type in something that we can't parse as a length
# so we set up some exception handling to trap that
begin
value = text.to_l # convert the value to a length
rescue
# Error parsing the text
UI.beep
value = nil
Sketchup;;set_status_text "", SB_VCB_VALUE
end
....
end
@cphillips said:
Loving the plugin dude!
Suggestion. Once you place the shape it is hard to set the height. You need to have something to infer the height and if nothing is available it is frustrating. My solution was to add a construction line to the center of the shape after the second click.
[CUT]Chris
Strange.. on my system my tool works differently 
when you do the second click with the cone tool it goes up
and down with the height without being locked on the surface.
I have to review the code to see if I made some mistrake invocking
some method without "self.".
thank you for the suggestion on the costruction line, I'll think about it.