Hi. I am quite new with MEL-scripting and have just started to work on a GUI. I need to make a script that creates a white and black map (image), it should take only the selected objects only in a scene (from example a list) and produce a map where the selected objects become white (projection) and the background black.
Does anyone have suggestions of how to solve this problem? Any ideas of how to do this projection/selection? I was thinking that the shadow map does something similar but contains all objects in the scene and their shadows?
I also have a general question since I cannot decide if I should use the GUI completely in MEL or as a C++ plugin. If I later on would like to do some image processing operation on my images and want it to be pretty fast is C++ API a better solution?
Thanks for answering. I will try to do that. Should I use glRender with some flags to render only the alpha channel, since I do not want to render in RGB mode?
And will it automatically step to the next frame if I have an animation?