Vol.
7
In this series, we will carefully introduce the main features and related information. Shade3D is equipped with high-precision modeling capabilities, Layout, Camera, Light sources, rendering, and animation are used for architectural perspective drawings, It includes essential functions for interior design and product design, and can also be used as a modeling tool for UC-win/Road.
Shade3D website, Traditional Chinese version
Establish your own dedicated tools

You can create your own custom tools by using the "Script" function installed in Shade3D. Shade3D not only has a standard user interface that can be executed from the "Script" menu, but also includes graphical user interfaces that work with advanced and complex operations such as the "3D Printing Assistant."

● Standard script: "Randomly create spheres"
Place a specified number of spheres of a specified size at random locations
● Standard feature: "3D Printing Assistant"
ProceedingSemi-automatic checks and repairs for various error conditions required in 3D printing
Click on the image to enlarge it Click on the image to enlarge it Click on the image to enlarge it Click on the image to enlarge it

Establish the script

Writing a script from scratch requires extensive knowledge, but most objects created and edited in Shade3D can be automatically recorded in the "Script" window, and you can edit these recorded scripts to create original scripts.

A single operation records one script, but you can create more complex objects and edit objects with precise values by recording and editing multiple operations.


Script recording

This creates a sphere of a specified size at a designated location, and then generates a script to duplicate it and move it by a specified amount.

If you select "Record" in the "Script" window and perform the corresponding operation, the operations performed on Shade3D will be recorded as text within the "Script" window.

Since the script is written in the Python programming language, it may appear complex, but essentially, you only need to change the numerical values in the records to the desired values.

● Select "Record"
● Records the operation of creating a sphere
Click on the image to enlarge it
● Records the operation of creating horizontal copies
Click on the image to enlarge it

Editing script

This operation allows you to create spheres of any size at any location, and to duplicate and move them over any distance. Editing involves specifying the desired location, size, and distance.

The first line creates a sphere. Because numerical values are recorded after the creation command, it is changed to the origin [0, 0, 0], and the size value is changed to 200. The second line changes the movement distance of the sphere by moving it, setting the distance to 1000.


Script execution

When you press the "Execute" button in the script window, a sphere with a radius of 200 will be created at the origin, and then it will be duplicated and moved to a location 1000 units away.

Click on the image to enlarge it
Scripts used

By saving the created script to a specified location, it can be selected and executed from the "Script" menu. In Shade3D, some scripts are registered as standard scripts and are available for use.


More advanced scripts

In addition to Python, you can also use HTML and JavaScript to create scripts (window widgets) with interfaces like "3D Printing Assistant."
You can significantly improve your work efficiency by creating your own scripts and components, such as building gears with different gear ratios, screws with varying diameters, and even creating multiple objects simultaneously.

 
● Partner company: "Gradient color creation"
Apply a gradient to the selected object using the specified color tones.
Click on the image to enlarge it Click on the image to enlarge it

Learn more

For detailed information on creating scripts, please refer to the "Tutorials" section of the official Shade3D website under "How to Customize?" where basic knowledge and application examples are provided.

● "How can we customize it?"
Japanese: https://shade3d.jp/training/shallwecustomize/

Script manual

You can view the manuals for scripts that can be used in Shade3D by going to "Support" > "Online Help" and "Shade3D Python Script Reference" on the official Shade3D website.

● "Shade3D Python Script Reference"
Japanese: https://shade3d.jp/training/shallwecustomize/

Create scripts using a graphical user interface

Using the separately sold "Block UI Programming Tool," you can create graphical user interfaces with scripts that incorporate a puzzle-like effect.

● "Block-based UI programming tool"

● "Recorded samples"
Create a cube with a random size and assign it a random color.
Click on the image to enlarge it Click on the image to enlarge it


Previous page
    
Table of Contents
Up&Coming Spring Issue 2020
Return
Up&Coming

FORUM8