Awesome, thanks... I actually tried that at one point, but kept
getting the warning message - though now I realize it's because the
warning was being triggered by the sample code (which also adds a
message attribute) as well.  Heh...
- Paul

On Sun, Oct 5, 2008 at 8:37 PM, Dean Edmonds <[EMAIL PROTECTED]> wrote:
>
> In your addAttr command add the following: hidden=True
>
> That way the Attribute Editor won't try to display it, which is where
> the warning msg is coming from.
>
>
> On Tue, Sep 30, 2008 at 12:41 PM, barnabas79 <[EMAIL PROTECTED]> wrote:
>>
>> Hey all - I was wondering if there was a way to add a dynamic message
>> attribute without receiving a warning - ie, if I do:
>>
>> import maya.cmds as cmds
>> cmds.addAttr(longName="msgAttr", attributeType="message")
>>
>> ... I receive:
>>
>> // Warning: file: C:/3D/Maya2008/scripts/AETemplates/
>> AEreplaceCompound.mel line 97: Message attributes have no data
>> values. //
>>
>> Anyone know a way to get around this, ie add a message attribute
>> without receiving an error? Or some way to temporarily disable the
>> error?
>>
>> I know I could do this from the API, but then I would lose the ability
>> to undo, which I'd rather be able to keep.
>> >
>>
>
>
>
> --
> -deane
>
> >
>

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

Reply via email to