maya

Item 'layer 7' already exists in the treeview : in Maya

梦想与她 提交于 2020-02-06 07:48:24
问题 I want to add two different items that have the same name to a TreeView but they have a different parent. But I get the error: Item 'layer 7' already exists in the TreeView What should I do to avoid this. My code: import maya.cmds as cmds import os window = cmds.window() layout = cmds.formLayout() control = cmds.treeView( parent = layout, numberOfButtons = 0, abr = False ) cmds.formLayout(layout,e=True, attachForm=(control,'top', 2)) cmds.formLayout(layout,e=True, attachForm=(control,'left',

maya 2020安装失败,怎么完全彻底卸载删除清理干净maya 2020各种残留注册表和文件?【转载】

点点圈 提交于 2020-02-04 02:28:58
maya 2020卸载工具,完全彻底删除干净maya 2020各种残留注册表和文件。maya 2020安装失败,怎么完全彻底删除清理干净maya 2020各种残留注册表和文件呢?有些同学想把maya 2020重新安装,但是maya 2020安装失败显示失败,有时maya 2020安装到一半就显示失败,然后会问maya 2020无法重装是怎么回事。那么maya 2020安装失败的原因是什么呢?如何才能把maya 2020卸载干净呢?有人说只要把maya 2020注册表7d2f删除就可以了,但是有的同学找到了maya 2020注册表7d2f也删除了,但是maya 2020再次安装失败。还有的同学直接重装系统,但是重装系统后maya 2020仍然无法安装。还有的同学直接把maya 2020的程序文件删除,重装maya 2020的时候会显示已安装。那么maya 2020卸载不干净无法重装的原因到底是什么呢?答案可能不是唯一! maya 2020提示安装未完成,某些产品无法安装该怎样解决呢?一些朋友在win 7或者win 10系统下安装maya 2020失败提示maya 2020安装未完成,某些产品无法安装;也有时候想重新安装maya 2020的时候会出现本电脑windows系统已安装maya 2020,你要是不留意直接安装maya 2020,只会安装maya

3dsMax无法SendToMaya或者Maya无法SendTo3dsMax的解决方案

╄→гoц情女王★ 提交于 2020-02-01 03:11:11
原文地址: https://knowledge.autodesk.com/support/mudbox/troubleshooting/caas/sfdcarticles/sfdcarticles/The-Send-To-option-is-greyed-out.html Issue: The ‘Send To’ option is greyed out in the Mudbox File menu. This can occur with multiple versions of Autodesk software installed, including: Send to 3ds Max. Send to Maya. Causes: The .syncfg text file may have incorrect version numbers listed. This behavior can also occur if there are non-matching versions of the products installed (for example Mudbox 2019 and Maya 2018). Solution: Update the .syncfg file: To address this, the .syncfg text file for

maya 2016安装失败如何卸载重装,怎么完全彻底删除清理干净MAYA 2016各种残留注册表和文件?

别说谁变了你拦得住时间么 提交于 2020-01-28 14:44:18
MAYA 2016卸载工具,完全彻底删除干净MAYA 2016各种残留注册表和文件。MAYA 2016安装失败,怎么完全彻底删除清理干净MAYA 2016各种残留注册表和文件呢?有些同学想把MAYA 2016重新安装,但是MAYA 2016安装失败显示失败,有时MAYA 2016安装到一半就显示失败,然后会问MAYA 2016无法重装是怎么回事。那么MAYA 2016安装失败的原因是什么呢?如何才能把MAYA 2016卸载干净呢?有人说只要把MAYA 2016注册表删除就可以了,但是有的同学找到了MAYA 2016注册表也删除了,但是MAYA 2016再次安装失败。还有的同学直接重装系统,但是重装系统后MAYA 2016仍然无法安装。还有的同学直接把MAYA 2016的程序文件删除,重装MAYA 2016的时候会显示已安装。那么MAYA 2016卸载不干净无法重装的原因到底是什么呢? MAYA 2016提示安装未完成,某些产品无法安装该怎样解决呢?一些朋友在win7或者win10系统下安装MAYA 2016失败提示MAYA 2016安装未完成,某些产品无法安装,也有时候想重新安装MAYA 2016的时候会出现本电脑windows系统已安装MAYA 2016,你要是不留意直接安装MAYA 2016,只会安装MAYA 2016的附件或者直接提示失败,MAYA 2016是安装不上的

'QString' object does not support item assignment python

谁都会走 提交于 2020-01-25 06:34:27
问题 self.date = QtCore.QDate.currentDate() self.time = QtCore.QTime.currentTime() self.updateTime = QtCore.QString(self.time.toString("hh:mm:ss AP")) if ((self.time.second() % 2) == 0): self.updateTime[2]= ' ' self.label.setText(self.updateTime) Error: TypeError: file line 54: 'QString' object does not support item assignment iam getting this error in if loop, is there any solution? iam new to python any help appreciated.... thank you 回答1: Your problem is that you cannot change the the QString by

Unicode within Maya

一世执手 提交于 2020-01-24 21:01:29
问题 In my script (written in Sublime Test) I've a comment that reads: # -*- coding: utf-8 -*- import unicodedata # Bööm! Bööm! Shake shake the room! print u"Bööm! Bööm! Shake shake the room!" Which works fine in a command prompt window. However, when dragging and dropping the script into Maya's script editor the same line reads: # Bööm! Bööm! Shake shake the room! print u"Bööm! Bööm! Shake shake the room!" How do I make the comment read as intended? 回答1: It's definitely Windows' problem.

GLSL gl_LightSource point/directional/spot differentiation

半世苍凉 提交于 2020-01-24 20:17:06
问题 I am writing a GLSL program as part of a plugin that runs inside of Maya, a closed-source 3D application. My plugin renders custom geometry into the same image buffer that the application renders it's default polygonal geometry. The application uses the OpenGL fixed pipeline for it's lighting and shading but I am using GLSL to render custom geometry and materials. My problem is, I want to mimic the behavior of the fixed pipeline lights in my shader. The application defines the lights in the

Rebuilding a window

风流意气都作罢 提交于 2020-01-23 17:27:27
问题 I am using PySide2 to rebuild a window like seen in the screenshot(what you see in the screenshot is an example, Ueli App launcher, available on Github), it's an app launcher, but since I am very new to PySide2 I do not know a lot of functions and asking here for help, where I should look into. What I need: I type something into the textfield(on the screenshot where it says 'test') and options that fulfill my conditions get appended to UI so that I can select them with the arrow keys and

How to get Node class instance from MObject in Maya API

六眼飞鱼酱① 提交于 2020-01-23 12:22:51
问题 In a cpp plugin I am developing in Maya API, I register a custom MPxTransform Node in the initializePlugin function: status=pluginFn.registerTransform("mympxtransform", myMPxTransformClass::id, &myMPxTransformClass::creator, &myMPxTransformClass::initialize, &myMPxTransformMatrixClass::creator, myMPxTransformMatrixClass::id); And then create the node programmatically: MDagModifier mdagmod; MObject MyMObject; MyMObject=mdagmod.createNode("mympxtransform",MObject::kNullObj,&status); I can see

MAYA 编译安装第三方库

﹥>﹥吖頭↗ 提交于 2020-01-21 05:49:25
MAYA 编译安装第三方库 下载库的源码 获取maya对应版本的devikit包 将对应的文件夹拷贝进maya的文件夹下 获取maya对应版本的VS (我这是maya2018版) 编译库 下载库的源码 https://pypi.org 获取maya对应版本的devikit包 https://www.autodesk.com/developer-network/platform-technologies/maya?_ga=2.197515945.725087356.1578820079-602794860.1540916958 将对应的文件夹拷贝进maya的文件夹下 获取maya对应版本的VS (我这是maya2018版) 编译库 管理员运行 编译源码: CMD命令 : "源码目录""C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" setup.py build_ext -I "C:\Program Files\Autodesk\Maya2018\include\python2.7" -L "C:\Program Files\Autodesk\Maya2018\lib" 安装编译后的版本: CMD命令: "C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" setup.py