Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addemmaterialproperty

Scroll Prev Top Next More

Adds a new optical material property to the selected material model.  A material model (in the 'materials' folder) must be selected in the object tree for this script command to work. To add an optical material property from the optical material database, see addmaterialproperties. For details of optical material models, see Optical Material Models.

 

Supported Product: DEVICE

 

Syntax

Description

addemmaterialproperty("property_type");

Adds a new optical material property to the selected material model.  

The "property_type" argument can be one of the following:

 

"Conductive"

"Dielectric"

"(n,k) Material"

"Debye"

"Plasma"

"Lorentz"

"Sampled Data 3D"

 

This function does not return any data.

 

Example

The following script commands will add a new material to the objects tree in DEVICE, and assign optical property of dielectric to it.

 

addmodelmaterial;

addemmaterialproperty("Dielectric");

 

NOTE:  Once a material property is assigned to the material model, the selection changes to the corresponding property.  Therefore the material model must be re-selected before adding a new property to it.

 

See Also

addmodelmaterial, addmaterialpropertiesaddctmaterialpropertyaddhtmaterialproperty

Copyright Lumerical Inc. | Privacy | Site Map