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
    • Recent
    • Tags
    • Users
    • Login

    inexclude in desc

    Scheduled Pinned Locked Moved PYTHON Development
    9 Posts 0 Posters 627 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 04/06/2013 at 11:27, xxxxxxxx wrote:

      hi

      is it possible to use a inexclude field in a description and control it with python ?

      Thanks 
      Michael

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

        On 04/06/2013 at 12:55, xxxxxxxx wrote:

        The description symbol is IN_EXCLUDE.

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

          On 04/06/2013 at 13:45, xxxxxxxx wrote:

          hey niklas -

          many thanks - again !

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

            On 04/06/2013 at 14:43, xxxxxxxx wrote:

            i try to add a objekt and fill the inexclude list but - get an error (has now attribute FG_Fixtures)

            node.InsertUnder(op)
            for obs in activefixtures:
            node[c4d.FG_Fixtures].InsertObject(obs, 1)
            c4d.EventAdd()

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

              On 04/06/2013 at 14:53, xxxxxxxx wrote:

              You have to allocate a InExcludeData object, there is a difference between a CustomDataType 
              description element and its wrapping class.

              edit: lol, didn't red my own link properly, what i meant was, you have to do something like that.

              myInExcludeData = c4d.InExcludeData(node[c4d.FG_Fixtures])
              myInExCludeData .InsertObject(...
              
              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                On 04/06/2013 at 15:39, xxxxxxxx wrote:

                i try it like you- and dont get an error but the object isnt in the list

                			node.InsertUnder(op)
                			MyInExcludeData = c4d.InExcludeData(node[c4d.FG_Fixtures])
                			for obs in activefixtures:
                				MyInExcludeData.InsertObject(obs, 1)
                			c4d.EventAdd()
                
                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  On 04/06/2013 at 15:59, xxxxxxxx wrote:

                  your code is correct accept from the fact that you should write your InEx data back into the 
                  node, otherwise the EventAdd() does not make much sense.

                  node[c4d.FG_Fixtures] = myInEx

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

                    On 04/06/2013 at 16:32, xxxxxxxx wrote:

                    great thanks

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

                      On 04/06/2013 at 21:24, xxxxxxxx wrote:

                      Always show the message of an error. It was easy to guess in this case, but it isn't always this way.

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