Community Shape Scripts

Hi Everyone!

The Tinkercad team has been pretty busy planning and executing on a new approach to Shape Scripts. In the context of this, we just launched Community Shape Scripts.

What is this? Normally a Shape Script would live inside a file, so unless you published a file with the Shape Script alone, it would be pretty hard to find. Not only did we address that problem, but we also went one step further. Now you can immediately publish a Shape Script that will appear in the Community Shape Script panel. Yes…!, for everyone. It’s Community Shape Script, after all 🙂

So how does it work?

First of all, you will notice that there is a new part in the panel for Community Shape Scripts.

01

When you expand that palette, you will find all that has been published so far. Make sure to come back frequently, since new Shape Scripts may get submitted and you certainly don’t want to miss them.

Shape Scripts palette

Let’s take the Curved Torus from Rob Walch (thanks Rob!), and see how Shape Scripts work.

Curved Torus

The user that has created the Shape Script can expose certain parameters. When they do so, they appear on the canvas when the Shape Script gets selected.

In this case, options for radius (r2), internal radius (r1) and bendyness will allow you to make interesting changes to this shape.

Shape Scripts parameters

As you can see on the bottom of the parameters dialog, it also allows you to check the script.

Script

So how do we create these from scratch? Go to a New Design, and create a Shape Script from an Empty script.

07

Save and Update will allow you to see what you are doing and validate the shape you are trying to make. Once you feel it’s great and worthy to share with the rest of us, simply click on Publish to Community.

Apart from sliders that can be defined within a certain range, you can also add a Combobox and a Checkbox. You can see both in this Shape Script for a polygon from our own Brandon Cole.

Combobox and checkbox

After playing around with some of these Shape Scripts, I felt I had to build something with them. Probably nostalgic of my architectural background, I made a bit of a city using Fractals as buildings, DNA as stairs, and terrain as…. terrain! And of course there had to be an Asteroid about to fall into it.

06

Make sure you check it out, and have a lot of fun!

9 comments

  1. As of 1/1/2013 or 1/2/2013 the parameter input prompts appear to only be available for “Community Shape Scripts” and not “Your Shape Scripts.” Has something recently changed in the Tinkercad code?

    • Some exciting changes are happening, that will be available to the public soon, and in the process there’s a temporary disruption in this capability. It should return to normal tomorrow, and we apologize. Hopefully the upcoming changes will make up for
      the disruption!

      • Well I like all the new shape script upgrades and additions except that I have some kind of backwards compatibility issue. I have at least 10 model files that appear corrupted and I believe it’s because they all used one or two shape scripts from before the shape script changes were implemented. The files are there but do not open properly (nothing shows up), have no model previews (just swirly arrows), cannot be downloaded, cannot be duplicated, and editing steps can’t be undone to get back to something editable. The models all date to several months ago so I imagine any of several upgrades or algorithm changes could be responsible. Can I send a list of a few of the model file links to someone at Tinkercad to see if there’s a fix?

      • You are right, and it would be really helpful if you can send me the url of the models that don’t work to guillermo.melantoni@autodesk.com. We’ll check them and see how to fix this. The reason this is happening is that the legacy code was handling some cases a little differently. We are making a quite strong foundation in order to move forward with really exciting things (you’ll need to stay tuned for this), and some shapes may have not migrated correctly.
        Thanks for letting us know, and I look forward to getting those links so the team can take a look.

  2. Seems like a bit of magic here on the “publish to community” part of the tutorial. How do I do that? Where is that button in the interface? Can you say more about the role of “libraries” when I edit a shape and alter the “Settings” section? I would love to know more about how I go about publishing a plugin and what if any curation is being done on published shape generators. Very cool!

Tell us what you Tink

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s