try this: horizontalLayout(name=self.btnForm)
- Ofer www.mrbroken.com On Tue, Jan 11, 2011 at 10:50 PM, Poff <[email protected]> wrote: > Hey All, > > With normal UI's I'm usually able to name them so I don't have any > clashing. I'm having an issue with horizontalLayout where if I try to > name the UI on creation, as per usual I get an error: > > line: > horizontalLayout(self.btnForm) > > # Error: line 1: RuntimeError: file /Applications/Autodesk/maya2011/ > Maya.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/ > python2.6/site-packages/pymel/internal/pmcmds.py line 98: Object > 'aim_button_formLayout' not found. # > > if I change the line: > horizontalLayout() > > everything is fine. > > Any help would be great. > Cheers, > Poff > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
