The problem may not be with optionMenu(). The following example works fine (for me).
window = cmds.window() cmds.columnLayout() cmds.optionMenu( label='Colors', changeCommand=printNewMenuItem ) cmds.menuItem( label='Yellow.Blue' ) cmds.menuItem( label='Purple-Orange' ) cmds.showWindow( window ) How are you getting the list of folder names? Can you include a short example of what you're doing? On Monday, June 4, 2012 12:38:33 PM UTC-7, olheiros wrote: > > > Hi all. > > I'm trying to dynamically fill an optionMenu with folder names in my > dir, using maya cmds, but it > seems it doesn't like characters like "." or "-". It always changes to > "_". Is this just me or any of came > across this issue. > > i tried on linux and mac MAYA 2012 x64 SAP > > i wouldn't bother if i didn't had to query those later and the folder > names don't match ! :( > > best regards > > -- > //////////////////////////////////////////////////////////// > Ricardo Viana > > > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
