project_from_view context

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Posts: 7
Joined: Wed Mar 28, 2012 10:32 am

project_from_view context

Postby member159 » Wed Jun 27, 2012 7:56 pm

I am working with blender from batch (blender -b untitled.blend -P 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 when I try to run it from a script it fails. Anyone knows how to solve this? (Changing context maybe?)


Return to “Python”

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests