Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Can't get custom string attr to show up in channel box

Can't get custom string attr to show up in channel box

shomari.rivero65CK4
Explorer Explorer
220 Views
1 Reply
Message 1 of 2

Can't get custom string attr to show up in channel box

shomari.rivero65CK4
Explorer
Explorer

cmds.addAttr(
   sphere_3,
   keyable = True,
    dataType=‘string’,
    shortName= ‘alt’,
    longName=‘alternativeName’)              # creating attr in node editor but not channel box.

0 Likes
221 Views
1 Reply
Reply (1)
Message 2 of 2

Kahylan
Advisor
Advisor

Hi!

 

Unfortunately this is not possible. String attributes are never keyable, therefore they also won't show up in the channelbox.

 

If you have an attribute that is supposed to switch between multiple known strings, use an Enum attribute instead.

 

I hope it helps!

0 Likes