Quantcast WoWInterface - View Single Post - How to get *textured* PlayerModel frame of shapeshift forms?
View Single Post
09-22-19, 06:22 PM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by LudiusMaximus View Post
After some research (particularly this thread), I am smarter now.

Using SetModel(fileID) seems to be pretty useless for any purpose I could think of.
What you need is SetDisplayInfo(displayID).

There are basically two ways of finding the displayID of your playerModelFrame:setUnit() created model:
  • If you know the name of what you are looking for, search for it in the wowhead NPCs. (You will also find druid forms etc. there even though they are technically not NPCs.) Look at the model in the wowhead 3d model viewer, then inspect the model viewer's HTML source code in your browser and search for "displayId".
  • If you have no idea what to search for, do GetModelFileID() on your playerModel frame. You can then look up the resulting fileID in a table like this (suggested here). There you will find all displayIDs using this fileID. In the case of Ghostwolf (fileID 926251) there are actually 64 displayIDs using it. So you have to try them all until you find the one you are after.
I've fabricated a table for displayID to actualy filePath:
https://raw.githubusercontent.com/Re...isplayPath.lua
  Reply With Quote