Model (Effects) - emd4600/SporeModder-FX GitHub Wiki

This component displays a model.

Keyword: model

The model component is used as a block (like most other components), but it is also possible to use it inline, meaning that is is can be written directly in the effect that uses it. For example:

effect MyEffect
	model -name 0xCAFED00D -size 2.0
end

The inline version looks like this:

model -name <resourceID> -size <float> -color <colorRGB> -alpha <float> -material <resourceID> -overrideSet <int>

Attributes

name <resourceID>

The name of the .prop file that contains the model.


size <float>

The scale factor of the model, 1.0 by default.


color <colorRGB>

A tint color applied to the model material; by default it's white (which means no tinting).


alpha <float>

The opacity of the model, with 1.0 being opaque (default) and 0.0 being completely transparent.


material <resourceID>

If specified, this material will override the model materials.


overrideSet <int>


animate (<float...>) -vary <float> -speedScale <float> -channelID <int> -sustain -single -loop -length <float> (<float>)

Animates a channel of the model. The effect can have multiple of these attributes to animate multiple channels.

⚠️ **GitHub.com Fallback** ⚠️