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

    How to delete a specific object

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 227 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 01/09/2016 at 23:16, xxxxxxxx wrote:

      Sorry for this noob question i want to delete a object (Foreground Object) using python and i have no idea how to use Obj.Remove() 
      and i want to delete that specific object but the python tag is on the null and controlling the userdata i dont want to move the tag to delete it
      please help

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

        On 02/09/2016 at 01:16, xxxxxxxx wrote:

        Hello and welcome,

        could you describe what you actually are doing? How is a Python tag or user data related to your question?

        Please notice that a Python tag is supposed to work as an expression. This means that it is executed every time the scene is executed. This is done in a background thread and therefore you are not allowed to change the scene from a Python tag. This includes deleting objects.

        Best wishes,
        Sebastian

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