BPython:
- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols. This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on: http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html - sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192. Was only FILE_MAXFILE, a mistake; - Image: added .setFilename(), contributed by Campbell Barton; - Camera: added camera.get/setScale for the new param added by Ton for ortho cameras. Requested by Jean-Michel Soler for the Texture Baker script; - related doc updates.
This commit is contained in:
@@ -6,7 +6,7 @@ The Blender.Image submodule.
|
||||
Image
|
||||
=====
|
||||
|
||||
B{New}: L{Image.glLoad}, L{Image.glFree}.
|
||||
B{New}: L{Image.setFilename}.
|
||||
|
||||
This module provides access to B{Image} objects in Blender.
|
||||
|
||||
@@ -155,6 +155,15 @@ class Image:
|
||||
@param name: The new name.
|
||||
"""
|
||||
|
||||
def setFilename(name):
|
||||
"""
|
||||
Change the filename of this Image object.
|
||||
@type name: string
|
||||
@param name: The new full filename.
|
||||
@warn: use this with caution and note that the filename is truncated if
|
||||
larger than 160 characters.
|
||||
"""
|
||||
|
||||
def setXRep(xrep):
|
||||
"""
|
||||
Texture tiling: set the number of x repetitions for this Image.
|
||||
|
||||
Reference in New Issue
Block a user