View Single Post
05-15-16, 08:46 AM   #16
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by TOM_RUS View Post
There's also SetCreature, SetItem, SetItemAppearance, SetDisplayInfo along with SetModel. Those API's cover a broad range of models. Also you don't need any GetXXX API's at all, since that widget only displays whatever you set to it, just store that information yourself somewhere.
The issue is that you won't be able to pair DisplayIDs with their proper model paths like this:

Lua Code:
  1. local function ExtractModelData()
  2.     index = index + 1
  3.     print("Model: ", index)
  4.     model:ClearModel()
  5.     model:SetDisplayInfo(index)
  6.     if model:GetModel() and model:GetModel() ~= "" then
  7.         modelData[index] = model:GetModel()
  8.     end
  9. end

Which kills the ability to categorize/use/select multi textured models.