Hello ,

In the process of learning i made used pose manager to display icons like 
asset Importer of cmiVFX tutorial, well it finally works didnt took that of 
a pain and I learnt the logistics behind the implententaion of 
AssetImporter as well as how posemanager works, but I have landed into some 
weirdness i cannot see, when I lead GUI it loads up fine but when i save 
and try to reload the thumbnails i get Runtime Error saying iconLayout now 
found ,

    def thumbnailGrid(self):
        iconLayout = 
maya.cmds.rowColumnLayout("iconLayout",nc=len(self.poseImport.list()),parent='mainWinLayout')
        library = 
maya.cmds.tabLayout("library",innerMarginWidth=0,scr=True,parent='iconLayout',
                                                         
innerMarginHeight=0,cr=True)
           
        self._poseGrid= library

and for refreshPoses()

    def refreshPoses(self,*args):

        # clear out any previous children of the tab layout
        children = maya.cmds.tabLayout(self._poseGrid, q=True, 
childArray=True)
        if children:
            for child in children:
                print child
                maya.cmds.deleteUI(child)        

        
        iconLayout = maya.cmds.rowColumnLayout("iconLayout",e=True, 
nc=len(self.poseImport.list()),parent="mainWinLayout")
        library = 
maya.cmds.tabLayout(self._poseGrid,parent="iconLayout",tl=["iconLayout","Click 
Icon below to apply"],w=300, bgc=(0.2,0.2,0.2),e=True, h=200)
        for pose in self.poseImport.list():
            cmd=partial(self.applyPose,pose)

            maya.cmds.iconTextButton(parent ="iconLayout",
                                     style='iconAndTextVertical',
                                     width=self._iconSize[0],
                                     height=self._iconSize[1],
                                     image1=pose.thumb,
                                     label ='%s' %(pose.name),
                                     command = cmd)

from cmiVFX tut i replaced gridLayout with [tabLayout+ rowColumnLayout] 
whih gives me icons as well as scrollbar when the number of items increases.
please help me out.. could find where the error lies, I have full code at 
pastebin here <http://pastebin.com/zfYCCKxZ>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to