It is currently 20 Jun 2013, 10:36

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 12:33 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
Looking at your logged messages, this doesn't look like a Python problem...
Is the viewport the plugin captures from visible?
There's a mention in the video that it must be...

BTW - Editing the " __init__.py" within the Softimage Python install should do the trick, just make sure that "Use Python Installed with Softimage" is checked in the "General Preferences > Scripting Preferences".
;)

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 18:02 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 496
ivemaker wrote:
HI eric, in your tools, error with __init__.py, it because, i think, you're wrong hardware render viewport.

i use this code to render viewport and it work nice! And when i use this code I dont edit a __init__.py file
Code:
currFrame = app.ActiveProject.Properties('Play Control').Parameters('Current').Value
   oViewportCapture = app.Dictionary.GetObject('ViewportCapture');
   app.Dictionary.GetObject("ViewportCapture.Start").Value = currFrame
   app.Dictionary.GetObject("ViewportCapture.End").Value = currFrame
   app.Dictionary.GetObject("ViewportCapture.Filename").Value = '1.jpg'


and etc. This code is based on my study of Python.

Cheers
Arthur


I'm sure this works too. However editing the __init__.py is universal and fixes more than just my scripts. Both our methods work, just one works without the __init__.py edit. I'll take your suggestion into consideration on further updates to my plug-in.

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 20:02 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
The whole Python Dispatch fix issue still confuses me:
The problem originates
Quote:
due to XSI returning an object with an incorrectly set multi-dispatch interface (quoted from here)


However, the Softimage WIKI states the following:
Quote:
In versions prior to v6.0 XSI sometimes returned objects with an incorrectly set (as per PythonWin standards) multi-dispatch interface. This problem has been fixed in v6.0. (quoted from here)


So maybe someone could answer this question once and for all:
is the good-old mult-dispatch fix still necessary, or not? :-\

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 20:23 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 496
Hirazi Blue wrote:
The whole Python Dispatch fix issue still confuses me:
The problem originates
Quote:
due to XSI returning an object with an incorrectly set multi-dispatch interface (quoted from here)


However, the Softimage WIKI states the following:
Quote:
In versions prior to v6.0 XSI sometimes returned objects with an incorrectly set (as per PythonWin standards) multi-dispatch interface. This problem has been fixed in v6.0. (quoted from here)


So maybe someone could answer this question once and for all:
is the good-old mult-dispatch fix still necessary, or not? :-\


I believe so. Otherwise people using my plug-in wouldn't have to edit the __init__.py file. :)

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 21:25 
Offline
User avatar

Joined: 05 Sep 2009, 06:18
Posts: 79
Hello everyone

Second attempt I uninstall python (C: \ Python)
I use python I provided with XI edit file __init__.py

I have another error message

When I store pose:

Quote:
# WARNING : ET_AnimStore_PoseCam was not found and will be imported. Please press store pose again.
# INFO : 4152 - Data loaded from file C:\Users\Megacortex\Autodesk\Softimage_2011\Addons\ET_AnimStore\Application\Plugins\..\..\Data\Models\ET_PoseCam.emdl was created with build number: 7.0.2008.1125 - compatibility version: 700



when i inspect pose:

Quote:
# ERROR : Erreur de syntaxe - [line 12]
# WARNING : 3000 - Error parsing D:\_3D\XSI\Projet Blog\AnimStore\Character\Biped\Pose\Default\PoseName\PoseName.htm
# ERROR : Fin d'instruction attendue - [line 4]
# ERROR : Property Page Script Logic Error (Erreur de compilation Microsoft VBScript)
# ERROR : [2] (null)
# ERROR : [3] import os
# ERROR : >[4] from win32com.client import constants as c
# ERROR : [5] from win32com.client import Dispatch as d
# ERROR : [6]
# ERROR : Fin d'instruction attendue



With this change I do not have the same mistakes

I have a folder that is created AnimStore in my project
if I open this folder I see PoseName.htm it's a blank screenshots ??



Thank you in advance

_________________
'ERROR : 2011 - Unable to write well in English [CLSID\{F123FC55-ABD9-4D7F-9CDD-7F9D61E71FFE}] : %SUMATRAPATH%\ English.dll not found'


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 21:31 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
Looks like your scripting language is set to VBScript... :-\
Did you check the "Use Python Installed with Softimage" checkbox in the "General Preferences > Scripting Preferences" after uninstalling your " other" Python?

PS - @ Eric: you're right, your plugin doesn't work without the fix...
That still leaves the question unanswered, what is meant with the statement I quoted from the Softimage Wiki...

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 21:36 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 496
zossowosso wrote:
Hello everyone

Second attempt I uninstall python (C: \ Python)
I use python I provided with XI edit file __init__.py

I have another error message

When I store pose:

Quote:
# WARNING : ET_AnimStore_PoseCam was not found and will be imported. Please press store pose again.
# INFO : 4152 - Data loaded from file C:\Users\Megacortex\Autodesk\Softimage_2011\Addons\ET_AnimStore\Application\Plugins\..\..\Data\Models\ET_PoseCam.emdl was created with build number: 7.0.2008.1125 - compatibility version: 700



when i inspect pose:

Quote:
# ERROR : Erreur de syntaxe - [line 12]
# WARNING : 3000 - Error parsing D:\_3D\XSI\Projet Blog\AnimStore\Character\Biped\Pose\Default\PoseName\PoseName.htm
# ERROR : Fin d'instruction attendue - [line 4]
# ERROR : Property Page Script Logic Error (Erreur de compilation Microsoft VBScript)
# ERROR : [2] (null)
# ERROR : [3] import os
# ERROR : >[4] from win32com.client import constants as c
# ERROR : [5] from win32com.client import Dispatch as d
# ERROR : [6]
# ERROR : Fin d'instruction attendue



With this change I do not have the same mistakes

I have a folder that is created AnimStore in my project
if I open this folder I see PoseName.htm it's a blank screenshots ??



Thank you in advance


I don't suggest using the factory installed Python that comes with Softimage. If you do and you edit the file within that factory install, you probably need a restart of your system and after restart ensure that Python is listed as a scripting language. You probably need to have Pywin32 is still installed too.

Honestly it's in my opinion that you should install Python separately and follow these directions:
http://www.vimeo.com/12097088

Your error is saying that the .htm file is failing to run a VB Script. Funny because the .htm file is supposed to be running a Python script within it. Please follow the video. Also ensure that you are installing the correct version for Windows 7 64-bit:

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=14003492

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 21:40 
Offline
Administrator
User avatar

Joined: 04 Jun 2009, 12:15
Posts: 3242
As it looks you're not using Softimage 2011 I wouldn't necessarily draw too many conclusions about it. If there's a Python within your Softimage 2011 you can use it and you can edit the necessary file within this "embedded" Python without a problem... I can attest to that... ;)
edit: And I can say: the plugin works (after the fix) so it's nothing to do with the embedded version of Softimage 2011

_________________
"Forsan et haec olim meminisse iuvabit." (Virgil)


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 22:38 
Offline
User avatar

Joined: 05 Sep 2009, 06:18
Posts: 79
Hello Eric

ok I tried with a fresh installation of python
it's stange beacause if i don't edit the __init__.py file i see your plug
but if I edit I no longer see it

:-\ :-\ :ymblushing:


I think I have a problem here I'm sure the plug is correct
I'll try to find the problem thank you again for this attention


Quote:

the way I install


Instructions for installing python on Windows Vista and XP 64bit.
NOTE: All required files are supplied with PythonInstall64.zip


1) Put User Account Control (UAC) to off (Vista only)
http://technet2.microsoft.com/WindowsVista/en/library/0d75f774-8514-4c9e-ac08-4c21f5c6c2d91033.mspx?mfr=true

2) Install VC 2005 and VC 2008 Redist
vcredist_x86.exe
vcredist_x64.exe

3) Install Python 2.6
python-2.6b2.64
NOTE: Python 2.6 version is now required for vista and XP 64, older versions of python cannot be supported.

4) Add the python folder installation (e.g. C:\python26) to the PATH environment variable as the installer won't do it by default.

5) Install pywin32: pywin32-212.win-64-py2.6.exe


New Error

Quote:
# INFO : ET_AnimStore_PoseCam was found.
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 341, in ET_AnimStore_StorePose_OnClicked
# oPoseTextMesh.Properties["visibility"].viewvis = 1
# File "C:\Python26\lib\site-packages\win32com\gen_py\269C4D8C-E32D-11D3-811D-00A0C9AC19A9x0x1x0\PropertyCollection.py", line 96, in __getitem__
# return self._enum_.__getitem__(index)
# File "C:\Python26\Lib\site-packages\win32com\client\util.py", line 37, in __getitem__
# return self.__GetIndex(index)
# File "C:\Python26\Lib\site-packages\win32com\client\util.py", line 42, in __GetIndex
# if type(index)!=type(0): raise TypeError, "Only integer indexes are supported for enumerators"
# TypeError: Only integer indexes are supported for enumerators
# - [line 340 in C:\Users\Megacortex\Autodesk\Softimage_2011\Addons\ET_AnimStore\Application\Plugins\ET_AnimStore.py]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : [338] else:
# ERROR : [339]
# ERROR : >[340] # Unhide pose text mesh to capture with icon
# ERROR : [341] oPoseTextMesh.Properties["visibility"].viewvis = 1
# ERROR : [342]
# ERROR : [343] oModel = PPG.Inspected(0).Model
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 341, in ET_AnimStore_StorePose_OnClicked
# oPoseTextMesh.Properties["visibility"].viewvis = 1
# File "C:\Python26\lib\site-packages\win32com\gen_py\269C4D8C-E32D-11D3-811D-00A0C9AC19A9x0x1x0\PropertyCollection.py", line 96, in __getitem__
# return self._enum_.__getitem__(index)
# File "C:\Python26\Lib\site-packages\win32com\client\util.py", line 37, in __getitem__
# return self.__GetIndex(index)
# File "C:\Python26\Lib\site-packages\win32com\client\util.py", line 42, in __GetIndex
# if type(index)!=type(0): raise TypeError, "Only integer indexes are supported for enumerators"
# TypeError: Only integer indexes are supported for enumerators
#










_________________
'ERROR : 2011 - Unable to write well in English [CLSID\{F123FC55-ABD9-4D7F-9CDD-7F9D61E71FFE}] : %SUMATRAPATH%\ English.dll not found'


Top
 Profile  
 
 Post subject: Re: ET_AnimStore
PostPosted: 06 Jun 2010, 22:52 
Offline
Moderator
User avatar

Joined: 25 Nov 2009, 02:41
Posts: 496
In your video you don't mention editing the __init__.py file. Did you do this? This is essential!!!! This is where the error is coming from.

Also after you deactivate the factory Python install, restart Softimage.

Also, you have the ET_AnimStore set to capture from viewport A. Viewport A isn't visible. You must have it visible.

_________________
===================
Eric Thivierge
ethivierge@gmail.com
http://www.ethivierge.com
http://www.exocortex.com/products/species/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group