Message 1 of 2
Not applicable
01-20-2016
07:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there, I was hoping someone could point me in the right direction here. Probably some syntax issues, but stuck on it for over 2 hours..
Python
import maya.cmds as cmds
pyPos = cmds.xform('HET_FAD_0',q=1,ws=1,rp=1)
MEL
float $transPyPos[] = 'python "pyPos"' string $myType = 'getAttr -type ($transPyPos)';
The pyPos command works, it returns an (float) array [100.11177362714494, 47.04773793901715, 73.88260686965215] , however I don't know the type that transPyPos or xform when used directly in MEL for that matter return. This makes it impossible for me to do it in MEL only, which is needed in order to use the output in another MEL script of mine..
The error reads Invalid redeclaration of variable "$transPyPos" as a different type
Not working MEL:
float $myPos[] = xform('HET_FAD_0',q=1,ws=1,rp=1)^syntax error?
I have searched but couldn't find what type xform returns.
Thanks for your help.
Solved! Go to Solution.