Blender 2.5 Python video texture info -



Blender 2.5 Python video texture info -

i load animated texture in blender 2.58 using python (see this question earlier):

#setup world wtex = bpy.data.textures.new(name="worldtexture", type='image') # set world texture wrld = bpy.context.scene.world if wrld: slot = wrld.texture_slots.add() slot.texture = wtex slot.use_map_horizon = true img=bpy.data.images.load(filepath='\\vtex.avi') if img: slot.texture.image=img

how can number of frames in video (img)? blender when loading texture gui, didn't find way create python.

use img.frame_duration; gives total number of frames in video.

python video textures blender blender-2.50

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -