User Interface for Customizing Models ( Part 3)

This will be the finale of the trilogy of posts describing my GSoC project User Interface for Customizing Models.
In last two posts, I described the main features of OpenSCAD customizer. In this post we will start with how the customizer will be integrated in OpenSCAD initially and how will you be able to use it. And link to showing Customiser working is here:

 https://youtu.be/tY8WuJjJx4U

Customizer feature will be added as an experimental feature to OpenSCAD. So, you will able taste it but How?
So, to get started with OpenSCAD you have to do not even little but tiny bit of efforts i.e.

    1. Go to Edit in the menu and click on Preference and you will be welcomed by a sub window.

Screenshot from 2016-08-18 01:12:21.png

  1. Now, click on Feature in that window.
  2. So, now you reached the list of experimental features that will one day make your life as modeler in OpenSCAD very easy.
  3. You need to click on check box corresponding to bleeding edge feature that you want to taste earlier.
  4. As we are more concerned customizer feature here. So, tick check box corresponding to enable customizer.
  5. Close the sub window.
  6. Lastly, Go to view/Hide Customizer and unhide it by clicking on it and your Most awaited feature of Year Customizer will be waiting to be explored by you.

Screenshot from 2016-08-18 01:11:08.png

In customizer, You will be able to see two checkbox’s which are:

  1. Automatic Preview : If checked preview of model will be automatically updated when you change any parameter in Customizer else you need to click preview button after you update parameter in customizer.
  2. Show Details: If checked the description for parameter will be shown above the input widget for the parameter else It will not be displayed but you still can view the description by hovering the cursor over the input widget.

Then comes Reset button which when clicked resets the values of all input widgets for the parameter to default provided in SCAD file.

Next come Preset section: It consist of three buttons:

combo Box
It is used to select the set of parameters to be used
+ button
  1. It is used to update the set selected in combo Box. On clicking + button values of parameters in set are replaced by new values
  2. If we select “No set selected” in comboBox, then we can use + button to add new set of the parameters
– button
It is used to delete the set selected in combo Box.

and finally below Preset Section is the Place where you can play with the parameters.

For constructing the input widget of your desired choice, you can use the comment like syntax referred in the first post.

// variable description
variable name = default value; // possible values

The native syntax will not be supported in master OpenSCAD for some time (eventually, it will be part of OpenSCAD) but if you want to try it you can try it at:

https://github.com/openscad/openscad/pull/1669

And You can use the following syntax for Grouping:

/* [Tab Name] */

 

You can also refer to  two examples that are Part of OpenSCAD to learn more:

  1. Parametric/sign.scad
  2. Parametric/candlStand.scad

Screenshot from 2016-08-18 01:42:39.png

And as, know This feature will be added experimental initially. So, there is difference how you will be using the feature of Customizer through cmd-line:
openscad -o --enable=Customizer <output-file> -p <parameteric-file (JSON File) > -P <NameOfSet> <input-file SCAD file >

  • -p is used to give input JSON file in which parameters are saved.
  • -P is used to give the name of the set of the parameters written in JSON file.

Screenshot from 2016-08-18 01:29:25.png

 

Make sure to check it out at and provide a feedback:

Latest snapshots( with Thingiverse syntax):

 

 

 

You can report any issue that you found at below link:

https://github.com/openscad/openscad/issues/1781

Advertisements

One thought on “User Interface for Customizing Models ( Part 3)

Leave a Reply

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