This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:

Sidebar

en:vci:script:reference:exportassets:material

assets.material (ExportMaterial) (Material modicifation)

On version 1.8.2a, functions to modify materials are added. vci.assets(ExportAssets) has functions to modify materials as well, but they are planned to be moved to ExportMaterial. So please prioritize ExportMaterial.

List of functions

For the latest list of the functions, refer to “types.lua” file in “EmbeddedScriptWorkspace” folder.

Function Description
GetNames: fun(): usertype Get the list of material names.
GetColorFromIndex: fun(index: number): Color Get Color by specifying an index number.
GetColor: fun(name: number): Color Get Color by specifying a name.
GetEmissionColorFromIndex: fun(index: number): Color Get EmissionColor by specifying an index number.
GetEmissionColor: fun(name: string): Color Get EmissionColor by specifying a name.
GetTextureOffsetFromIndex: fun(index: number): Vector2 Get TextureOffset by specifying an index number.
GetTextureOffset: fun(name: string): Vector2 Get TextureOffset by specifying a name.
SetColorFromIndex: fun(index: number, color: Color) Specify Color by specifying an index number.
SetColor: fun(name: string, color: Color) fun(name: string): Vector2 Specify Color by specifying a name.
SetEmissionColorFromIndex: fun(index: number, color: Color) Specify EmissionColor by specifying an index number.
SetEmissionColor: fun(name: string, color: Color) Specify EmissionColor by specifying a name.
SetTextureOffsetFromIndex: fun(index: number, offset: Vector2) Get TextureOffset by specifying a name.
SetTextureOffset: fun(name: string, offset: Vector2) Specify TextureOffset by specifying an index number.
ResetFromIndex: fun(index: number) Reset to the initial state by specifying an index number.
Reset: fun(name: string) Reset to the initial state by specifying a name.

The functions with _ALL_ are run on other clients as well.

Function Description
_ALL_SetColorFromIndex: fun(index: number, color: Color) Specify Color by specifying an index number.
_ALL_SetColor: fun(name: string, color: Color) fun(name: string): Vector2 Specify Color by specifying a name.
_ALL_SetEmissionColorFromIndex: fun(index: number, color: Color) Specify EmissionColor by specifying an index number.
_ALL_SetEmissionColor: fun(name: string, color: Color) Specify EmissionColor by specifying a name.
_ALL_SetTextureOffsetFromIndex: fun(index: number, offset: Vector2) Get TextureOffset by specifying a name.
_ALL_SetTextureOffset: fun(name: string, offset: Vector2) Specify TextureOffset by specifying an index number.
_ALL_ResetFromIndex: fun(index: number) Reset to the initial state by specifying an index number.
_ALL_Reset: fun(name: string) Reset to the initial state by specifying a name.
en/vci/script/reference/exportassets/material.txt · Last modified: 2019/11/28 18:26 by h-eguchi

Page Tools