What is the simplest way to apply an image texture to a plane using python (in 2.73)?

I've tried the script give here, where I replaced the cube with a plane:


But, it didn't work. Perhaps there's a different method for 2.73?


The texture script there still works in 2.73, but there are a couple points that you may need to check.

  1. Render engine needs to be set to Blender Render, the sample script is not setup to work with cycles.

  2. The viewport shading settings. The texture will not show if the viewport is displayed in solid shading. In Textured shading you also need to enable GLSL instead of the default Multitexture. In Material shading the texture will show. These options will only show the image part of the texture, you will only see the full result of the texture in rendered display of the viewport or if you render an image (F12).

The Viewport shading mode can be found in the header of the 3dview -

enter image description here

GLSL shading can be enabled in the Shading panel of the properties sidebar (press N) -

enter image description here

If you want to adjust the script to work with cycles this question might get you started.

| improve this answer | |
  • $\begingroup$ @sanjeevmk if this answers your question mark it as accepted , if not edit your question to clarify what you're looking for $\endgroup$ – Chebhou Mar 19 '15 at 8:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.