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
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
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
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
--
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
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
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