I believe we also capture everything written to stdout and/or stderr. For example, this *should* work:
cout << "monkey\n";
mental ray has a special capture system that pipes directly into the history log after some massaging.
I don't know if this has changed recently. YMMV.
- 1/2
________________________________
From: owner-xsi(at)Softimage.COM on behalf of Felix Gebhardt
Sent: Wed 28-Sep-05 09:03
To: XSI(at)Softimage.COM
Subject: Re: [ C++API ] ostream ?
Hi Aloys,
Yes, I have such utility inlines. It's actually even called Log() :) I
was just a bit tired of carrying it around for a second and was hoping
I'm missing something obvious as I had that Python print() in the back
of my head. I guess Jacko is right and someone put that up specially for
Python and Mental Ray but not for the C++ API,
Thanks anyway,
F.
Aloys Baillet wrote:
Hi,
Actually you can shorten things a little bit:
Application app;
app.LogMessage(L"huhu");
will work.
And you can also make a macro for that:
#define log(x) Application().LogMessage(x)
#define errx) Application().LogMessage(x, siErrorMsg)
log(L"huhu")
err(L"Bad!")
Hope this helps!
Aloys
On 28/09/05, Felix Gebhardt <gebhardt(at)betacarotin.de> wrote:
Hi,
Is there a way to directly write to the History Window's stream? I mean
something more direct than Application().LogMessage(CString(L"huhu"));
Maybe my memory is playing tricks on me but I think someone mentioned
this works from Python. Yes? No?
F.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi