Vexus Plugin \ MAX Script Reference

Vexus Material

Previous Next

 

Overview

The following methods can be used to get or set properties for Vexus Materials (VexusMtl).

 

 

Methods


<integer>Version()

Returns the plugin version as an integer. For example, a return value of 100 would mean version 1.00 

 

 

<integer>Select() <string>Name

Used to select the a material listed in the specified VexusMtl using the string found in the name slot.

 

 

<boolean>LoadLibrary() <boolean>UseInstance <boolean>OverwriteLabels <string>Filename

Loads the provided (*.mat) file into the VexusMtl slots. Materials loaded will auto populate the name slot fields using the names of the materials.

 

 

<boolean>SaveLibrary() <string>Filename

Saves the current list of materials in the VexusMtl to a (*.mat) file.

 

 

Properties


<material>.Selection : integer

Use to get/set the active material selected.

 

 

<material>.mat1 : material

<material>.mat2 : material

<material>.mat3 : material

<material>.mat4 : material

<material>.mat5 : material

<material>.mat6 : material

<material>.mat7 : material

<material>.mat8 : material

<material>.mat9 : material

<material>.mat10 : material

<material>.mat11 : material

<material>.mat12 : material

<material>.mat13 : material

<material>.mat14 : material

<material>.mat15 : material

<material>.mat16 : material

Use to get/set the material for the first material slot.

There are currently 16 material slots available.

 

 

<material>.label2 : string

<material>.label3 : string

<material>.label4 : string

<material>.label5 : string

<material>.label6 : string

<material>.label7 : string

<material>.label8 : string

<material>.label9 : string

<material>.label10 : string

<material>.label11 : string

<material>.label12 : string

<material>.label13 : string

<material>.label14 : string

<material>.label15 : string

<material>.label16 : string

Use to get/set the listed name slot of the material.

There are currently 15 name slots available. The first slot name is set as 'Default' and the name can not be changed.

 

Example

This example demonstrates how to create a VexusMtl and then assign a material to the second slot and set the slot name.

m = VexusMtl()

m.mat2 = StandardMaterial name:"Red Plastic" diffuse:Red

m.label2 = "Red Plastic"

 

 


 

Copyright © 2019 Boomer Labs and JokerMartini

http://boomerlabs.com/vexus