Re: [Maya-Python] Re: How do I delete BlendShape targets

2016-08-24 Thread Daniel Lima
But it's removemultiinstance command that it does what you want. The data is located in a different attribute. Look into the blendshape node doc page. *inputComponentsTarget* , *inputPointsTarget* , *inputTargetItem* 2016-08-24 23:25 GMT-04:00 Chen Gang : > 山炮**! > > 在 2016年8月19日星期五 UTC+8上午10:

[Maya-Python] Re: How do I delete BlendShape targets

2016-08-24 Thread Chen Gang
山炮**! 在 2016年8月19日星期五 UTC+8上午10:14:42,提颖浩写道: > > > Hi All > I want to remove BlendShape of Targets. > Using maya 's removeMultiInstance command . > But this seems to command removes only the attributes displayed on the UI > . It does not delete BlendShaoe internal node data . These data will res

Re: [Maya-Python] Re: How do I delete BlendShape targets

2016-08-24 Thread Daniel Lima
Try removemultinstance command. Take a look on the doc page. http://download.autodesk.com/us/maya/2011help/Commands/removeMultiInstance.html Hope it helps!~ -Daniel 2016-08-19 1:29 GMT-04:00 JianWei : > 山炮! > > 在 2016年8月19日星期五 UTC+8上午10:14:42,提颖浩写道: >> >> >> Hi All >> I want to remove BlendShape

Re: [Maya-Python] textField - invoking callback on each keypress, keeping focus after Enter

2016-08-24 Thread Alok Gandhi
+1 for QLineEdit On Thu, Aug 25, 2016 at 3:59 AM, Justin Israel wrote: > Hi > > If the change callback doesn't fire on each keypress (I can't remember) > and you want more custom behaviour than the limited Maya UI objects > provide, then you may need to switch to PySide. You can make a QLineEdit

Re: [Maya-Python] New to python. Trying to put an image on a cube.

2016-08-24 Thread Justin Israel
Hi and welcome! First off let me just throw out a comment about code sharing. For large snippets like this, can you make sure to use something like pastebin or gist or your favourite code sharing solution? It helps make the code formatting more readable. As for your question, you would need to cr

Re: [Maya-Python] textField - invoking callback on each keypress, keeping focus after Enter

2016-08-24 Thread Justin Israel
Hi If the change callback doesn't fire on each keypress (I can't remember) and you want more custom behaviour than the limited Maya UI objects provide, then you may need to switch to PySide. You can make a QLineEdit do anything you want. Justin On Wed, 24 Aug 2016, 11:43 PM Michał Frątczak wrot

[Maya-Python] New to python. Trying to put an image on a cube.

2016-08-24 Thread julian
I am rather new to both python and maya. I'm trying to build a tool to create a skybox, so I have already created the cube and inverted its normals, but i can't seem to find how to apply a texture to it. All help is appreciated. Thank you. Here is my code: import maya.cmds as cmds from os impor

Re: [Maya-Python] 'counter' versioning for object renaming not working

2016-08-24 Thread likage
@Justin Thank you so much. The doc string certainly helps as I am able to comprehend what is going on :) I did not know of such a way to do this 'counter' as I am having difficulties trying to implement the 'counter-conditional' that I have seen in c++ into pythonic forms, which of course failed

[Maya-Python] textField - invoking callback on each keypress, keeping focus after Enter

2016-08-24 Thread Michał Frątczak
Hi I'm using textField to implement interactive filter to some list of strings. I'd like to have my callback function being called on each keypress. Also, I'd like to retain focus after enter. I'm with MEL now but can convert to anything that works: textField -e -cc "myCallback" $textField UI;