Re: [Maya-Python] Issues with treeview and selections

2018-09-12 Thread Justin Israel
On Thu, Sep 13, 2018, 10:23 AM kiteh wrote: > Hi all, I am having some issues with QTreeView where I populates the > information from another model. > > While trying to perform the selection within the tree view, it is suppose > to be returning me the full path of the selection. However for some

[Maya-Python] Issues with treeview and selections

2018-09-12 Thread kiteh
Hi all, I am having some issues with QTreeView where I populates the information from another model. While trying to perform the selection within the tree view, it is suppose to be returning me the full path of the selection. However for some reasons, there is always a 'NoneType' object/

[Maya-Python] Re: For loop that iterates over two lists

2018-09-12 Thread Chris Meyers
Thank you both for your replies. It will take me some time to actually understand this but at least I know where to start now. On Wednesday, September 12, 2018 at 2:55:38 PM UTC-4, Chris Meyers wrote: > > Hello, > > My first post here. I hope it's not too basic for you guys. I've been >

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread Justin Israel
Is this a possible pure python mssql options? https://github.com/denisenkom/pytds It was just a quick search, so I am not sure. On Thu, Sep 13, 2018, 2:16 AM Robert White wrote: > I think he's looking for a library to specifically access MS-SQL not MySQL. > Sadly I couldn't find any pure

Re: [Maya-Python] For loop that iterates over two lists

2018-09-12 Thread Justin Israel
Starting from basics, you can loop over one list and use a counter to index into the same location on the matching target list: x = ["a1","b1","c1"] y = ["a2","b2","c2"] i = 0 for item in x: print item, y[i] i += 1 Python provides an automatic way to do this approach: for i, item in

[Maya-Python] For loop that iterates over two lists

2018-09-12 Thread Russell Pearsall
You can use zip (as in zipper) to combine the lists as you want. for g,t in zip(GEO,TGT): Some_func(g, t) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from

[Maya-Python] For loop that iterates over two lists

2018-09-12 Thread Chris Meyers
Hello, My first post here. I hope it's not too basic for you guys. I've been scripting for a while teaching myself, so please forgive my ignorance. I've been poking around for information on this and haven't run into the right post. I have two sets of objects. One a set of base meshes,

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread Robert White
I think he's looking for a library to specifically access MS-SQL not MySQL. Sadly I couldn't find any pure python implementations. So you'll probably just need to compile your own version. On Wednesday, September 12, 2018 at 6:27:35 AM UTC-5, flop...@gmail.com wrote: > > You could try a pure

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread MW
thanks. I'll take a look. Am Mittwoch, 12. September 2018 13:27:35 UTC+2 schrieb flop...@gmail.com: > > You could try a pure python implementation called pymysql ( > https://pypi.org/project/PyMySQL/) > It does have some dependencies: crytography, enum, six, and wheel (which > should come doe

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread David Shaw
You could try a pure python implementation called pymysql ( https://pypi.org/project/PyMySQL/) It does have some dependencies: crytography, enum, six, and wheel (which should come doe with the pip install. I haven't used it yet (still sorting other parts of the pipeline), but looked into

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread MW
oh my! I had hoped that I can get away without doing any compiling because I'm a total noob in this topic. maybe anyone on this forum is using a module in maya to access microsoft sql server (pymssql, pyodbc or something different). any help would be greatly appreciated! Am Mittwoch, 12.

Re: [Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread Justin Israel
I'm not a Windows user but I imagine that you would have to compile it against Microsoft Visual Studio 2012 (?) to match the Maya 2017 compiled version. On Wed, Sep 12, 2018, 10:50 PM wrote: > Hi everybody, > > I'm a little bit lost and hope for your help here. > > I'm running Maya 2017 update

[Maya-Python] how to install pyodbc for maya 2017

2018-09-12 Thread migewa77
Hi everybody, I'm a little bit lost and hope for your help here. I'm running Maya 2017 update 5 and an microsoft sql server. I want to use pyodbc in maya to read and write data into our database but i can't get pyodbc to work in maya. if i use an external python shell it works but not in