try using dataType (dt) and not attributeType (at):
pym.addAttr(sel[0], longName="ieCacheType", dt="string" )
Since your selected node has methods you could just call straight off the
node itself
sel[0].addAttr("ieCacheType", dt="string")
On Wed, Jun 8, 2011 at 11:36 AM, Chad_Fox <[email protected]> wrote:
>
> Hi all,
>
> I'm trying to create a string attr, but im getting and error saying
> the type specified is unknown. The pymel docs say otherwise.
>
> sel = pym.selected()
> pym.addAttr(sel[0], longName="ieCacheType", at="string" )
>
> # Error: RuntimeError: Type specified for new attribute is unknown. #
>
> Any thoughts on why?
> Thanks!
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
--
Ed Caspersen
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe