# FrameAPIModelSceneFrameActorBase (widget methods): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/FrameAPIModelSceneFrameActorBase

## Functions

### ClearModel

```lua
self:ClearModel()
```

### GetActiveBoundingBox

```lua
boxBottom, boxTop = self:GetActiveBoundingBox()
```

Returns:
- `boxBottom`: vector3
- `boxTop`: vector3

### GetAlpha

```lua
alpha = self:GetAlpha()
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns:
- `alpha`: number

### GetAnimation

```lua
animation = self:GetAnimation()
```

Returns:
- `animation`: AnimationDataEnum

### GetAnimationBlendOperation

```lua
blendOp = self:GetAnimationBlendOperation()
```

Returns:
- `blendOp`: ModelBlendOperation

### GetAnimationVariation

```lua
variation = self:GetAnimationVariation()
```

Returns:
- `variation`: number

### GetDesaturation

```lua
strength = self:GetDesaturation()
```

Returns:
- `strength`: number

### GetMaxBoundingBox

```lua
boxBottom, boxTop = self:GetMaxBoundingBox()
```

Returns:
- `boxBottom`: vector3
- `boxTop`: vector3

### GetModelFileID

```lua
file = self:GetModelFileID()
```

Returns:
- `file`: fileID

### GetModelPath

```lua
path = self:GetModelPath()
```

Returns:
- `path`: string

### GetModelUnitGUID

```lua
guid = self:GetModelUnitGUID()
```

Returns:
- `guid`: WOWGUID

### GetParticleOverrideScale

```lua
scale = self:GetParticleOverrideScale()
```

Returns:
- `scale`: number, may be nil

### GetPitch

```lua
pitch = self:GetPitch()
```

Returns:
- `pitch`: number

### GetPosition

```lua
positionX, positionY, positionZ = self:GetPosition()
```

Returns:
- `positionX`: number
- `positionY`: number
- `positionZ`: number

### GetRoll

```lua
roll = self:GetRoll()
```

Returns:
- `roll`: number

### GetScale

```lua
scale = self:GetScale()
```

Returns:
- `scale`: number

### GetSpellVisualKit

```lua
spellVisualKitID = self:GetSpellVisualKit()
```

Returns:
- `spellVisualKitID`: number

### GetYaw

```lua
yaw = self:GetYaw()
```

Returns:
- `yaw`: number

### Hide

```lua
self:Hide()
```

### IsLoaded

```lua
isLoaded = self:IsLoaded()
```

Returns:
- `isLoaded`: bool

### IsPreferringModelCollisionBounds

```lua
preferringCollisionBounds = self:IsPreferringModelCollisionBounds()
```

Returns:
- `preferringCollisionBounds`: bool

### IsShown

```lua
isShown = self:IsShown()
```

Returns:
- `isShown`: bool

### IsUsingCenterForOrigin

```lua
x, y, z = self:IsUsingCenterForOrigin()
```

Returns:
- `x`: bool
- `y`: bool
- `z`: bool

### IsVisible

```lua
isVisible = self:IsVisible()
```

Returns:
- `isVisible`: bool

### PlayAnimationKit

```lua
self:PlayAnimationKit(animationKit, [isLooping])
```

Arguments:
- `animationKit`: number
- `isLooping`: bool, default false

### SetAlpha

```lua
self:SetAlpha(alpha)
```

Arguments:
- `alpha`: number

### SetAnimation

```lua
self:SetAnimation(animation, [variation], [animSpeed], [animOffsetSeconds])
```

Arguments:
- `animation`: AnimationDataEnum
- `variation`: number, may be nil
- `animSpeed`: number, default 1
- `animOffsetSeconds`: number, default 0

### SetAnimationBlendOperation

```lua
self:SetAnimationBlendOperation(blendOp)
```

Arguments:
- `blendOp`: ModelBlendOperation

### SetDesaturation

```lua
self:SetDesaturation(strength)
```

Arguments:
- `strength`: number

### SetGradientMask

```lua
self:SetGradientMask(gradientIndex0, gradientIndex1, gradientIndex2, gradientIndex3)
```

Arguments:
- `gradientIndex0`: number
- `gradientIndex1`: number
- `gradientIndex2`: number
- `gradientIndex3`: number

### SetGradientMaskWithDyes

```lua
self:SetGradientMaskWithDyes([grad0DyeColorID], [grad1DyeColorID], [grad2DyeColorID])
```

Arguments:
- `grad0DyeColorID`: number, may be nil
- `grad1DyeColorID`: number, may be nil
- `grad2DyeColorID`: number, may be nil

### SetModelByCreatureDisplayID

```lua
success = self:SetModelByCreatureDisplayID(creatureDisplayID, [useActivePlayerCustomizations])
```

Arguments:
- `creatureDisplayID`: number
- `useActivePlayerCustomizations`: bool, default false

Returns:
- `success`: bool

### SetModelByFileID

```lua
success = self:SetModelByFileID(asset, [useMips])
```

Arguments:
- `asset`: FileAsset
- `useMips`: bool, default false

Returns:
- `success`: bool

### SetModelByPath

```lua
success = self:SetModelByPath(asset, [useMips])
```

Arguments:
- `asset`: FileAsset
- `useMips`: bool, default false

Returns:
- `success`: bool

### SetModelByUnit

```lua
success = self:SetModelByUnit(unit, [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [holdBowString], [customRaceID])
```

Arguments:
- `unit`: UnitToken
- `sheatheWeapons`: bool, default false
- `autoDress`: bool, default true
- `hideWeapons`: bool, default false
- `usePlayerNativeForm`: bool, default true
- `holdBowString`: bool, default false
- `customRaceID`: number, may be nil

Returns:
- `success`: bool

### SetModelByUnitCreatureDisplayID

```lua
success = self:SetModelByUnitCreatureDisplayID(unit)
```

Arguments:
- `unit`: UnitToken

Returns:
- `success`: bool

### SetParticleOverrideScale

```lua
self:SetParticleOverrideScale([scale])
```

Arguments:
- `scale`: number, may be nil

### SetPitch

```lua
self:SetPitch(pitch)
```

Arguments:
- `pitch`: number

### SetPlayerModelFromGlues

```lua
success = self:SetPlayerModelFromGlues([characterIndex], [sheatheWeapons], [autoDress], [hideWeapons], [usePlayerNativeForm], [customRaceID])
```

Arguments:
- `characterIndex`: number, may be nil
- `sheatheWeapons`: bool, default false
- `autoDress`: bool, default true
- `hideWeapons`: bool, default false
- `usePlayerNativeForm`: bool, default true
- `customRaceID`: number, may be nil

Returns:
- `success`: bool

### SetPosition

```lua
self:SetPosition(positionX, positionY, positionZ)
```

Arguments:
- `positionX`: number
- `positionY`: number
- `positionZ`: number

### SetPreferModelCollisionBounds

```lua
self:SetPreferModelCollisionBounds(preferCollisionBounds)
```

If true, will try to use the collision bounds of models for sizing and centering. Will fall back to default model bounds if set to False, or if collision bounds are unavailable.

Arguments:
- `preferCollisionBounds`: bool

### SetRoll

```lua
self:SetRoll(roll)
```

Arguments:
- `roll`: number

### SetScale

```lua
self:SetScale(scale)
```

Arguments:
- `scale`: number

### SetShown

```lua
self:SetShown([show])
```

Arguments:
- `show`: bool, default false

### SetSpellVisualKit

```lua
self:SetSpellVisualKit([spellVisualKitID], [oneShot])
```

Arguments:
- `spellVisualKitID`: number, default 0
- `oneShot`: bool, default false

### SetUseCenterForOrigin

```lua
self:SetUseCenterForOrigin([x], [y], [z])
```

Arguments:
- `x`: bool, default false
- `y`: bool, default false
- `z`: bool, default false

### SetYaw

```lua
self:SetYaw(yaw)
```

Arguments:
- `yaw`: number

### Show

```lua
self:Show()
```

### StopAnimationKit

```lua
self:StopAnimationKit()
```

### TryOn

```lua
reason = self:TryOn(itemLinkOrItemModifiedAppearanceID, [handSlotName], [spellEnchantmentID])
```

Arguments:
- `itemLinkOrItemModifiedAppearanceID`: cstring
- `handSlotName`: cstring, may be nil
- `spellEnchantmentID`: number, default 0

Returns:
- `reason`: ItemTryOnReason, may be nil

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
