On Wed, Feb 4, 2009 at 07:57, bruno ebe <bruno...@gmail.com> wrote:
>
> did anyone ever tried to have a string parameter in a node with a
> scripted plugin
> I tried with GenericAttribute or Typed Attribute and can't find the
> proper way to declare and use the attribute

attrFn = maya.OpenMaya.MFnTypedAttribute()
attrObj = attrFn.create('longName', 'shortName', maya.OpenMaya.MFnData.kString)

-- 
-deane

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to