I’ve just started to learn Python in maya and have hit a small problem, for most of my mel scripts I nearly always get to a point where I need to print a message to the user, normally into the maya status line (the box next to the command line) So for example if someone tries using a tool I’ve made but they haven’t selected anything I print “Nothing Selected” and this appears in the status line.
My problem is that when using the print command in Python the only output you get is in the script editor history window, which is not very helpful for the artist who doesn’t know why the tool isn’t working! So does anyone here know how this is achieved? I tried running the print command as mel like this: "mc.print(“Something is wrong…”) however this just errors out, any ideas??
Many thanks, James.