maya

What does it mean for an object to be “in the underworld?”

て烟熏妆下的殇ゞ 提交于 2021-02-10 21:31:41
问题 I have this code: def block_stacks(num): stack = cmds.group(empty=True, name='Stacks#') size = num for var in range(num): i = 0 r_rot = random.uniform(0,359) block = cmds.polyCube(h=0.5, w=0.5, d=0.5, name='block#') cmds.parent(block, stack) cmds.move(0, 5.38 + i, 0, 'block*') cmds.rotate(0, r_rot, 0, 'block*') rR= random.uniform(0, 1.0) rG= random.uniform(0, 1.0) rB= random.uniform(0, 1.0) cmds.polyColorPerVertex('block*', rgb=[rR,rG,rB], cdo = True) i+=0.5 block_stacks(5) in Maya's Script

What does it mean for an object to be “in the underworld?”

∥☆過路亽.° 提交于 2021-02-10 21:24:07
问题 I have this code: def block_stacks(num): stack = cmds.group(empty=True, name='Stacks#') size = num for var in range(num): i = 0 r_rot = random.uniform(0,359) block = cmds.polyCube(h=0.5, w=0.5, d=0.5, name='block#') cmds.parent(block, stack) cmds.move(0, 5.38 + i, 0, 'block*') cmds.rotate(0, r_rot, 0, 'block*') rR= random.uniform(0, 1.0) rG= random.uniform(0, 1.0) rB= random.uniform(0, 1.0) cmds.polyColorPerVertex('block*', rgb=[rR,rG,rB], cdo = True) i+=0.5 block_stacks(5) in Maya's Script

What does it mean for an object to be “in the underworld?”

青春壹個敷衍的年華 提交于 2021-02-10 21:21:22
问题 I have this code: def block_stacks(num): stack = cmds.group(empty=True, name='Stacks#') size = num for var in range(num): i = 0 r_rot = random.uniform(0,359) block = cmds.polyCube(h=0.5, w=0.5, d=0.5, name='block#') cmds.parent(block, stack) cmds.move(0, 5.38 + i, 0, 'block*') cmds.rotate(0, r_rot, 0, 'block*') rR= random.uniform(0, 1.0) rG= random.uniform(0, 1.0) rB= random.uniform(0, 1.0) cmds.polyColorPerVertex('block*', rgb=[rR,rG,rB], cdo = True) i+=0.5 block_stacks(5) in Maya's Script

What does it mean for an object to be “in the underworld?”

拈花ヽ惹草 提交于 2021-02-10 21:21:04
问题 I have this code: def block_stacks(num): stack = cmds.group(empty=True, name='Stacks#') size = num for var in range(num): i = 0 r_rot = random.uniform(0,359) block = cmds.polyCube(h=0.5, w=0.5, d=0.5, name='block#') cmds.parent(block, stack) cmds.move(0, 5.38 + i, 0, 'block*') cmds.rotate(0, r_rot, 0, 'block*') rR= random.uniform(0, 1.0) rG= random.uniform(0, 1.0) rB= random.uniform(0, 1.0) cmds.polyColorPerVertex('block*', rgb=[rR,rG,rB], cdo = True) i+=0.5 block_stacks(5) in Maya's Script

How can I clear the Maya Script Editor programatically?

戏子无情 提交于 2021-02-07 20:35:45
问题 While creating and debugging scripts, I generate lots of feedback for myself, but if I don't clear the Script Editor, I can get confused about which attempt the feedback I'm looking at came from. Is there a way (preferably with PyMEL, but MEL is ok) to clear the Script Editor History? 回答1: Try: cmds.scriptEditorInfo(ch=True) Or (PyMEL version): import pymel.core as pm pm.scriptEditorInfo(clearHistory=True) You should also take a look at python's built-in logging module. It allows you to

How can I clear the Maya Script Editor programatically?

家住魔仙堡 提交于 2021-02-07 20:32:37
问题 While creating and debugging scripts, I generate lots of feedback for myself, but if I don't clear the Script Editor, I can get confused about which attempt the feedback I'm looking at came from. Is there a way (preferably with PyMEL, but MEL is ok) to clear the Script Editor History? 回答1: Try: cmds.scriptEditorInfo(ch=True) Or (PyMEL version): import pymel.core as pm pm.scriptEditorInfo(clearHistory=True) You should also take a look at python's built-in logging module. It allows you to

Can I import tensorflow and keras in Maya , Blender

▼魔方 西西 提交于 2021-01-28 18:52:06
问题 I am participating in a workshop , where we need to automatically rig characters . Perhaps , we will use deep learning methods . The task is to recognize body parts . My question : Is there a way for connecting tensorflow and keras , or other neural networks with 3D software? 回答1: For blender you can follow this tutorial, https://www.youtube.com/watch?v=J7Iu1rfwbds I tested it in Blender 2.81 and Python 3.7 by importing pytorch, opencv, sklearn etc. Also the test code provided in the video

Maya Python Script works from console, doesnt work from file

喜夏-厌秋 提交于 2021-01-28 17:54:32
问题 import maya.cmds as cmds #Function def printTxtField(fieldID): print cmds.textField(fieldID, query=True, text=True) #define ID string for Window winID = 'myWindow' if cmds.window(winID, exists=True): cmds.deleteUI(winID) cmds.window(winID) cmds.columnLayout() whatUSay = cmds.textField() cmds.button(label='Click me', command='printTxtField(whatUSay)') cmds.showWindow() this works fine when I execute it from the console in maya. But when I save it as a file and execute I get this error message:

Debugging Maya Plugin with Xcode

白昼怎懂夜的黑 提交于 2021-01-27 18:40:29
问题 I am trying to debug my Maya plugin that I build for Maya 2013 using Xcode 4.6.3 debugging features. I want to be able to set a breakpoint and trace through the plugin but I am not able to set Xcode up for Maya debugging. In the Edit Scheme section, I set the executable to Maya.app but that results in the following output in my Console window: Flags: -v prints the product version and cut number -batch for batch mode -prompt for interactive non-gui mode -proj [dir] look for files in the

3DS Max、Maya、SoftImage、houdini对比

Deadly 提交于 2021-01-09 09:09:07
这个话题貌似很经典,我也只是说说自己的看法,然后有一些东西希望大家能够给我解惑让我把这个对比写的更丰富全面。 我是一个接触三维动画制作软件没有几个月的新手,在开始学习之前,因为害怕选错了软件,我花了大量的时间查阅了网上很多大牛写的对比文章,并且把这四款软件都装在我的电脑上试用,现在把自己的一些想法写在这里,希望能给其他新手一点参考。 (新学者的心理很好理解,没人愿意自己辛辛苦苦学了一半发现选了个快被淘汰的软件吧,那该是多么悲剧的一件事。不得不说之前各种Maya和Max对比的言论几乎一片倒的赞誉Maya,对Max多有偏见,也让我非常犹豫Max是不是一个快被淘汰的软件) 我学三维制作软件的目的是为了做游戏,所以在反复比较之后,我最终还是选择了Max。 在我接触过houdini一段时间之后,我强烈建议一个对三维动画有兴趣的程序员认真学下houdini,多一门手艺倒是次要的,关键是那种节点式的操作理念和思想非常值得学习(很多大牛建议程序员去学学lisp正是出于学习其思想和理念的目的),用某人的话来说,学过houdini是不会后悔的。而且对接触过linux编程的程序员来说,这个软件也许不那么难,反倒非常亲切。 首先先把结论放在这里。 ==============================================================