Thread Tools Display Modes
06-11-13, 06:07 AM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
External Models

Is there any way i could draw a .m2 model from the "Interface/AddOns" folder?
  Reply With Quote
06-11-13, 08:26 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
If this doesn't work then no:
Lua Code:
  1. --model
  2. --  model:SetCamDistanceScale(1)
  3. model:SetPortraitZoom(0)
  4. --model:SetPosition(0,0,0)
  5. model:ClearModel()
  6. model:SetModel('interface\\addons\\myaddon\\myanimation.m2')
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
06-11-13, 01:08 PM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Tried this always getting the blue and white cube.
  Reply With Quote
06-13-13, 06:06 AM   #4
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
You get the cube when trying to display some game models too. I don't know this for certain but I believe at the moment that only specific models can be loaded into a Model frame.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » External Models


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off