Skip to main content

VanillaModelGroup

Represents a group of model parts in a vanilla model

Used for easy reference of normal parts

All changes also applies to all children parts


setVisible(bool)

Sets this part and its children to be visible or invisible

Example:

vanilla_model.ALL:setVisible(false)

getVisible()

Gets whether you have set this part to be visible or invisible

Example:

vanilla_model.ALL:getVisible()

setRot(Vector3)

Set this part and its children's rotation

Example:

vanilla_model.ALL:setRot(0, 90, 0)

getRot()

Get this part's set rotation

Returns the value set by the "set" function

Example:

vanilla_model.ALL:getRot()

setPos(Vector3)

Set this part and its children's position, preserving the previous values

Example:

vanilla_model.ALL:setPos(0, 10, 0)

getPos()

Get this part's set position

Returns the value set by the "set" function

Example:

vanilla_model.ALL:getPos()

setScale(Vector3)

Set this part and its children's scale

Example:

vanilla_model.ALL:setScale(2, 2, 2)

getScale()

Get this part's set scale

Returns the value set by the "set" function

Example:

vanilla_model.ALL:getScale()

setOffsetRot(Vector3)

Offsets this part and its children's rotation, adding on top of the vanilla values

Example:

vanilla_model.ALL:setOffsetRot(0, 90, 0)

getOffsetRot()

Gets this part's rotation offset

Example:

vanilla_model.ALL:getOffsetRot()

setOffsetScale(Vector3)

Offsets this part and its children's scale, multiplying with the vanilla values

Example:

vanilla_model.ALL:setOffsetScale(2, 2, 2)

getOffsetScale()

Gets this part's scale offset

Example:

vanilla_model.ALL:getOffsetScale()