customshelf

63 views
Skip to first unread message

sumant shenoy

unread,
Apr 7, 2019, 10:20:20 PM4/7/19
to Python Programming for Autodesk Maya
i am trying to attach a shelf tab layout to the Maya default shelf the code that i have given below does it but i keep getting error 

cmds.shelfTabLayout( 'mainShelfTab', image='smallTrash.png', imageVisible=True,p='ShelfLayout' )

cmds.shelfLayout( 'Dynamics' )

cmds.setParent( '..' )

cmds.shelfLayout( 'Rendering' )

cmds.setParent( '..' )

cmds.shelfLayout( 'Animation' )

cmds.setParent( '..' )

cmds.showWindow()



The error message when i toggle tabs in shelf (i dont get this error  if i use shelfLayout indtead of shelfTabLayout )

D:/Program Files/Autodesk/Maya2018/scripts/startup/shelfStyle.mel line 122: Object 'mainShelfTab' not found.


any advice would be appreciated
Thank you 


Reply all
Reply to author
Forward
0 new messages