v0.13.8

Model

widget type65 methodsavailable in: camelot

CreateFrame("Model", …) makes one. It has every method of Frame, plus 65 of its own.

Inherits from

  1. Model · 65
  2. Frame · 126
  3. Region · 16
  4. ScriptRegion · 55
  5. ScriptRegionResizing · 13
  6. AnimatableObject · 3
  7. Object · 5
  8. FrameScriptObject · 21

The number is each type's own documented methods. A Model has all of them.

Methods

In the emulator: 33 implemented, 32 guessed.

methodwhat it doesstatus
AdvanceTimeAdvances the model's animation. · by wowlua
()
guessed
ClearFogRemoves the model's fog. · by wowlua
()
guessed
ClearModelRemoves the model from the frame. · by wowlua
()
implemented
ClearTransformResets the model's transform. · by wowlua
()
guessed
GetCameraDistanceReturns the camera's distance from the model. · by wowlua
(): number
guessed
GetCameraFacingReturns the camera's facing in radians. · by wowlua
(): number
guessed
GetCameraPositionReturns the camera's position. · by wowlua
(): (number, number, number)
guessed
GetCameraRollReturns the camera's roll in radians. · by wowlua
(): number
guessed
GetCameraTargetReturns the point the camera looks at. · by wowlua
(): (number, number, number)
guessed
GetDesaturationReturns how strongly the model is desaturated. · by wowlua
(): number
guessed
GetFacingReturns the offset of the rotation angle. · warcraft.wiki.gg ↗
(): number
guessed
GetFogColorReturns the color of the model's fog. · by wowlua
(): (number, number, number, number)
guessed
GetFogFarReturns the distance where the model's fog ends. · by wowlua
(): number
guessed
GetFogNearReturns the distance where the model's fog begins. · by wowlua
(): number
guessed
GetLightReturns whether the model is lit and its light settings. · by wowlua
(): (boolean, ModelLight)
guessed
GetModelAlphaReturns the model's alpha. · by wowlua
(): number
guessed
GetModelDrawLayerReturns the model's draw layer and sublevel. · by wowlua
(): (DrawLayer, number)
guessed
GetModelFileIDReturns the file ID associated with the currently displayed model. · warcraft.wiki.gg ↗
(): number
guessed
GetModelScaleReturns the model's scale. · by wowlua
(): number
guessed
GetPausedWhether the model's animation is paused. · by wowlua
(): boolean
guessed
GetPitchReturns the model's pitch. · by wowlua
(): number
guessed
GetPositionReturns the model's position. · by wowlua
(): (number, number, number)
guessed
GetRollReturns the model's roll. · by wowlua
(): number
guessed
GetShadowEffectReturns the strength of the model's shadow effect. · by wowlua
(): number
guessed
GetViewInsetsReturns the insets of the model's view from the frame's edges. · by wowlua
(): (number, number, number, number)
guessed
GetViewTranslationReturns the offset of the model's view. · by wowlua
(): (number, number)
guessed
GetWorldScaleReturns the model's world scale. · by wowlua
(): number
guessed
HasAttachmentPointsWhether the model has attachment points. · by wowlua
(): boolean
guessed
HasCustomCameraWhether the model uses a custom camera. · by wowlua
(): boolean
guessed
IsUsingModelCenterToTransformWhether transforms use the model's center as their origin. · by wowlua
(): boolean
implemented
MakeCurrentCameraCustomTurns the model's current camera into a custom camera that can be changed. · by wowlua
()
guessed
ReplaceIconTextureReplaces the icon texture shown on the model. · by wowlua
(asset: FileAsset)
guessed
SetCameraSelects a predefined camera. · warcraft.wiki.gg ↗
(cameraIndex: number)
implemented
SetCameraDistanceSets the camera's distance from the model. · by wowlua
(distance: number)
implemented
SetCameraFacingSets the camera's facing. · by wowlua
(radians: number)
implemented
SetCameraPositionSets the camera's position. · by wowlua
(positionX: number, positionY: number, positionZ: number)
implemented
SetCameraRollSets the camera's roll. · by wowlua
(radians: number)
implemented
SetCameraTargetSets the point the camera looks at. · by wowlua
(targetX: number, targetY: number, targetZ: number)
implemented
SetCustomCameraSwitches the model to a custom camera. · by wowlua
(cameraIndex: number)
implemented
SetDesaturationSets how strongly the model is desaturated. · by wowlua
(strength: number)
implemented
SetFacingRotates the displayed model for the given angle in counter-clockwise direction. · warcraft.wiki.gg ↗
(facing: number)
implemented
SetFogColorSets the color used for the fogging in the model frame. · warcraft.wiki.gg ↗
(colorR: number, colorG: number, colorB: number, a: number?)
implemented
SetFogFarSets the far clipping plane for fogging. · warcraft.wiki.gg ↗
(fogFar: number)
implemented
SetFogNearSets the near clipping plane for fogging. · warcraft.wiki.gg ↗
(fogNear: number)
implemented
SetGlowSets the model's glow. · by wowlua
(glow: number)
implemented
SetGradientMaskSets a gradient mask on the model. · by wowlua
(grad0: number, grad1: number, grad2: number, grad3: number)
implemented
SetLightSpecifies model lighting. · warcraft.wiki.gg ↗
(enabled: boolean, light: ModelLight)
implemented
SetModelSets the model to display a certain mesh. · warcraft.wiki.gg ↗
(asset: string, noMip: boolean)
implemented
SetModelAlphaSets the model's alpha. · by wowlua
(alpha: number)
implemented
SetModelDrawLayerSets the model's draw layer. · by wowlua
(layer: DrawLayer)
implemented
SetModelScaleSets the model's scale. · by wowlua
(scale: number)
implemented
SetParticlesEnabledSets whether the model shows particle effects. · by wowlua
(enabled: boolean)
implemented
SetPausedPauses or resumes the model's animation. · by wowlua
(paused: boolean)
implemented
SetPitchSets the model's pitch. · by wowlua
(pitch: number)
implemented
SetPositionPositions a model relative to the bottom-left corner. · warcraft.wiki.gg ↗
(positionX: number, positionY: number, positionZ: number)
implemented
SetRollSets the model's roll. · by wowlua
(roll: number)
implemented
SetSequenceSets the animation-sequence to be played. · warcraft.wiki.gg ↗
(sequence: number)
implemented
SetSequenceTimePlays one of the model's animations from the given time. · by wowlua
(sequence: number, timeOffset: number)
implemented
SetShadowEffectSets the strength of the model's shadow effect. · by wowlua
(strength: number)
implemented
SetTransformSets the model's position, rotation and scale. · by wowlua
(translation: Vector3DMixin?, rotation: Vector3DMixin?, scale: number?)
implemented
SetUseGBufferSets whether the model renders through the G-buffer. · by wowlua
(useGBuffer: boolean)
implemented
SetViewInsetsSets the insets of the model's view from the frame's edges. · by wowlua
(left: number, right: number, top: number, bottom: number)
implemented
SetViewTranslationSets the offset of the model's view. · by wowlua
(x: number, y: number)
implemented
TransformCameraSpaceToModelSpaceConverts a position from camera space to model space. · by wowlua
(cameraPosition: Vector3DMixin): Vector3DMixin
guessed
UseModelCenterToTransformSets whether transforms use the model's center as their origin. · by wowlua
(useCenter: boolean)
guessed

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.