Bay, you're welcome. any massive questions you can come to me too!

On Mon, May 6, 2013 at 5:31 PM, Bay <gannboonb...@gmail.com> wrote:

> Thank you again for taking the time and effort to help me out Justin but
> Geordie pointed out how I could get what I wanted via Massive instead,
> rather than through Python. Thanks again!
>
> On Monday, May 6, 2013 1:17:29 PM UTC-7, Justin Israel wrote:
> > I'm not sure I understand the problem with the examples I gave, in
> achieving what you want.
> >
> > If you are concerned with being able to retrieve the 'b_Waist_JNT'
> attribute, and that it could appear at any point within each agent block,
> why not just parse the file, and get the attribute you want for each agent?
> >
> >
> >
> > agents = parse_apf("frame.1.apf")
> >
> >
> >
> > for agent, attrs in agents.iteritems():
> >
> >     print agent, attrs['b_Waist_JNT']
> >
> >
> >
> > Zergling_64 [-1987.39563, -0.160679, -336.820892, 0.0, -2.651, 0.0]
> >
> > Zergling_39 [-581.739136, 79.09861, -315.018768, 0.0, 1.405, 0.0]
> >
> > Zergling_38 [-631.878357, 49.06324, -539.750732, 0.0, 1.584, 0.0]
> >
> > ...
> >
> >
> >
> >
> >
> >
> >
> > On May 7, 2013, at 6:13 AM, Bay wrote:
> >
> >
> >
> > > b_Waist_JNT
>
> --
> 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 post to this group, send email to python_inside_maya@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 post to this group, send email to python_inside_maya@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to