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

    Selecting Only Merged Objects

    Scheduled Pinned Locked Moved PYTHON Development
    1 Posts 0 Posters 176 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 28/12/2011 at 07:21, xxxxxxxx wrote:

      Hello everyone,

      I am trying to select merged objects using python.

      What I want to be able to do is select only the merged objects in the scene and then run a "center object axis" command on them.

      I was able to get the objects to merge but I can't select only the merged objects. I don't want to select all, but only the objects that I have merged.

      Your help would be much appreciated.

      bellow is my code:

      import c4d
      from c4d import gui
      #Welcome to the world of Python

      def main() :
          doc = c4d.documents.GetActiveDocument()
          path="Temp/temp.obj"
          c4d.documents.MergeDocument(doc, path, 1);
          c4d.CallCommand(1011982);
          c4d.EventAdd();
          
          
      if __name__=='__main__':
          main()  
             
      Thank you 🙂

      Anand

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