Forum: Poser Python Scripting


Subject: this is what I'd like to do...ShaderSpider2....

dlfurman opened this issue on Sep 28, 2011 · 18 posts


dlfurman posted Thu, 29 September 2011 at 11:09 PM

UPDATE:

ShaderSpider partially works. 6 of the 10 options work.

Copy to All, Copy to Matching, Smart Copy to Skin, Rename Node and the Main Menu buttons work.

The sixth option, Copy to Material Group does the same as in Poser 7SR3, at least the same message is generated "No material groups defined for this object. You can use the EDIT GROUPS wacro to create new material groups".

I was testing on the V4 Bodysuit.

What is interesting in both Poser 7 and PoserPro 2012 is while that above message is generated, there are material groups in that object, at lease UVMapper can see them. But I digress.

The Edit Materials, Save Partial Shader (FX6), Load Partial Shader (FX6), and Save Mat Pose buttons generate the following error messages in PoserPro2012:

EDIT_GROUPS ERROR GENERATED:

Traceback (most recent call last):
  File "O:Program FilesSmith MicroPoser Pro 2012RuntimePythonPoseWorksShaderSpiderwacrosEdit_Groups.py", line 9, in
    ss6Gui.askEditGroups()
  File "RuntimePythonPoseWorksShaderSpiderDatass6Gui.py", line 25, in askEditGroups
    editor = GroupEditor(actor)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 626, in init
    self.actionPane.SetText(self.dlg)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 285, in SetText
    button.SetText(dialog, button.widgetName)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 255, in SetText
    self.msg.SetText(dialog, message)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 120, in SetText
    dialog.SetText(name=self.widgetName, text=message)
TypeError: no such text field

SAVE_FX6 ERROR GENERATED:

Traceback (most recent call last):
  File "O:Program FilesSmith MicroPoser Pro 2012RuntimePythonPoseWorksShaderSpiderwacrosSave_Fx6.py", line 12, in
    inputs = ss6Gui.askSelectInputs()
  File "RuntimePythonPoseWorksShaderSpiderDatass6Gui.py", line 14, in askSelectInputs
    selector = SelectInput(inputs)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 420, in init
    self.checkPane.SetText(self.dlg)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 332, in SetText
    button.SetText(dialog, button.widgetName)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 269, in SetText
    self.msg.SetText(dialog, message)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 120, in SetText
    dialog.SetText(name=self.widgetName, text=message)
TypeError: no such text field

LOAD_FX6 ERROR GENERATED:

Traceback (most recent call last):
  File "O:Program FilesSmith MicroPoser Pro 2012RuntimePythonPoseWorksShaderSpiderwacrosLoad_Fx6.py", line 14, in
    names = ss6Gui.askMaterials(actor)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Gui.py", line 50, in askMaterials
    selector = AskSelectMethod("Include...", methods=methods)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 857, in init
    self.radioPane.SetText(self.dlg)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 285, in SetText
    button.SetText(dialog, button.widgetName)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 255, in SetText
    self.msg.SetText(dialog, message)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 120, in SetText
    dialog.SetText(name=self.widgetName, text=message)
TypeError: no such text field

SAVE_MAT ERROR GENERATED:

Traceback (most recent call last):
  File "O:Program FilesSmith MicroPoser Pro 2012RuntimePythonPoseWorksShaderSpiderwacrosSave_Mat.py", line 11, in
    names = ss6Gui.askMaterials(actor)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Gui.py", line 50, in askMaterials
    selector = AskSelectMethod("Include...", methods=methods)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 857, in init
    self.radioPane.SetText(self.dlg)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 285, in SetText
    button.SetText(dialog, button.widgetName)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 255, in SetText
    self.msg.SetText(dialog, message)
  File "RuntimePythonPoseWorksShaderSpiderDatass6Xml.py", line 120, in SetText
    dialog.SetText(name=self.widgetName, text=message)
TypeError: no such text field

 

I notice that ss6Gui.py and ss6Xml.py are common to all 4 errors. These would generate additional dialog boxes for inputs and selections for those 4 selections.

How can I fix this?

Thanks again!

 

"Few are agreeable in conversation, because each thinks more of what he intends to say than that of what others are saying, and listens no more when he himself has a chance to speak." - Francois de la Rochefoucauld

Intel Core i7 920, 24GB RAM, GeForce GTX 1050 4GB video, 6TB HDD space
Poser 12: Inches (Poser(PC) user since 1 and the floppies/manual to prove it!)