Creation of UVW tag for a plane
I would like to know how to create texture coordinates for a plane, with python.
So I want to create with python the basic UVW tag for a plan.
I would like to get the same result as with Bodypaint.
you can use CallUVCommand. The forum also has different thread already talking about it. This one for example, explain how to use command to pack your UVs. It shows how to automatically unwarp your model and answer what you are looking for. This is done using SendModelingCommand with some parameters, those parameters can be found here in the c++ documentation.
Of course, you can also create the uvw tag yourself and define the uvw coordinates as you wish. You have this thread for example that shows how to do a planar projection.