nurbs uvs are implicit by default
http://download.autodesk.com/us/maya/2009help/Commands/nurbsUVSet.html

On Tue, Feb 24, 2009 at 6:35 PM, chadrik <[email protected]> wrote:

> I'm trying to create a wrapper around every api MFn method  :)
>
> Not too much wiggle room there, unfortunately.  PyMEL now wraps a huge
> portion of the API, so i'm writing some unittests to test as much of it as
> possible and this is one of the errors that came up.  so far all the errors
> that were PyMEL's fault are fixed, i'm just trying to track down these last
> few where it's unclear who's at fault.
>
> -chad
>
>
>
>
>
>
> Perhaps the problem needs to worked out backwards. What are you trying to
> do?
>
> -brian
> www.meljunky.com
>
>
>
>  -------- Original Message --------
> Subject: [Maya-Python] Re: MFnNurbsSurface Bug?
> From: <[email protected]>
> Date: Tue, February 24, 2009 8:32 pm
> To: [email protected]
>
> To add to what Chad is talking about...
>
> You can query the nurb's sphere attributes such as CVs, degrees, etc that
> will update the current results if they are changed. The fullPathName does
> return the path to the shape node... confirming the nfn is updating with the
> correct object. I ham having the same problem in 2008, where any of the UV
> queries return object does not exist.
>
> Unless we are in it together your are not making a stupid mistake
>
> -brian
> www.meljunky.com
>
>  -------- Original Message --------
> Subject: [Maya-Python] MFnNurbsSurface Bug?
> From: Chadrik <[email protected]>
> Date: Tue, February 24, 2009 7:17 pm
> To: python_inside_maya <[email protected]>
>
>
>
> Need someone to double check me to make sure i'm not making a stupid
> mistake:
>
> import maya.cmds as cmds
> import maya.OpenMaya as api
>
> #make sphere
> t, h = cmds.sphere()
> s = cmds.listRelatives( t, shapes=1)[0]
> sel = api.MSelectionList()
>
> # get mfn
> sel.add( s )
> dag = api.MDagPath()
> sel.getDagPath( 0, dag )
> nfn = api.MFnNurbsSurface(dag)
>
> # get UVs
> u = api.MFloatArray()
> v = api.MFloatArray()
> nfn.getUVs(u,v)
> # Error: (kFailure): Object does not exist
> # Traceback (most recent call last):
> # File "<maya console>", line 4, in <module>
> # RuntimeError: (kFailure): Object does not exist #
>
> getting this error in maya 2009. i can't get any of the UV methods to
> work, setUV, getUV, getUVs... Nurbs objects are supposed to have UV
> sets by default, so i'm not sure what else i need to do....
>
> -chad
>
>
>
>
>
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to