project_from_view context

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

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

project_from_view context

Post by 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?)


Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest