Maya API: printf

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2003   #1
Maya API: printf

heya!
i'm starting to learn Maya API (on Visual C++), and this evening i was trying to follow some tutorials. I immediately had a simple problem.
Printf doesn't print anything in the maya log. Not even copying - pasting the tutorials' code... Only the final result of the program command is printed out.

i wonder...

Is there anything i should do to tell Visual C++ to redirect the standard output stream to Maya?

any help/suggestion?

tnx
__________________
Davide Pesare

There are only 10 types of people in the world those who understand trinary, those who don't, and those who mistake it for binary.
 
Old 11 November 2003   #2
Hi,

You may be looking in the wrong place. The printf goes to the output window.
 
Old 11 November 2003   #3
thanks!
that's definitely a point

anyway printf still doesn't work. I managed to get the output with "cout", and i'm quite satisfied with it.

Still i wonder how i could write messages on the script editor (apart from warnings, errors and setResult)

yup!
__________________
Davide Pesare

There are only 10 types of people in the world those who understand trinary, those who don't, and those who mistake it for binary.
 
Old 11 November 2003   #4
MGloabal::displayInfo(...).
 
Old 11 November 2003   #5
tnx!
__________________
Davide Pesare

There are only 10 types of people in the world those who understand trinary, those who don't, and those who mistake it for binary.
 
Old 11 November 2003   #6
Hey man, im just wondering where are you learning Maya API from?
 
Old 11 November 2003   #7
online help

..and forums
__________________
Davide Pesare

There are only 10 types of people in the world those who understand trinary, those who don't, and those who mistake it for binary.
 
Old 11 November 2003   #8
Originally posted by orgee
Hey man, im just wondering where are you learning Maya API from?


Is that cos you're interested in finding somewhere youself to learn it from?

If so, then "Complete Maya Programming" by David Gould is the best (and, I think, only) book on the subject...
__________________
Hugh Macdonald
nvizible
 
Old 11 November 2003   #9
best place for Maya API help is the maya-dev list at higend3d.com
__________________

You can have your characters photoreal, fast or cheap. Pick two.
 
Old 01 January 2006   #10
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:29 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.