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

    InExcludeData - Removed object stays as None

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 866 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 27/05/2011 at 06:53, xxxxxxxx wrote:

      Hi,

      I removed an object from the scene that was attached to an InExcludeData.
      After removing it (using obj.Remove()) it stays in the InExcludeData as None.

      Is this a bug ?

      Thanks, Niklas

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 27/05/2011 at 06:55, xxxxxxxx wrote:

        And btw:
        Is it normal that a SelectionListDialog (from c4d.gui) can only display c4d.BaseObject s ?

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 01/06/2011 at 09:13, xxxxxxxx wrote:

          Can you please provide an example so I can check out whats wrong. Thx!

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 01/06/2011 at 10:08, xxxxxxxx wrote:

            Here an example Code to the SelectionListDialog - issue for the Script-Manager.

            And in this example PythonTag I wrote, you can see there is a function "GetObjectsFromInExcludeData" which makes sure that no Objects returned from the InExclude Data as "None" will be added to the list.
            Without testing if the returned Object is not None, the SelectionListDialog raises an error.

            PythonTag

            (The TreeView in the Description was just for testing purpose)

            Go forward as follows:

            1. Create the Tag
            2. Add some Objects to the "Objects" InExclude Data List.
            3. Delete the Objects from the Document, not from the List, the Objects should be removed from the List now as well.
            4. Click on the "Remove" Button, the Objects appear in the Dialog.
            5. Click on it once again and take a look into the Console, the SelectionListDialog did raise an error that it only wants to have c4d.BaseObject's in the overloaded iterateable, but it found "None" in it.

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 01/06/2011 at 18:49, xxxxxxxx wrote:

              In ObjectFromIndex pass the current document instead of None. This ensures you only get an object back if its still in the document.

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