Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    in/exclusion flag

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 382 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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)
                  Mat[c4d.TEXTURETAG_MATERIAL]=Mat1
              else:
                  print i
                  Obj = Object.ObjectFromIndex(doc, i)
                  Mat = Obj.GetTag(Ttexture)
                  Mat[c4d.TEXTURETAG_MATERIAL]=Mat2

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post