great this works :o)
can I now ask you how to get this value in the compute() command?
I tried to translate the numeric example that you can find in the doc,
into this:
dataHandle = block.inputValue( attrObj )
myFilename = dataHandle.asString()

but in myFilename I have this:  _50425d20d47f0000_p_MString

I can't figure out how to get the proper value I enter in the GUI

many thanks
Bruno


On Feb 5, 10:23 am, Dean Edmonds <dean.edmo...@gmail.com> wrote:
> 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