in/exclusion flag

On 16/01/2017 at 06:51, xxxxxxxx wrote:

Please someone can help me? My brain is on fire for this setup!
setup set material tag on multiple object with in/exclude list and the new flag python metod - flag = 0 material 1 , flag = 1 material 2 - very simple but....
It works perfectly the tag change material in viewport you can see the material as changed in render viewport everythings i'ts ok but....if you start render in the picture viewer dosen't work...

Thanks a lot!

On 16/01/2017 at 22:01, xxxxxxxx wrote:

I understand don't need the flag metod this is the newcode but same problem:
All work fine but dosen't work in picture viewer final render

for i in xrange(Len) :
      if i!=Focus:
          print i,Focus
          Obj = Object.ObjectFromIndex(doc, i)
          Mat = Obj.GetTag(Ttexture)
          print i
          Obj = Object.ObjectFromIndex(doc, i)
          Mat = Obj.GetTag(Ttexture)

On 17/01/2017 at 01:17, xxxxxxxx wrote:

Hi Davide,

we are not sure in what context you are trying to achieve this. Is it a plugin you are developing, and if so, what type of plugin and in what function of that plugin are you trying to execute the posted code? Or is it in a Python tag, a Python Xpresso node or one of the other Python scripting options?
What is "Focus" in your code? A member variable in your plugin?

On 17/01/2017 at 02:19, xxxxxxxx wrote:

Hello Andreas tnx for a reply,

This is a script node in xpresso, Focus is a integer pointer done with data drop down button with userdata.