Re: [Maya-Python] Hide Shapes from Channel Box

2015-03-13 Thread Raju buddha
Hi. it is great to know node.ihi attribute, as pre this we can all inputs and outputs at once. example make a poly sphere set it shape node's ihi to 0, it stops all inputs, outputs visibility in channel box. Thanks, Rajubuddha. On Tuesday, 24 February 2015 20:58:09 UTC+5:30, Dilen Shah wrote:

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Justin Israel
Then it doesn't matter, if you never distribute or sell it. On Sat, 14 Mar 2015 11:01 AM Marcus Ottosson wrote: > What I am talking about is a bundled application. > > But what I’m talking about is using it within a company, sorry for the > confusion. > ​ > > -- > You received this message becau

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Marcus Ottosson
What I am talking about is a bundled application. But what I’m talking about is using it within a company, sorry for the confusion. ​ -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and sto

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Justin Israel
Other interesting read: http://blog.devork.be/2009/11/python-modules-and-gpl-i-still-dont-get.html Shows just how complicated it is to actually understand it, since it doesn't map cleanly to every circumstance. You can read some people say that importing a GPL module makes your application depende

Re: [Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Justin Israel
Hmm, then I guess the windows specific logic in Qt is doing something :-/ On Sat, Mar 14, 2015 at 10:03 AM Fredrik Averpil wrote: > Hi Justin, > > When I drop a file from \100.0.0.1\share\folder\file.txt onto a cmd > window (Windows 7), the whole path is entered in the cmd window. > > // Fredri

Re: [Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Fredrik Averpil
Hi Justin, When I drop a file from \100.0.0.1\share\folder\file.txt onto a cmd window (Windows 7), the whole path is entered in the cmd window. // Fredrik On Fri, Mar 13, 2015 at 9:40 PM Justin Israel wrote: > What happens when you drag and drop that same thing onto a cmd terminal? I > might

Re: [Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Justin Israel
What happens when you drag and drop that same thing onto a cmd terminal? I might be wrong, but my guess is that it is the actual mime data being delivered to your application. On Sat, Mar 14, 2015 at 12:55 AM Fredrik Averpil wrote: > Well, that's what I thought too, from reading the docs. > > Bu

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Justin Israel
I don't really feel comfortable enough to argue about licenses, but I feel part of what you say is the same as what I know about it. You can write an application that requires PyQt4, and only distribute your original application, with the caveat that the end user must install their own PyQt to sati

Re: [Maya-Python] PySide and channelBox customize

2015-03-13 Thread Justin Israel
Maybe others have had a different experience, but I found it to be a bit dodgy to try and modify builtin widgets of the Maya UI by finding them through PyQt and operating on them informally. You don't always know when they will tear them down and rebuild them, or if something will change between v

Re: [Maya-Python] PySide and channelBox customize

2015-03-13 Thread Marcus Ottosson
Not sure I can agree with that, to be honest. In this case, it sounds like he merely wants to make a quick change to what is already working well; no need to go implementing things from scratch. That said, Justin's dvd does a very good job at explaining how you could do exactly that if you need to

Re: [Maya-Python] PySide and channelBox customize

2015-03-13 Thread Joe Weidenbach
Generally, it's better to create your own setup than trying to modify Maya's setup. If you look at Justin's cmivfx videos on PyQt, he actually creates a replacement for the channel box as part of it, you could probably use that as a starting point. On 3/13/2015 10:09 AM, Rémi Deletrain wrote:

Re: [Maya-Python] Re: How to add a quaternion attribute on a node?

2015-03-13 Thread Joe Weidenbach
Ok, I see where you're going, and you're correct, there's no double4 output. You could make an array of doubles, but my question is why you'd want a Quaternion as an output--to my knowledge, Maya does process rotations internally as a Quaternion, but it converts those to Euler's before it outp

[Maya-Python] PySide and channelBox customize

2015-03-13 Thread Rémi Deletrain
Hello everyone, I am trying to change the maya channelBox. Until now addin PySide window easily. that is my code: #===

Re: [Maya-Python] Re: Membership Deformer Set

2015-03-13 Thread Chad Vernon
If you are writing your own deformer you should use the MItGeometry iterator, get the indices out of there and call the MPxDeformerNode::weightValue method with the indices. If you are querying an existing deformer like a cluster, you'll need to query the set membership and then only iterate over

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Marcus Ottosson
Had a read through my reply and realised that it was quite rude, apologies! Hope it didn't affect what little information I tried getting across.​ :) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from thi

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Marcus Ottosson
Software licenses are generally a magical mystery to me Maybe you should have stopped there, because.. It makes your own source also need to be GPL and that you need to make your source code available. ..this is not true in any regard. I’ve spent significant time and effort into investigating v

Re: [Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Fredrik Averpil
Well, that's what I thought too, from reading the docs. But when dragging a file from \\100.0.0.1\share\folder\file.txt onto my droppable widget will result in the url: /share/folder/file.txt ... with the whole hostname/ipaddr omitted from the url. A bit confusing... // Fredrik On Fri, Mar 13,

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
Edit: I can't figure out a way to do it (without saving down as .ma, edit e.g. via python from outside of Maya, open it, save as binary) ... which is a process I need to batch. But it would be much better if I could avoid this cumbersome chained process and instead can execute a command inside of M

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
Hi Owen, I don't have the xfrog plugin in my paths. Also, I don't have any unknown nodes. I'm attaching a Maya binary file. When you open this up you'll see that it is empty, and it does not contain any xfrog nodes or unknown. But it says it requires xfrog 1.0 (and also a couple of other plugins)

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread owen burgess
In my experience, when you delete every node that gets created automatically when the Mayatomr plugin initialises (eg: mentalrayGlobals, etc...) then Maya doesn't write the 'requires' line (the plugin itself can still be loaded). Start with a blank scene in Maya 2015, load the Mayatomr plugin and

[Maya-Python] Blendshape get base weights

2015-03-13 Thread johan Borgström
Hi, I want to be able to get and set the base weights of a blendshape. In the example below I am using pymel to get the base weights. If I first edit the weights in the component editor and then run the script it returns a tuple of weights, but if I have not manually edited the weights I get an

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Justin Israel
Software licenses are generally a magical mystery to me, and there are smart lawyers that are paid to fully understand them... but from what I comprehend about GPL is that it is an "infectuos" type of license. It makes your own source also need to be GPL and that you need to make your source code a

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread owen burgess
Do you have the XFrog plugin in your PLUG_IN_PATH ? If not, then it won't get loaded, its services won't be registered and it will be classed as an 'unknown' plugin. If a plugin's services are not registered, the pluginInfo command cannot identify it. So assuming that this XFrog plugin falls into

Re: [Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Justin Israel
I don't recall there being too much variation in the way you retrieve the path of a dropped file. You just check for the urls, and for text. It's up to the underlying platform specific code to deliver the mime info as part of its drop. On Fri, 13 Mar 2015 9:48 PM Fredrik Averpil wrote: > Hi, > >

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread Justin Israel
I don't know too much about this, but what Fredrik says rings a bell. I remember how mental ray would "infect" the file if it had ever been loaded. Even if there were no mental ray nodes, it would still seem to load the plugin again simply from being included as a requires header. On Fri, 13 Mar 2

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
Hi Owen, > If there is a node in your scene which is an instance of a custom-node > type, Maya recognises a dependency on the plugin that registers the > node type (or typeID if we're speaking binary) and will add a > 'requires' line for this plugin when you save/export your scene. I don't think

Re: [Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread owen burgess
Hi Fredrik, The key here is understanding why Maya will write a 'requires' line for a plugin. If there is a node in your scene which is an instance of a custom-node type, Maya recognises a dependency on the plugin that registers the node type (or typeID if we're speaking binary) and will add a '

Re: [Maya-Python] Re: Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
I totally agree. This sounds dangerous if not handled properly, but in our case this problem propagates like a virus across all projects. The reason is that we once had e.g. the xfrog plugin, and it was used in a popular asset, such as a bunch of flowers sitting in a pot or something. This model w

Re: [Maya-Python] Re: Remove "requires" from within Maya?

2015-03-13 Thread Marcus Ottosson
I can't say for sure, but I'd imagine a "requires" statement are similar to Python's "import" statements and without them some things may not work​ as expected, like missing node-types. Having such a thing being part of a workflow sounds dangerous; would it be possible for you to elaborate on the

[Maya-Python] Re: Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
And in this case, it's part of a workflow, so it won't help me to temporarily save down an ASCII file, edit it and save it back to binary. I really would need to be able to remove these "require" statements somehow from the binary file. // F On Fri, Mar 13, 2015 at 10:40 AM Fredrik Averpil wrot

[Maya-Python] Remove "requires" from within Maya?

2015-03-13 Thread Fredrik Averpil
Anyone know if you can remove the "requires" statements which you can see at the top of a Maya Ascii file - but from within Maya? I'm trying to remove some of these from files which are binary, so I can't just open up the files from outside of Maya and edit the lines out... Regards, Fredrik --

Re: [Maya-Python] Unresolved reference etree in Pycharm

2015-03-13 Thread Ben Hearn
Thanks for the tips Justin. I un-installed and reinstalled the package along with Python itself and all is well now. PyCharm is an excellent IDE but has some odd functionality sometimes. Thanks again - Ben On 11 March 2015 at 19:35, Justin Israel wrote: > Like other IDEs, it comes down to the

[Maya-Python] How to acquire absolute filepath of drag-and-dropped file

2015-03-13 Thread Fredrik Averpil
Hi, I've created a custom QLabel class which allows dropping a file onto it. But I'm having issues with fetching the filepath of the dropped file when dropped from anything but a Windows drive letter. So for example if you drag and drop a file from a network share (which has not been mapped to dri

[Maya-Python] Re: Membership Deformer Set

2015-03-13 Thread Dilen Shah
Hey Chad, Thanks for the reply, just for example lets say I am getting the weights of a cluster on my mesh, at the moment I am using the weightList attribute to get the weights but it has all the weights even the ones that are not in the deformer set so what woul dbe the best way to approach th

Re: [Maya-Python] PySide and PyQt current and future status

2015-03-13 Thread Marcus Ottosson
Doesn’t change the license scheme. I’ve heard that some refrain from using GPL, but I never understood why. Its free so long as you don’t distribute the PyQt binaries *and don’t include the source*. Distributing *with* the source is GPL compatible. Either way, your company might restrict you from

Re: [Maya-Python] fasted way to search for nodes based on attr, and under hierarchy?

2015-03-13 Thread Gerard Gmail
This looks interesting Roy. Thanks for the suggestion. Formatting looks crazy on my phone, but I'll test it out on Monday morning when I'm back on the box. Have a great weekend all. Gerard. Sydney, Australia. On 13/03/2015, at 6:16 AM, Roy Nieterau wrote: > Just to get geeky and not sur