Re: command port to XSI

2015-09-04 Thread Christian Keller
In the workgroup examples you've on xsi server example which might come handy 
for you.
Can recall the exact name. I think I had to install c# to compile it for 64 bit

--
Christian Keller 
Visual effects|direction
m  +49 179 69 36 248

chris3...@me.com
Vimeo.com/channels/96149

> Am 03.09.2015 um 16:24 schrieb Tim Crowson <tim.crow...@magneticdreams.com>:
> 
> I recall someone on the AD side mention that the "Send To"  mechanism between 
> Maya and Soft is not exposed and is essentially black-boxed.
> -Tim
> 
>> On 9/3/2015 8:34 AM, Ponthieux, Joseph G. (LARC-E1A)[LITES] wrote:
>> So no command Port like Maya?
>>  
>> So when Maya “sends” scene data to Softimage and creates a connection to 
>> Softimage, how is it doing that?
>>  
>> --
>> Joey Ponthieux
>> LaRC Information Technology Enhanced Services (LITES)
>> MYMIC Technical Services
>> NASA Langley Research Center
>> __
>> Opinions stated here-in are strictly those of the author and do not
>> represent the opinions of NASA or any other party.
>>  
>> From: softimage-boun...@listproc.autodesk.com 
>> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Luc-Eric 
>> Rousseau
>> Sent: Wednesday, September 02, 2015 7:35 PM
>> To: softimage@listproc.autodesk.com
>> Subject: RE: command port to XSI
>>  
>> The c# sample in the sdk is what creates the server that listens to a 
>> socket.  There is no command port feature xsi otherwise
>> 
>> Le 2015-09-02 18:31, "Ponthieux, Joseph G. (LARC-E1A)[LITES]" 
>> <j.ponthi...@nasa.gov> a écrit :
>> Eric,
>>  
>> Thanks. I found the files but can’t really tell if I am supposed to run the 
>> server in order to make the client work.  And I don’t have Python installed 
>> anyway.
>>  
>> Had no luck converting the Perl script to something that XSI can understand. 
>> My guess is that XSI is not receiving input. In Maya you have to turn the 
>> TCP port on via a preference or env variable before you can use it. But I 
>> can’t find anything of that equivalent in XSI.
>>  
>> Barring these attempts, I need to save a scene that has locked up at render. 
>> Any advice how I can get it to quit and save on exit?
>>  
>>  
>> --
>> Joey Ponthieux
>> LaRC Information Technology Enhanced Services (LITES)
>> MYMIC Technical Services
>> NASA Langley Research Center
>> __
>> Opinions stated here-in are strictly those of the author and do not
>> represent the opinions of NASA or any other party.
>>  
>> From: softimage-boun...@listproc.autodesk.com 
>> [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eric Thivierge
>> Sent: Wednesday, September 02, 2015 5:34 PM
>> To: softimage@listproc.autodesk.com
>> Subject: Re: command port to XSI
>>  
>> There is a sample Python one in the SDK example workgroup. It's not a 
>> straight forward process and the one time I was working on a team to do this 
>> it was quite convoluted to get it working as desired.
>>  
>> Eric T.
>> 
>> 
>> Eric Thivierge
>> http://www.ethivierge.com
>>  
>> On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] 
>> <j.ponthi...@nasa.gov> wrote:
>>  
>> Maybe this will help. I am looking to do something like this. This was a 
>> Perl script run in DOS.
>>  
>>  
>>  
>>  
>> use Socket;
>>  
>> $hostName = "localhost";
>> $portNumber = 8000;
>>  
>> #CREATE SOCKET CONNECTION TO MAYA
>> $proto = getprotobyname('tcp');
>> socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
>> $port = getservbyname('smtp', 'tcp');
>> $sin = sockaddr_in($portNumber,inet_aton($hostName));
>> connect(Socket_Handle,$sin);
>>  
>> $savedir = "E:/MAYA_Emergency_Save/";
>> print "Attempting to save MAYA file to directory ${savedir}\n";
>>  
>> $command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string 
>> \$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file 
>> -save -type \"mayaAscii\";\n";
>> send(Socket_Handle, $command, $sin);   #send the 
>> command to Maya
>> sleep 1; 
>>  #wait a second 
>> for things to ca

RE: command port to XSI

2015-09-03 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]
That requires it to be installed prior to use.

I’ve got a renegade session of Soft that I am trying salvage some work in.

Won’t help here I’m afraid. But might be useful some other time. Thanks

--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Tim Crowson
Sent: Thursday, September 03, 2015 9:36 AM
To: softimage@listproc.autodesk.com
Subject: Re: command port to XSI

That's one I use here on a regular basis Works great.

-Tim
On 9/3/2015 5:52 AM, Cesar Saez wrote:

Have you tried this?

https://github.com/KelSolaar/TCPServer_For_Softimage





Re: command port to XSI

2015-09-03 Thread Tim Crowson

That's one I use here on a regular basis Works great.

-Tim

On 9/3/2015 5:52 AM, Cesar Saez wrote:


Have you tried this?

https://github.com/KelSolaar/TCPServer_For_Softimage



Signature



RE: command port to XSI

2015-09-03 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]
Figures.

Is there a way to execute something similar to a Kill –SEGV from the old days 
then?

--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Tim Crowson
Sent: Thursday, September 03, 2015 10:25 AM
To: softimage@listproc.autodesk.com
Subject: Re: command port to XSI

I recall someone on the AD side mention that the "Send To"  mechanism between 
Maya and Soft is not exposed and is essentially black-boxed.
-Tim
On 9/3/2015 8:34 AM, Ponthieux, Joseph G. (LARC-E1A)[LITES] wrote:
So no command Port like Maya?

So when Maya “sends” scene data to Softimage and creates a connection to 
Softimage, how is it doing that?

--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Luc-Eric Rousseau
Sent: Wednesday, September 02, 2015 7:35 PM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: RE: command port to XSI


The c# sample in the sdk is what creates the server that listens to a socket.  
There is no command port feature xsi otherwise
Le 2015-09-02 18:31, "Ponthieux, Joseph G. (LARC-E1A)[LITES]" 
<j.ponthi...@nasa.gov<mailto:j.ponthi...@nasa.gov>> a écrit :
Eric,

Thanks. I found the files but can’t really tell if I am supposed to run the 
server in order to make the client work.  And I don’t have Python installed 
anyway.

Had no luck converting the Perl script to something that XSI can understand. My 
guess is that XSI is not receiving input. In Maya you have to turn the TCP port 
on via a preference or env variable before you can use it. But I can’t find 
anything of that equivalent in XSI.

Barring these attempts, I need to save a scene that has locked up at render. 
Any advice how I can get it to quit and save on exit?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Eric Thivierge
Sent: Wednesday, September 02, 2015 5:34 PM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: Re: command port to XSI

There is a sample Python one in the SDK example workgroup. It's not a straight 
forward process and the one time I was working on a team to do this it was 
quite convoluted to get it working as desired.

Eric T.


Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] 
<j.ponthi...@nasa.gov<mailto:j.ponthi...@nasa.gov>> wrote:

Maybe this will help. I am looking to do something like this. This was a Perl 
script run in DOS.




use Socket;

$hostName = "localhost";
$portNumber = 8000;

#CREATE SOCKET CONNECTION TO MAYA
$proto = getprotobyname('tcp');
socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
$port = getservbyname('smtp', 'tcp');
$sin = sockaddr_in($portNumber,inet_aton($hostName));
connect(Socket_Handle,$sin);

$savedir = "E:/MAYA_Emergency_Save/";
print "Attempting to save MAYA file to directory ${savedir}\n";

$command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string 
\$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file -save 
-type \"mayaAscii\";\n";
send(Socket_Handle, $command, $sin);   #send the 
command to Maya
sleep 1;
#wait a second for things to catch up
exit 1; 
   #insure exit




Can this be done with XSI? Has anyone tried?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-i

Re: command port to XSI

2015-09-03 Thread Tim Crowson
I recall someone on the AD side mention that the "Send To" mechanism 
between Maya and Soft is not exposed and is essentially black-boxed.

-Tim

On 9/3/2015 8:34 AM, Ponthieux, Joseph G. (LARC-E1A)[LITES] wrote:


So no command Port like Maya?

So when Maya “sends” scene data to Softimage and creates a connection 
to Softimage, how is it doing that?


--

Joey Ponthieux

LaRC Information Technology Enhanced Services (LITES)

MYMIC Technical Services

NASA Langley Research Center

__

Opinions stated here-in are strictly those of the author and do not

represent the opinions of NASA or any other party.

*From:*softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] *On Behalf Of 
*Luc-Eric Rousseau

*Sent:* Wednesday, September 02, 2015 7:35 PM
*To:* softimage@listproc.autodesk.com
*Subject:* RE: command port to XSI

The c# sample in the sdk is what creates the server that listens to a 
socket.  There is no command port feature xsi otherwise


Le 2015-09-02 18:31, "Ponthieux, Joseph G. (LARC-E1A)[LITES]" 
<j.ponthi...@nasa.gov <mailto:j.ponthi...@nasa.gov>> a écrit :


Eric,

Thanks. I found the files but can’t really tell if I am supposed
to run the server in order to make the client work.  And I don’t
have Python installed anyway.

Had no luck converting the Perl script to something that XSI can
understand. My guess is that XSI is not receiving input. In Maya
you have to turn the TCP port on via a preference or env variable
before you can use it. But I can’t find anything of that
equivalent in XSI.

Barring these attempts, I need to save a scene that has locked up
at render. Any advice how I can get it to quit and save on exit?

--

Joey Ponthieux

LaRC Information Technology Enhanced Services (LITES)

MYMIC Technical Services

NASA Langley Research Center

__

Opinions stated here-in are strictly those of the author and do not

represent the opinions of NASA or any other party.

*From:*softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>
[mailto:softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>] *On Behalf Of
*Eric Thivierge
*Sent:* Wednesday, September 02, 2015 5:34 PM
*To:* softimage@listproc.autodesk.com
<mailto:softimage@listproc.autodesk.com>
*Subject:* Re: command port to XSI

There is a sample Python one in the SDK example workgroup. It's
not a straight forward process and the one time I was working on a
team to do this it was quite convoluted to get it working as desired.

Eric T.



Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G.
(LARC-E1A)[LITES] <j.ponthi...@nasa.gov
<mailto:j.ponthi...@nasa.gov>> wrote:

Maybe this will help. I am looking to do something like this.
This was a Perl script run in DOS.

use Socket;

$hostName = "localhost";

$portNumber = 8000;

#CREATE SOCKET CONNECTION TO MAYA

$proto = getprotobyname('tcp');

socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);

$port = getservbyname('smtp', 'tcp');

$sin = sockaddr_in($portNumber,inet_aton($hostName));

connect(Socket_Handle,$sin);

$savedir = "E:/MAYA_Emergency_Save/";

print "Attempting to save MAYA file to directory ${savedir}\n";

$command = "string \$mySceneName = basename(\`file -q -sn\`,
\"\"); string \$mySavNam = \"$savedir\" + \$mySceneName; file
-rename \$mySavNam; file -save -type \"mayaAscii\";\n";

send(Socket_Handle, $command, $sin);
  #send the command to Maya

sleep 1; #wait a second for things to catch up

exit 1; #insure exit

Can this be done with XSI? Has anyone tried?

--

Joey Ponthieux

LaRC Information Technology Enhanced Services (LITES)

MYMIC Technical Services

NASA Langley Research Center

__

Opinions stated here-in are strictly those of the author and
do not

represent the opinions of NASA or any other party.

*From:* softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>
[mailto:softimage-boun...@listproc.autodesk.com
<mailto:softimage-boun...@listproc.autodesk.com>] *On Behalf
Of *Ponthieux, Joseph G. (LARC-E1A)[LITES]
*Sent:* Wednesday, September 02, 2015 5:07 PM
*To:* softimage@listproc.autodesk.com
   

Re: command port to XSI

2015-09-03 Thread Eric Thivierge
Softimage does not have a command port out of the box.


Eric Thivierge
http://www.ethivierge.com

On Thu, Sep 3, 2015 at 9:41 AM, Ponthieux, Joseph G. (LARC-E1A)[LITES] <
j.ponthi...@nasa.gov> wrote:

> That requires it to be installed prior to use.
>
>
>
> I’ve got a renegade session of Soft that I am trying salvage some work in.
>
>
>
> Won’t help here I’m afraid. But might be useful some other time. Thanks
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Tim Crowson
> *Sent:* Thursday, September 03, 2015 9:36 AM
> *To:* softimage@listproc.autodesk.com
> *Subject:* Re: command port to XSI
>
>
>
> That's one I use here on a regular basis Works great.
>
> -Tim
>
> On 9/3/2015 5:52 AM, Cesar Saez wrote:
>
> Have you tried this?
>
> https://github.com/KelSolaar/TCPServer_For_Softimage
>
>
>
>
>


RE: command port to XSI

2015-09-03 Thread Matt Lind
On windows you'd do that through the windows script host using one of the 
supported languages - which includes any supported by Softimage.  Whether 
you have permission to kill something or not will vary based on user and 
other factors.  Just keep in mind windows doesn't organize processes like 
UNIX does.


You won't be able to kill everything carte blanche like on IRIX.

Matt




Date: Thu, 3 Sep 2015 14:37:09 +
From: "Ponthieux, Joseph G. (LARC-E1A)[LITES]" <j.ponthi...@nasa.gov>
Subject: RE: command port to XSI
To: "softimage@listproc.autodesk.com"

Figures.

Is there a way to execute something similar to a Kill ?SEGV from the old 
days then?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center 



RE: command port to XSI

2015-09-03 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]
So no command Port like Maya?

So when Maya “sends” scene data to Softimage and creates a connection to 
Softimage, how is it doing that?

--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Luc-Eric Rousseau
Sent: Wednesday, September 02, 2015 7:35 PM
To: softimage@listproc.autodesk.com
Subject: RE: command port to XSI


The c# sample in the sdk is what creates the server that listens to a socket.  
There is no command port feature xsi otherwise
Le 2015-09-02 18:31, "Ponthieux, Joseph G. (LARC-E1A)[LITES]" 
<j.ponthi...@nasa.gov<mailto:j.ponthi...@nasa.gov>> a écrit :
Eric,

Thanks. I found the files but can’t really tell if I am supposed to run the 
server in order to make the client work.  And I don’t have Python installed 
anyway.

Had no luck converting the Perl script to something that XSI can understand. My 
guess is that XSI is not receiving input. In Maya you have to turn the TCP port 
on via a preference or env variable before you can use it. But I can’t find 
anything of that equivalent in XSI.

Barring these attempts, I need to save a scene that has locked up at render. 
Any advice how I can get it to quit and save on exit?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Eric Thivierge
Sent: Wednesday, September 02, 2015 5:34 PM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: Re: command port to XSI

There is a sample Python one in the SDK example workgroup. It's not a straight 
forward process and the one time I was working on a team to do this it was 
quite convoluted to get it working as desired.

Eric T.


Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] 
<j.ponthi...@nasa.gov<mailto:j.ponthi...@nasa.gov>> wrote:

Maybe this will help. I am looking to do something like this. This was a Perl 
script run in DOS.




use Socket;

$hostName = "localhost";
$portNumber = 8000;

#CREATE SOCKET CONNECTION TO MAYA
$proto = getprotobyname('tcp');
socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
$port = getservbyname('smtp', 'tcp');
$sin = sockaddr_in($portNumber,inet_aton($hostName));
connect(Socket_Handle,$sin);

$savedir = "E:/MAYA_Emergency_Save/";
print "Attempting to save MAYA file to directory ${savedir}\n";

$command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string 
\$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file -save 
-type \"mayaAscii\";\n";
send(Socket_Handle, $command, $sin);   #send the 
command to Maya
sleep 1;
#wait a second for things to catch up
exit 1; 
   #insure exit




Can this be done with XSI? Has anyone tried?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Ponthieux, Joseph G. (LARC-E1A)[LITES]
Sent: Wednesday, September 02, 2015 5:07 PM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: command port to XSI

A long time ago I managed to write a command line port tool for Maya using the 
backend port that it provides. The tool was written in Perl and in general once 
a connection was made I could send MEL commands to the software via a “command 
line” prompt via a windows terminal. I used this often with Maya to take 
control of the software in case of a lock up etc and to send move data to it.

I thought I had created the same for XSI, again a real

RE: command port to XSI

2015-09-02 Thread Luc-Eric Rousseau
The c# sample in the sdk is what creates the server that listens to a
socket.  There is no command port feature xsi otherwise
Le 2015-09-02 18:31, "Ponthieux, Joseph G. (LARC-E1A)[LITES]" <
j.ponthi...@nasa.gov> a écrit :

> Eric,
>
>
>
> Thanks. I found the files but can’t really tell if I am supposed to run
> the server in order to make the client work.  And I don’t have Python
> installed anyway.
>
>
>
> Had no luck converting the Perl script to something that XSI can
> understand. My guess is that XSI is not receiving input. In Maya you have
> to turn the TCP port on via a preference or env variable before you can use
> it. But I can’t find anything of that equivalent in XSI.
>
>
>
> Barring these attempts, I need to save a scene that has locked up at
> render. Any advice how I can get it to quit and save on exit?
>
>
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Eric Thivierge
> *Sent:* Wednesday, September 02, 2015 5:34 PM
> *To:* softimage@listproc.autodesk.com
> *Subject:* Re: command port to XSI
>
>
>
> There is a sample Python one in the SDK example workgroup. It's not a
> straight forward process and the one time I was working on a team to do
> this it was quite convoluted to get it working as desired.
>
>
>
> Eric T.
>
>
> 
> Eric Thivierge
> http://www.ethivierge.com
>
>
>
> On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] <
> j.ponthi...@nasa.gov> wrote:
>
>
>
> Maybe this will help. I am looking to do something like this. This was a
> Perl script run in DOS.
>
>
>
>
>
>
>
>
>
> use Socket;
>
>
>
> $hostName = "localhost";
>
> $portNumber = 8000;
>
>
>
> #CREATE SOCKET CONNECTION TO MAYA
>
> $proto = getprotobyname('tcp');
>
> socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
>
> $port = getservbyname('smtp', 'tcp');
>
> $sin = sockaddr_in($portNumber,inet_aton($hostName));
>
> connect(Socket_Handle,$sin);
>
>
>
> $savedir = "E:/MAYA_Emergency_Save/";
>
> print "Attempting to save MAYA file to directory ${savedir}\n";
>
>
>
> $command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string
> \$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file
> -save -type \"mayaAscii\";\n";
>
> send(Socket_Handle, $command, $sin);   #send
> the command to Maya
>
> sleep
> 1;
> #wait a second for things to catch up
>
> exit
> 1;
> #insure exit
>
>
>
>
>
>
>
>
>
> Can this be done with XSI? Has anyone tried?
>
>
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Ponthieux, Joseph
> G. (LARC-E1A)[LITES]
> *Sent:* Wednesday, September 02, 2015 5:07 PM
> *To:* softimage@listproc.autodesk.com
> *Subject:* command port to XSI
>
>
>
> A long time ago I managed to write a command line port tool for Maya using
> the backend port that it provides. The tool was written in Perl and in
> general once a connection was made I could send MEL commands to the
> software via a “command line” prompt via a windows terminal. I used this
> often with Maya to take control of the software in case of a lock up etc
> and to send move data to it.
>
>
>
> I thought I had created the same for XSI, again a really long time ago,
> but can’t seem to find it. XSI should be able to do this since it appears
> to communicate with Maya via a port connection. Does anyone know if this is
> still possible? If so do you have any examples how it would be done for
> XSI?
>
>
>
> Thanks
>
>
>
>
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>
>
>


Re: command port to XSI

2015-09-02 Thread Eric Thivierge
Matt there was a more recent one done in Python that is included too. We
didn't do a straight language conversion.


Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 7:08 PM, Matt Lind <speye...@hotmail.com> wrote:

> The "XSIServer" SDK example was originally written in C# if my memory is
> correct.  It was probably convoluted because you tried converting languages
> on top of trying to make it work.  In the C# version an executable is
> already compiled and ready to go, and source code available to modify it if
> needed.
>
> if you inspect the "XSIGame" example, there is an .htm with some
> information how the pieces fit together.  Not much, but it's a start.
>
>
> Matt
>
>
>
>
>
> Date: Wed, 2 Sep 2015 17:33:49 -0400
> From: Eric Thivierge <ethivie...@gmail.com>
> Subject: Re: command port to XSI
> To: "softimage@listproc.autodesk.com"
>
>
> There is a sample Python one in the SDK example workgroup. It's not a
> straight forward process and the one time I was working on a team to do
> this it was quite convoluted to get it working as desired.
>
> Eric T.
>
>


command port to XSI

2015-09-02 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]
A long time ago I managed to write a command line port tool for Maya using the 
backend port that it provides. The tool was written in Perl and in general once 
a connection was made I could send MEL commands to the software via a "command 
line" prompt via a windows terminal. I used this often with Maya to take 
control of the software in case of a lock up etc and to send move data to it.

I thought I had created the same for XSI, again a really long time ago, but 
can't seem to find it. XSI should be able to do this since it appears to 
communicate with Maya via a port connection. Does anyone know if this is still 
possible? If so do you have any examples how it would be done for XSI?

Thanks



--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.



RE: command port to XSI

2015-09-02 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]
Eric,

Thanks. I found the files but can’t really tell if I am supposed to run the 
server in order to make the client work.  And I don’t have Python installed 
anyway.

Had no luck converting the Perl script to something that XSI can understand. My 
guess is that XSI is not receiving input. In Maya you have to turn the TCP port 
on via a preference or env variable before you can use it. But I can’t find 
anything of that equivalent in XSI.

Barring these attempts, I need to save a scene that has locked up at render. 
Any advice how I can get it to quit and save on exit?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eric Thivierge
Sent: Wednesday, September 02, 2015 5:34 PM
To: softimage@listproc.autodesk.com
Subject: Re: command port to XSI

There is a sample Python one in the SDK example workgroup. It's not a straight 
forward process and the one time I was working on a team to do this it was 
quite convoluted to get it working as desired.

Eric T.


Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] 
<j.ponthi...@nasa.gov<mailto:j.ponthi...@nasa.gov>> wrote:

Maybe this will help. I am looking to do something like this. This was a Perl 
script run in DOS.




use Socket;

$hostName = "localhost";
$portNumber = 8000;

#CREATE SOCKET CONNECTION TO MAYA
$proto = getprotobyname('tcp');
socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
$port = getservbyname('smtp', 'tcp');
$sin = sockaddr_in($portNumber,inet_aton($hostName));
connect(Socket_Handle,$sin);

$savedir = "E:/MAYA_Emergency_Save/";
print "Attempting to save MAYA file to directory ${savedir}\n";

$command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string 
\$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file -save 
-type \"mayaAscii\";\n";
send(Socket_Handle, $command, $sin);   #send the 
command to Maya
sleep 1;
#wait a second for things to catch up
exit 1; 
   #insure exit




Can this be done with XSI? Has anyone tried?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: 
softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>
 
[mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com>]
 On Behalf Of Ponthieux, Joseph G. (LARC-E1A)[LITES]
Sent: Wednesday, September 02, 2015 5:07 PM
To: softimage@listproc.autodesk.com<mailto:softimage@listproc.autodesk.com>
Subject: command port to XSI

A long time ago I managed to write a command line port tool for Maya using the 
backend port that it provides. The tool was written in Perl and in general once 
a connection was made I could send MEL commands to the software via a “command 
line” prompt via a windows terminal. I used this often with Maya to take 
control of the software in case of a lock up etc and to send move data to it.

I thought I had created the same for XSI, again a really long time ago, but 
can’t seem to find it. XSI should be able to do this since it appears to 
communicate with Maya via a port connection. Does anyone know if this is still 
possible? If so do you have any examples how it would be done for XSI?

Thanks



--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.




Re: command port to XSI

2015-09-02 Thread Matt Lind
The "XSIServer" SDK example was originally written in C# if my memory is 
correct.  It was probably convoluted because you tried converting languages 
on top of trying to make it work.  In the C# version an executable is 
already compiled and ready to go, and source code available to modify it if 
needed.


if you inspect the "XSIGame" example, there is an .htm with some information 
how the pieces fit together.  Not much, but it's a start.



Matt





Date: Wed, 2 Sep 2015 17:33:49 -0400
From: Eric Thivierge <ethivie...@gmail.com>
Subject: Re: command port to XSI
To: "softimage@listproc.autodesk.com"

There is a sample Python one in the SDK example workgroup. It's not a
straight forward process and the one time I was working on a team to do
this it was quite convoluted to get it working as desired.

Eric T.



Re: command port to XSI

2015-09-02 Thread Eric Thivierge
There is a sample Python one in the SDK example workgroup. It's not a
straight forward process and the one time I was working on a team to do
this it was quite convoluted to get it working as desired.

Eric T.


Eric Thivierge
http://www.ethivierge.com

On Wed, Sep 2, 2015 at 5:20 PM, Ponthieux, Joseph G. (LARC-E1A)[LITES] <
j.ponthi...@nasa.gov> wrote:

>
>
> Maybe this will help. I am looking to do something like this. This was a
> Perl script run in DOS.
>
>
>
>
>
>
>
>
>
> use Socket;
>
>
>
> $hostName = "localhost";
>
> $portNumber = 8000;
>
>
>
> #CREATE SOCKET CONNECTION TO MAYA
>
> $proto = getprotobyname('tcp');
>
> socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
>
> $port = getservbyname('smtp', 'tcp');
>
> $sin = sockaddr_in($portNumber,inet_aton($hostName));
>
> connect(Socket_Handle,$sin);
>
>
>
> $savedir = "E:/MAYA_Emergency_Save/";
>
> print "Attempting to save MAYA file to directory ${savedir}\n";
>
>
>
> $command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string
> \$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file
> -save -type \"mayaAscii\";\n";
>
> send(Socket_Handle, $command, $sin);   #send
> the command to Maya
>
> sleep
> 1;
> #wait a second for things to catch up
>
> exit
> 1;
> #insure exit
>
>
>
>
>
>
>
>
>
> Can this be done with XSI? Has anyone tried?
>
>
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>
> *From:* softimage-boun...@listproc.autodesk.com [mailto:
> softimage-boun...@listproc.autodesk.com] *On Behalf Of *Ponthieux, Joseph
> G. (LARC-E1A)[LITES]
> *Sent:* Wednesday, September 02, 2015 5:07 PM
> *To:* softimage@listproc.autodesk.com
> *Subject:* command port to XSI
>
>
>
> A long time ago I managed to write a command line port tool for Maya using
> the backend port that it provides. The tool was written in Perl and in
> general once a connection was made I could send MEL commands to the
> software via a “command line” prompt via a windows terminal. I used this
> often with Maya to take control of the software in case of a lock up etc
> and to send move data to it.
>
>
>
> I thought I had created the same for XSI, again a really long time ago,
> but can’t seem to find it. XSI should be able to do this since it appears
> to communicate with Maya via a port connection. Does anyone know if this is
> still possible? If so do you have any examples how it would be done for
> XSI?
>
>
>
> Thanks
>
>
>
>
>
>
>
> --
>
> Joey Ponthieux
>
> LaRC Information Technology Enhanced Services (LITES)
>
> MYMIC Technical Services
>
> NASA Langley Research Center
>
> __
>
> Opinions stated here-in are strictly those of the author and do not
>
> represent the opinions of NASA or any other party.
>
>
>


RE: command port to XSI

2015-09-02 Thread Ponthieux, Joseph G. (LARC-E1A)[LITES]

Maybe this will help. I am looking to do something like this. This was a Perl 
script run in DOS.




use Socket;

$hostName = "localhost";
$portNumber = 8000;

#CREATE SOCKET CONNECTION TO MAYA
$proto = getprotobyname('tcp');
socket(Socket_Handle, PF_INET, SOCK_STREAM, $proto);
$port = getservbyname('smtp', 'tcp');
$sin = sockaddr_in($portNumber,inet_aton($hostName));
connect(Socket_Handle,$sin);

$savedir = "E:/MAYA_Emergency_Save/";
print "Attempting to save MAYA file to directory ${savedir}\n";

$command = "string \$mySceneName = basename(\`file -q -sn\`, \"\"); string 
\$mySavNam = \"$savedir\" + \$mySceneName; file -rename \$mySavNam; file -save 
-type \"mayaAscii\";\n";
send(Socket_Handle, $command, $sin);   #send the 
command to Maya
sleep 1;
#wait a second for things to catch up
exit 1; 
   #insure exit




Can this be done with XSI? Has anyone tried?


--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ponthieux, Joseph 
G. (LARC-E1A)[LITES]
Sent: Wednesday, September 02, 2015 5:07 PM
To: softimage@listproc.autodesk.com
Subject: command port to XSI

A long time ago I managed to write a command line port tool for Maya using the 
backend port that it provides. The tool was written in Perl and in general once 
a connection was made I could send MEL commands to the software via a "command 
line" prompt via a windows terminal. I used this often with Maya to take 
control of the software in case of a lock up etc and to send move data to it.

I thought I had created the same for XSI, again a really long time ago, but 
can't seem to find it. XSI should be able to do this since it appears to 
communicate with Maya via a port connection. Does anyone know if this is still 
possible? If so do you have any examples how it would be done for XSI?

Thanks



--
Joey Ponthieux
LaRC Information Technology Enhanced Services (LITES)
MYMIC Technical Services
NASA Langley Research Center
__
Opinions stated here-in are strictly those of the author and do not
represent the opinions of NASA or any other party.