[Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-10 Thread Benjam901
Hey Michael, Thank you for the tips on the API and techniques to use for speed. I was testing out your code and it works great. I am a bit confused though (I have not managed to wrap my head around how each return list corresponds to each other yet). I need border edges for the UV shells. Thi

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-10 Thread Michael and Amanda
Hey Ben, I have to admit I can't follow the UV shell technique you described. I would expect a 500 vert object with a seam up the middle to have 500 + (number of verts in the seam) verts in the game. The technique I described does that, by counting verts twice if they are on UV seams (or more than

[Maya-Python] Re: Printing to console from custom node while playback or timeline scrubbing.

2017-11-10 Thread Balazs Pataki
This is due to the evaluation manager. If you switch to DG instead of Parallel, you will see that it will work. Ok, so how should we go around not limiting ourselves to DG evaluation only? The problem is the printing into the script editor, instead, you could log into the Output Window with sys._

[Maya-Python] Popen - explicit env argument vs none?

2017-11-10 Thread Panupat Chongstitwattana
Hi guys. I'm doing some simple test here and curious if there's any difference between these 2? os.environ["JOEY"] = "SOMETHING" Popen( maya, shell=True ) and os.environ["JOEY"] = "SOMETHING" Popen( maya, env.dict=dict(os.environ) ) 1 thing I notice is that, with Shell=True, maya.exe proces

[Maya-Python] Re: Printing to console from custom node while playback or timeline scrubbing.

2017-11-10 Thread Simone Tartaglia
Thanks Michael and Balazs, I liked the logger option as it's faster and better than print(), but unfortunately as Balazs says, it suffers of the same problem. Balazs, I've tried to set to DG and Serial and they also suffer of the same problem, the output to console feedbacks only after mouse rel

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-10 Thread Ben Hearn
Hello Michael, You explained it precisely how I needed it explained thank you! I was very confused about the return values for vertex IDs and UV UDs and how they tied together. I am going to expand further and iterate each map and check that each vertex has already been split or not. Am I correct

[Maya-Python] Animating curves/surfaces by moving control point

2017-11-10 Thread Valerio Caravani
Hi guys! i'm new here, i'm a student who has just begun to start using Maya and Python programming in Maya, I would like to have some information about how to make curves or surfeces animation by moving control points. Thanks, Valerio -- You received this message because you are subscribed to

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-10 Thread Benjam901
Hey Michael, I copied some UVs into a new UV map and tried the same method and to highlight what was happening I am selecting the UVs. For the 2nd UV set however the method looks like it fails, when I select the UVs it selects almost all the verts in the map. I amended the code to give me the

Re: [Maya-Python] Re: python list sorting issue

2017-11-10 Thread Balazs Pataki
I hope I'm not going too off topic with this. Just some clarifications :) Is the original solution suggested to be O(n^2) because of the nested > remove(i) call within the loop? Exactly. > Would that have a logarithmic complexity instead because the list becomes > shorter everytime it finds a

[Maya-Python] Re: Printing to console from custom node while playback or timeline scrubbing.

2017-11-10 Thread Balazs Pataki
No need for always on top, 2-3 monitors or just scale the windows :P If you can provide an example maybe we could figure something out. On Friday, November 10, 2017 at 12:51:06 PM UTC+1, Simone Tartaglia wrote: > > Thanks Michael and Balazs, > I liked the logger option as it's faster and better t

[Maya-Python] Re: MMeshIntersector in Python API 2.0

2017-11-10 Thread mnhan
I had the same problem, I also tried mesh.extendToShape().node() but got the same RuntimeError. could not figure out why, I end up using MFnMesh.getClosestPoint() -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubs

[Maya-Python] Re: MMeshIntersector in Python API 2.0

2017-11-10 Thread Angelo
So I'm convinced this is a Maya bug. I was able to partially create it. I figured out you have to get the path to the shape node instead of the transform. Maya is usually able to handle this but it doesn't for MMeshIntersector for some reason. What still doesn't work is the second parameter for

[Maya-Python] QStringListModel missing in PySide2?

2017-11-10 Thread AK Eric
Updating my UI's for Maya 2018/PySide2. Everything's been humming along, until this: http://doc.qt.io/qt-5/qstringlistmodel.html from PySide2.QtCore import QStringListModel # Error: ImportError: file line 1: cannot import name QStringListModel # In PySide (1) this module lived in PySide.QtG

[Maya-Python] Re: QStringListModel missing in PySide2?

2017-11-10 Thread AK Eric
Disregard, guess I had a typo in my code, this actually works: from PySide2.QtGui import QStringListModel -- 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 it,

Re: [Maya-Python] Re: MMeshIntersector in Python API 2.0

2017-11-10 Thread Meng-Han Ho@Gmail
You are right, creation without feeding matrix to intersector will work. But, the same Runtime error will still happen when you run intersector.getClosestPoint(referencePnt, maxDist) On Sat, Nov 11, 2017 at 1:33 AM, Angelo wrote: > So I'm convinced this is a Maya bug. I was able to partially cre

Re: [Maya-Python] Popen - explicit env argument vs none?

2017-11-10 Thread Justin Israel
On Sat, Nov 11, 2017 at 12:28 AM Panupat Chongstitwattana < panup...@gmail.com> wrote: > Hi guys. > > I'm doing some simple test here and curious if there's any difference > between these 2? > > os.environ["JOEY"] = "SOMETHING" > Popen( maya, shell=True ) > > and > > os.environ["JOEY"] = "SOMETHIN