While developing my latest renamer in PyQt with the PyQtForSoftimage addon it became apparent that I needed to type cast my strings otherwise they come through as the QString instances. In Maya you can set how it translates them by setting a few variables in the header using sip. Can't remember them off the top of my head. As I posted in the past, you have to do this before anything imports the sip modules otherwise its set automatically. Hacking the PyQtForSoftimage plugin makes this possible if I remember correctly.
Not sure if this relates to what you're having issues with Tony. -------------------------------------------- Eric Thivierge http://www.ethivierge.com On Thu, Oct 25, 2012 at 8:40 AM, Steven Caron <car...@gmail.com> wrote: > ill try it tonight after i swap the pyside imports for pyqt ones. > > > On Wed, Oct 24, 2012 at 2:34 PM, Tony Barbieri <great...@gmail.com> wrote: > >> Here is an example file. We raise AttributeError after we have added the >> layout by passing the result of the _get_output_layout method result >> directly into addLayout (#34). >> >> -tony >> >> >> On Wed, Oct 24, 2012 at 5:16 PM, Steven Caron <car...@gmail.com> wrote: >> >>> hmm i thought pyqt addressed this, guess i was wrong? >>> >>> On Wed, Oct 24, 2012 at 2:08 PM, Tim Crowson < >>> tim.crow...@magneticdreams.com> wrote: >>> >>>> I know Eric T. has mentioned this before, and I can confirm: Softimage >>>> will crash to desktop if you try to run standard python string methods on a >>>> QString. In some cases, you can use the QString equivalent, for example ' >>>> *endswith*' (Python) vs '*endsWith*' (Qt), but in other cases you may >>>> just have to wrap it all in a str(). >>>> -Tim C. >>>> >>>> >> >> >> -- >> -tony >> > >