[Maya-Python] Re: MFnMesh::allIntersections - finding final intersection point

2016-11-09 Thread jonn
def rayIntersect(mesh, point, direction=(0.0, 0.0, -1.0)): # get dag path of mesh - so obnoxious om.MGlobal.clearSelectionList() om.MGlobal.selectByName(mesh) sList = om.MSelectionList() om.MGlobal.getActiveSelectionList(sList) item = om.MDagPath() sList.getDagPath(0, item) item.ext

[Maya-Python] Re: finding plane normal to a vector

2016-11-09 Thread jonn
def getLocalVecToWorldSpace(node, vec=om.MVector.kXaxisVector): matrix = om.MGlobal.getSelectionListByName(node).getDagPath(0). inclusiveMatrix() vec = (vec * matrix).normal() return vec def axisVectorColinearity(node, vec): vec = om.MVector(vec) x = getLocalVecToWorldSpace(node, vec=om.MVector.kXa

[Maya-Python] Re: Looking for a Python tutor for Maya

2016-11-09 Thread Juan Pablo
In Sydney I forgot to say. On Thursday, 10 November 2016 12:18:17 UTC+11, Juan Pablo wrote: > > Hi Guys, I'm looking for a tutor who can help me for a day or two to > automate a process in maya using python to render in renderfarm for > jewellery. > > I need to convert the python scripts in ba

[Maya-Python] Looking for a Python tutor for Maya

2016-11-09 Thread Juan Pablo
Hi Guys, I'm looking for a tutor who can help me for a day or two to automate a process in maya using python to render in renderfarm for jewellery. I need to convert the python scripts in batch files but I need it asap. Can get paid per day. please email to jpit...@gmail.com Thanks Juan --

Re: [Maya-Python] Drag-and-drop from custom QT window into Viewport

2016-11-09 Thread Justin Israel
On Thu, Nov 10, 2016 at 6:21 AM Alec Fredericks wrote: > Hi there, > I think I'm misunderstanding something fundamental about QT and Maya UI > interactions. > I've created a small PyQt window that contains some tabs and, in one of my > test tabs, I have a grid populated by a couple of custom QLab

[Maya-Python] Drag-and-drop from custom QT window into Viewport

2016-11-09 Thread Alec Fredericks
Hi there, I think I'm misunderstanding something fundamental about QT and Maya UI interactions. I've created a small PyQt window that contains some tabs and, in one of my test tabs, I have a grid populated by a couple of custom QLabel widgets. Those widgets are the bits I want to drag into the Ma

[Maya-Python] Re: calling python from a c++ deformer fails when in Viewport 2.0

2016-11-09 Thread Michał Frątczak
Hi all Sorry for digging this out, but we switched do maya2017 and this problem persists. Perhaps someone has solved this? I know calling python from c++ deformer looks fishy, but... On Tuesday, March 10, 2015 at 12:29:01 AM UTC+1, Michał Frątczak wrote: > > Hi > I have a c++ deformer node that