WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to setup ModelScene. (https://www.wowinterface.com/forums/showthread.php?t=58818)

Vampyr78 07-01-21 02:06 PM

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()


rulezyx 07-01-21 02:35 PM

Check out these addons: 1 or 2

I think they do what you are looking for.

Vampyr78 07-01-21 03:53 PM

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.

rulezyx 07-01-21 03:59 PM

Only other Addon that comes in mind is: https://www.curseforge.com/wow/addons/x-practice

Vampyr78 07-02-21 04:56 AM

Ok thanks for the help. I figured it out. I had to move and reorient the camera. Lots of trial and error.


All times are GMT -6. The time now is 12:04 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI