I'm trying to invoke the Paint Tool by scripting in XSI (W key) but the only approach
I've found is the command:
"Application.Commands("Paint Tool").Execute()"
That gives me the following error:
"# ERROR : 2003 - Traceback (most recent call last):
# File "<Script Block >", line 1, in <module>
# Application.Commands("Paint Tool").Execute()
# File "<COMObject <unknown>>", line 2, in Execute
# File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 272, in _ApplyTypes_
# result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
# COM Error: Interface not supported. - [line 1]"
Someone can help me?
Thanks in advance, Alberto.
--
Alberto Santos (Dpto. Técnico)
Kandor Graphics
Given that the command is undocumented, how did find this out? I
looked at the source of the "Paint Push Tool", it's in tools.vbs in
the Softimage install folder
>Given that the command is undocumented, how did find this out?
A workmate told me.
Thanks again.
----- Mensaje original -----
De: "Luc-Eric Rousseau" <luce...@gmail.com>
Para: soft...@listproc.autodesk.com
Enviados: Miércoles, 20 de Enero 2010 2:57:08
Asunto: Re: Paint Tool by script
xsi = Application
log = xsi.LogMessage
lCmd = [c.Name for c in xsi.Commands if "Paint" in c.Name and "Tool" in c.Name]
for name in lCmd:
log(name)
# INFO : Paint Tool
# INFO : Paint Vertex Color Tool
# INFO : Paint Select Tool
# INFO : Paint Tool
# INFO : Paint Shape Manipulator Tool
# INFO : Paint Tool
# INFO : Paint Push Tool
# INFO : Paint Texture Tool
2010/1/20 Alberto Santos <asa...@kandorgraphics.com>
Envoyé de mon iPhone