Quantcast
How to setup ModelScene. - WoWInterface
Thread Tools Display Modes
07-01-21, 02:06 PM   #1
Vampyr78
A Murloc Raider
AddOn Author - Click to view addons
Join Date: May 2016
Posts: 5
How to setup ModelScene.

Does anyone know how do you setup ModelScene widget to actually display actor's model. I can't find any useful information. I have this code and it doesn't show anything apart from backdrop.

Code:
frame.actor = frame:CreateActor()
frame:SetWidth(150)
frame:SetHeight(200)
frame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", 
		   edgeFile = "Interface/Tooltips/UI-Tooltip-Border", 
		   tile = true,
		   tileSize = 16,
		   edgeSize = 16, 
		   insets = {left = 1,
				 right = 1,
				 top = 1,
				 bottom = 1}}) 
frame:SetBackdropColor(0, 0, 0, 1)
frame:Show()
frame.actor:SetModelByUnit("player", false, true)
frame.actor:Show()
  Reply With Quote
07-01-21, 02:35 PM   #2
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
Check out these addons: 1 or 2

I think they do what you are looking for.

Last edited by rulezyx : 07-01-21 at 02:39 PM.
  Reply With Quote
07-01-21, 03:53 PM   #3
Vampyr78
A Murloc Raider
AddOn Author - Click to view addons
Join Date: May 2016
Posts: 5
Thank you but unfortunerly no. They use DressUpModel and PlayerModel which are completely different Widgets from ModelScene. DressUpModel is much easier to set up but it doesn't seem to allow to equip seperate shoulders. ModelSceneActor can do that but I can't make it show up.
  Reply With Quote
07-01-21, 03:59 PM   #4
rulezyx
A Flamescale Wyrmkin
 
rulezyx's Avatar
Join Date: Jan 2020
Posts: 106
Only other Addon that comes in mind is: https://www.curseforge.com/wow/addons/x-practice
  Reply With Quote
07-02-21, 04:56 AM   #5
Vampyr78
A Murloc Raider
AddOn Author - Click to view addons
Join Date: May 2016
Posts: 5
Ok thanks for the help. I figured it out. I had to move and reorient the camera. Lots of trial and error.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to setup ModelScene.

Thread Tools
Display Modes

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