Search found 7 matches

by member159
Wed Dec 19, 2012 7:57 pm
Forum: Python
Topic: Camera skew
Replies: 0
Views: 898

Camera skew

Hi,

Knowing the intrinsic matrix from a camera :

[ fx skew cx ]
[ 0 fy cy ]
[ 0 0 1 ]

anyone knows if it is possible to model the camera skew angle in Blender?

Thank you
by member159
Wed Jun 27, 2012 7:56 pm
Forum: Python
Topic: project_from_view context
Replies: 0
Views: 597

project_from_view context

Hi, I am working with blender from batch (blender -b untitled.blend -P scripts.py) to generate renders. But in my script I call the function project_from_view, and I have the error "Operator bpy.ops.uv.project_from_view.poll() failed, context is incorrect" Everything is ok when I do it myself, but w...
by member159
Thu May 10, 2012 1:15 pm
Forum: Python
Topic: Changing ImageFormatSettings.color_mode
Replies: 2
Views: 1199

CoDEmanX wrote:It is:

bpy.context.scene.render.image_settings.color_mode = 'RGBA'
Thank you ;)
by member159
Wed May 09, 2012 7:17 pm
Forum: Python
Topic: Changing ImageFormatSettings.color_mode
Replies: 2
Views: 1199

Changing ImageFormatSettings.color_mode

Hi, I want to save my renders with an alpha channel automatically, but I don't know how to proceed. I think it has something to do with the color_mode : http://www.blender.org/documentation/blender_python_api_2_63_2/bpy.types.ImageFormatSettings.html?highlight=color_mode Anyone knows how to change t...
by member159
Wed Apr 18, 2012 10:28 am
Forum: Python
Topic: Incorrect context bpy.ops.uv.project_from_view
Replies: 0
Views: 713

Incorrect context bpy.ops.uv.project_from_view

Hi,

Does anyone know how to call the "bpy.ops.uv.project_from_view" function from the text editor or the console?

Everytime I try I get the following error :
"RuntimeError: Operator bpy.ops.uv.project_from_view.poll() failed, context is incorrect"
by member159
Tue Apr 17, 2012 12:18 pm
Forum: Python
Topic: Visualize image in UV/Image Editor
Replies: 1
Views: 962

Visualize image in UV/Image Editor

Hi,

Anyone knows how we can select and visualize an image in the UV/Image Editor with a Python script?
I want to map my image on a plane, but I can only open my image (and not select or view it) so I can't run the project_from_view command.

Thx
by member159
Wed Mar 28, 2012 10:37 am
Forum: Python
Topic: Adding camera from projection matrix
Replies: 0
Views: 747

Adding camera from projection matrix

Hello, I am pretty newbie to blender scripting.Need a bit of help... I have a 3x4 projection matrix http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/EPSRC_SSAZ/node3.html And so I have also the internal and external (rotation + translation) parameters of the camera. Now I wish to set up a cam...