Triple post!

It seems to fail in my second instance of Softimage. I'm guessing I missed the fine-print about running PyQtForSoftimage under two instances of Soft....
-Tim

On 2/5/2013 9:41 PM, Tim Crowson wrote:
Correction. I just double-checked and reloading the plugin manually does NOT fix this. I have to restart Soft to get around it.
-Tim

On 2/5/2013 9:39 PM, Tim Crowson wrote:
Not sure what's going on here, but periodically when I calling one of our plugins in Softimage, I get the error message below. I can always reload the plugin from the plugin manager and it will work fine. And it fact, everything usually goes swimmingly. But it's happened 3-4 times in the last couple of hours now and I'm just not sure what's causing it. Restarting Soft or reloading the plugin 'fixes' it. Something basic I'm not grasping, no doubt...

/# ERROR : Traceback (most recent call last)://
//# File "<Script Block 2>", line 272, in MD_PublishRenderLayers_Qt_Execute//
//#     sianchor = Application.getQtSoftimageAnchor()//
//#   File "<COMObject Application>", line 2, in getQtSoftimageAnchor//
//# COM Error: Out of present range. (0x-7ffdfff6) - [line 271 in /pathToMyPlugin.py]//(see below for the code)/
//# ERROR : OLE error 0x80020101//
//Application.MD_PublishRenderLayers_Qt()//
//# ERROR : Traceback (most recent call last)://
//#   File "<Script Block >", line 1, in <module>//
//#     Application.MD_PublishRenderLayers_Qt()//
//# File "<COMObject Application>", line 2, in MD_PublishRenderLayers_Qt//
//# COM Error: Exception occurred. (0x-7ffdfff7) - [line 1]//
//# ERROR :  (Python ActiveX Scripting Engine)//
//# ERROR :   >[1] Application.MD_PublishRenderLayers_Qt()//
//# ERROR :    [2] (null)//
//# ERROR :     Traceback (most recent call last)://
//#   File "<Script Block >", line 1, in <module>//
//#     Application.MD_PublishRenderLayers_Qt()//
//# File "<COMObject Application>", line 2, in MD_PublishRenderLayers_Qt//
//# COM Error: Exception occurred. (0x-7ffdfff7)/

And here's the block it's complaining about:

/269.    def MD_PublishRenderLayers_Qt_Execute()://
//270. uifilepath = os.path.join(Application.Plugins( 'MD_PublishRenderLayers_Qt' ).OriginPath , 'MD_PublishRenderLayers_UI.ui')//
//271.//
//272.        sianchor = Application.getQtSoftimageAnchor()//
//273.        sianchor = sip.wrapinstance( long(sianchor), QWidget )//
//274.//
//275. for child in sianchor.children(): # Prevent multiple instances.//
//276.            if isinstance(child, PublishRenderLayersDialog )://
//277.                return//
//278. dialog = PublishRenderLayersDialog(uifilepath, sianchor) //
//279.         dialog.show()/

--
Signature

*Tim Crowson
*/Lead CG Artist/

*Magnetic Dreams Animation Studio, Inc.
*2525 Lebanon Pike, Building C. Nashville, TN 37214
*Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
[email protected]



--
Signature

Reply via email to