Is there a way to do this for a particular frame or even better for list of 
frames?

something like getAttr time flag?

Yury

On Monday, April 13, 2009 6:01:28 AM UTC-7, scroll-lock wrote:
>
> Thanks for the reply Chad! That single function from pymel saved me 20 
> lines of code :) 
>
> On Apr 10, 6:42 pm, Chad Dombrova <chad...@gmail.com> wrote: 
> > for an example of an api function that gets almost any type of plug   
> > value check out pymel.core.datatypes.getPlugValue.  it's good reference. 
> > 
> > -chad 
> > 
> > On Apr 10, 2009, at 6:10 AM, scroll-lock wrote: 
> > 
> > 
> > 
> > > I managed to get the value like this: 
> > 
> > > node = self.thisMObject() 
> > > fnThisNode = OpenMaya.MFnDependencyNode(node) 
> > > attr = fnThisNode.attribute("testAttr") 
> > > plug = OpenMaya.MPlug(node, transp) 
> > > value = plug.asFloat() 
> > > print value 
> > 
> > > But I really want to know why the other method I know works in C++ 
> > > doesn't work for me here. And am I doing it right when I'm using the 
> > > name of the attribute (as string) to get it's value ? 
> > 
> >

-- 
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, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f9129702-bea1-4002-a083-9bffe275e40f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to