assetdownload.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:community-plugins 作者: makehumancommunity 项目源码 文件源码
def onTypeChange(self,item = None):
        assetType = str(item)
        log.debug("onTypeChange: " + assetType)

        if assetType == "Clothes":
            cats = sorted(self.clothesAssets.keys())
            self.categoryList.setData(cats)
            self.assetList.setData(sorted(self.clothesNames["All"]))
        else:
            self.categoryList.setData(["All"])
            self.categoryList.setCurrentRow(0)

            assets = []

            if assetType == "Target":
                assets = self.targetNames
            if assetType == "Hair":
                assets = self.hairNames
            if assetType == "Proxy":
                assets = self.proxyNames
            if assetType == "Skin":
                assets = self.skinNames
            if assetType == "Pose":
                assets = self.poseNames
            if assetType == "Material":
                assets = self.materialNames
            if assetType == "Rig":
                assets = self.rigNames
            if assetType == "Model":
                assets = self.modelNames
            if assetType == "Teeth":
                assets = self.teethNames
            if assetType == "Eyebrows":
                assets = self.eyebrowsNames
            if assetType == "Eyelashes":
                assets = self.eyelashesNames

            self.assetList.setData(sorted(assets))

        self.categoryList.setCurrentItem("All")

        self.screenshot.setPixmap(QtGui.QPixmap(os.path.abspath(self.notfound)))
        self.thumbnail.setPixmap(QtGui.QPixmap(os.path.abspath(self.notfound)))
        self.assetInfoText.setText("Nothing selected")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号