try this:
strArryAttr[1].set('stranger')
On Mon, Mar 14, 2011 at 6:42 PM, mtherrell <[email protected]> wrote:
> yes, but i only want to set a single index.
> setting the whole thing kind of defeats my purpose.
>
> i realize that
> strArryAttr.get()[1]
>
> ..has nothing to do with pymel itself, that its just python at work..
> but how do i set only a single index of a stringArray using .set()?
>
> thanks
>
> -mt
>
> On Mar 14, 3:52 pm, Michiel Duvekot <[email protected]> wrote:
> > strArryAttr.set(['hello','stranger'])
> >
> > --
> > Michiel
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
http://groups.google.com/group/python_inside_maya