PDA

View Full Version : Maya API: printf


DaKrunch
11-08-2003, 07:48 PM
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:shrug:

sbp
11-09-2003, 03:29 AM
Hi,

You may be looking in the wrong place. The printf goes to the output window.

DaKrunch
11-09-2003, 01:58 PM
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!

sbp
11-09-2003, 03:35 PM
MGloabal::displayInfo(...).

DaKrunch
11-09-2003, 07:34 PM
tnx! :p

orvski
11-25-2003, 12:02 AM
Hey man, im just wondering where are you learning Maya API from?

DaKrunch
11-25-2003, 08:16 AM
online help ;)

..and forums

Hugh
11-25-2003, 08:39 AM
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...

playmesumch00ns
11-25-2003, 08:52 AM
best place for Maya API help is the maya-dev list at higend3d.com

CGTalk Moderation
01-16-2006, 02:00 PM
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.