python 'print' in softimage

2014-04-02 Thread Halim Negadi
Hello Gang,

print used to work in xsi back in version 4 or 5 but no longer does.
I use a generic library that uses it massively for debug purposes.
Is there any way to wrap it so Softimage logs python print messages ?

Thanks in advance,

-H.


Re: python 'print' in softimage

2014-04-02 Thread Halim Negadi
google just found the workaround:
http://xsisupport.com/2012/05/02/python-print-statement-in-softimage-2013
This community rocks, please guys lets keep it alive no matter what.

Cheers,

-H.


On Wed, Apr 2, 2014 at 6:22 PM, Halim Negadi hneg...@gmail.com wrote:

 Hello Gang,

 print used to work in xsi back in version 4 or 5 but no longer does.
 I use a generic library that uses it massively for debug purposes.
 Is there any way to wrap it so Softimage logs python print messages ?

 Thanks in advance,

 -H.



Re: python 'print' in softimage

2014-04-02 Thread Ognjen Vukovic
Theres also
si = Application
log = si.LogMessage

log(hello mars)


On Wed, Apr 2, 2014 at 6:30 PM, Halim Negadi hneg...@gmail.com wrote:

 google just found the workaround:
 http://xsisupport.com/2012/05/02/python-print-statement-in-softimage-2013
 This community rocks, please guys lets keep it alive no matter what.

 Cheers,

 -H.


 On Wed, Apr 2, 2014 at 6:22 PM, Halim Negadi hneg...@gmail.com wrote:

 Hello Gang,

 print used to work in xsi back in version 4 or 5 but no longer does.
 I use a generic library that uses it massively for debug purposes.
 Is there any way to wrap it so Softimage logs python print messages ?

 Thanks in advance,

 -H.





Re: python 'print' in softimage

2014-04-02 Thread Andreas Böinghoff
nice exploration. I was always wondering why this is not working with 
the external python.


On 4/2/2014 6:30 PM, Halim Negadi wrote:

google just found the workaround:
http://xsisupport.com/2012/05/02/python-print-statement-in-softimage-2013
This community rocks, please guys lets keep it alive no matter what.

Cheers,

-H.


On Wed, Apr 2, 2014 at 6:22 PM, Halim Negadi hneg...@gmail.com 
mailto:hneg...@gmail.com wrote:


Hello Gang,

print used to work in xsi back in version 4 or 5 but no longer does.
I use a generic library that uses it massively for debug purposes.
Is there any way to wrap it so Softimage logs python print messages ?

Thanks in advance,

-H.







Re: python 'print' in softimage

2014-04-02 Thread Cristobal Infante
google or Stephen Blair?

Give the man some credit ;)


On 2 April 2014 17:37, Andreas Böinghoff boeingh...@s-farm.de wrote:

  nice exploration. I was always wondering why this is not working with
 the external python.


 On 4/2/2014 6:30 PM, Halim Negadi wrote:

   google just found the workaround:
 http://xsisupport.com/2012/05/02/python-print-statement-in-softimage-2013
  This community rocks, please guys lets keep it alive no matter what.

  Cheers,

  -H.


 On Wed, Apr 2, 2014 at 6:22 PM, Halim Negadi hneg...@gmail.com wrote:

Hello Gang,

  print used to work in xsi back in version 4 or 5 but no longer does.
  I use a generic library that uses it massively for debug purposes.
  Is there any way to wrap it so Softimage logs python print messages ?

  Thanks in advance,

  -H.







Re: python 'print' in softimage

2014-04-02 Thread Alan Fregtman
Actually, give *Jonathan Ben Ayoun* the credit this time. Stephen only
posted it. ;)



On Wed, Apr 2, 2014 at 1:10 PM, Cristobal Infante cgc...@gmail.com wrote:

 google or Stephen Blair?

 Give the man some credit ;)


 On 2 April 2014 17:37, Andreas Böinghoff boeingh...@s-farm.de wrote:

  nice exploration. I was always wondering why this is not working with
 the external python.


 On 4/2/2014 6:30 PM, Halim Negadi wrote:

   google just found the workaround:
 http://xsisupport.com/2012/05/02/python-print-statement-in-softimage-2013
  This community rocks, please guys lets keep it alive no matter what.

  Cheers,

  -H.


 On Wed, Apr 2, 2014 at 6:22 PM, Halim Negadi hneg...@gmail.com wrote:

Hello Gang,

  print used to work in xsi back in version 4 or 5 but no longer does.
  I use a generic library that uses it massively for debug purposes.
  Is there any way to wrap it so Softimage logs python print messages ?

  Thanks in advance,

  -H.








Re: python 'print' in softimage

2014-04-02 Thread Luc-Eric Rousseau
 Patrick Boucher had also written about that trick back in 2006
http://www.softimageblog.com/archives/129

On Wed, Apr 2, 2014 at 7:46 PM, Alan Fregtman alan.fregt...@gmail.com wrote:
 Actually, give Jonathan Ben Ayoun the credit this time. Stephen only posted
 it. ;)



 On Wed, Apr 2, 2014 at 1:10 PM, Cristobal Infante cgc...@gmail.com wrote:

 google or Stephen Blair?

 Give the man some credit ;)