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 


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/b3eeb514-9b8c-4afa-9469-da7217088eac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to