Thanks for this I have a script that draws square faces and pushpulls up to form a cube, but the last one in the loop is pushpulled the opposite direction, like the normal has flipped, any clues?
I'm not sure. I use the Sketchucation website regularly to ask and answer scripting questions (in the "developers" forum). If you register there, ask the question, and can post your script and examples and I'm sure you'll get help within a few hours.
Dear Chris, Thank you for the tutorial. However as I follow along your video I noticed that the numeric value used in "face.pushpull (10)" by default is inches even though my model space unit was set to mm. How do set the script to follow the model space unit? Thank you. I am using sketchup 2014.
Hi Victor, Sketchup works in inches by default. So if you want to pushpull a value of 100 mm, you could write it like this: pushpull(100.mm) That turns the 100 into milimeters. Look at the Numeric class in the SketchUp API docs to see all the ways you can convert floats and integers, into unit-specific lengths like this: www.sketchup.com/intl/en/developer/docs/ourdoc/numeric
Omg...
I'm learning ruby applied on Sketchup, and really....it can give more freedom and possibilities to the designer. Great video!
Thanks!!
Nice startup info, thanks for posting!
Thanks for this
I have a script that draws square faces and pushpulls up to form a cube, but the last one in the loop is pushpulled the opposite direction, like the normal has flipped, any clues?
great tutorial; and thanks for the plug-ins Chris
I'm not sure. I use the Sketchucation website regularly to ask and answer scripting questions (in the "developers" forum). If you register there, ask the question, and can post your script and examples and I'm sure you'll get help within a few hours.
Why can't I record my actions into a Ruby script?
Dear Chris, Thank you for the tutorial. However as I follow along your video I noticed that the numeric value used in "face.pushpull (10)" by default is inches even though my model space unit was set to mm. How do set the script to follow the model space unit? Thank you. I am using sketchup 2014.
Hi Victor, Sketchup works in inches by default. So if you want to pushpull a value of 100 mm, you could write it like this:
pushpull(100.mm)
That turns the 100 into milimeters. Look at the Numeric class in the SketchUp API docs to see all the ways you can convert floats and integers, into unit-specific lengths like this:
www.sketchup.com/intl/en/developer/docs/ourdoc/numeric
Wow that is great! in fact i missed the dot. I am new and trying very to find tutorials. Thanks again for the tips Chris...
can you write a plugin for hotwire cnc?
Great.