this may simply be my lack of understanding how to use
Attribute.set(), but based on the pattern i see of pymel to get and
set in the same way, and treating an attr like an object.. it seems
that i should be able to set an index of a stringArray attr the same
way i get it.

#code:
import pymel.core as pm
pynode = pm.nt.Network(n='testNetWorkNode')
pynode.setDynamicAttr('newData',['yo','hey'])
strArryAttr = pm.PyNode('testNetWorkNode.newData')
strArryAttr.get()[1]
# Result: u'hey' #

strArryAttr.set('heyThere')[1]
# RuntimeError: #
#end code

how would this be done using the pymel attr object?

already know i could use 'setAttr', or even a string multiAttrs
instead of a string Array,
there are of course, many other approaches as well,
but i am interested in using the string array attr as a pymel object
for setting and getting inicies, in this case.

-thanks for any help!


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

Reply via email to