Hi am a newbie here, starting scriptwriting
-
Hi I am just starting scriptwriting for sketchup. I am trying to write a script that will produce a sliding louvered panel in a frame. I have done tutorials from the sketchup website, so I modelled the stairs and an input box seperately, but I do not know how to use these together, or how to even start writing a script for a louvered panel. I am finding it hard to find any tutorials or books to help. Can anyone give me any advice? Know of any good tutorials?
Thankyou
-
Make a written set of instructions how the script will work - almost the 'Instructions' - that will help you work out how to structure your tool,
e.g. Select 'Louvre Panel' from Plugins Menu
In then Dialog that opens
Enter Length, Width, Depth, Frame-Width, Frame-Width, Louvre-Blade-Size, Louvre-Blade-Spacing, Louvre-Blade-Angle etc etc
OK
Component is made and attaches to cursor
Pick Insertion point...Now you know you need to have these main bits in your script:
See other tools for examples of structuring a script... there's also are tutorial available here... http://www.sketchucation.com/tutorialsa/
Wrap you parts inside a Method/Class called say ThelmaLouvre...
Menu - there are lots of examples of this inside free scripts you can download - this is the last bit to write !
Dialog - you already have some examples of how to make a dialog - see other scripts for examples... To check that your dialog is returning what you expect useputs xxxx
an see the content in the Ruby Console.
Make Component.
Tool using MouseMove to insert it...
When you have some bits working ask again for detailed help... -
Am a beginner too. What helps me understand the SU ruby api, is to code snippet with "Webconsole". The tutorial above has a link to it:-)
-
Thankyou very much, I will try these suggestions out
-
Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
Advertisement