UI Panel for Specific Object in 2.65

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
regg
Posts: 0
Joined: Tue Dec 11, 2012 8:45 pm

UI Panel for Specific Object in 2.65

Post by regg » Wed Jan 16, 2013 9:23 pm

Hello,

can anyone tell me why this Panel method doesn't work in 2.65 like it was working in Blender 2.63?:
@classmethod
def poll(cls, context):
if context.object.name.starstwith('MyMesh'):
return len(context.object.data.name)

I mean in 2.63 with this classmethod Panel i've created was displayed only when specific object was selected (MyMesh, MyMesh.001...etc). After importing script into 2.65 this panel shows always without it content (because another object doesn't have required data)

Anyway to do it right?

regg
Posts: 0
Joined: Tue Dec 11, 2012 8:45 pm

Post by regg » Sun Jan 20, 2013 8:37 pm

ok, it works, my bad in code :/

Post Reply