Creates a new Appearance in the Design using default values. The new appearance can be edited using the color, roughness, colorTexture, normalTexture, and roughnessTexture properties, or using appearanceProperties for finer control. This method only applies to the Appearances collection from a Design.
"appearances_var" is a variable referencing an Appearances object. |
"appearances_var" is a variable referencing an Appearances object. |
"appearances_var" is a variable referencing an Appearances object. |
| Type | Description |
| Appearance | Returns the newly created Appearance or null if the collection isn't from a Design. An error is raised if the name is empty or is already in use. |
| Name | Type | Description |
| name | string | The name of the new Appearance. It must be non-empty and unique within the Design. |
| surfaceType | AppearanceSurfaceTypes | The surface type of the new Appearance. This defaults to OpaqueAppearanceSurface, which is appropriate for plastics, paints, ceramics, rubber, and other non-metallic, non-transparent materials. This is an optional argument whose default value is AppearanceSurfaceTypes.OpaqueAppearanceSurface. |