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

    Python ObjectData Help

    PYTHON Development
    0
    2
    769
    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
      Helper
      last edited by

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

      On 04/01/2011 at 15:13, xxxxxxxx wrote:

      hi

      1)  i want to know if i make a plugin object with python
      and can i disable the make editable ?

      when i use the c4d.OBJECT_GENERATOR

      for example i make this simple script

      def GetVirtualObjects(self, op, hh) :
       cube=c4d.BaseObject(c4d.Ocube)
        return cube

      so this return a cube but i don't want to use Make Editable in cinema4d the command
      can i disable ?

      1. can i hide some object for the Object List with python ?

      i want to know if i can use dynamic ?

      def GetVirtualObjects(self, op, hh) :
       cube=c4d.BaseObject(c4d.Ocube)
       cube.MakeTag(DynamicID)
        return cube

      so the cube dosent fall , but when i make editable work fine i see a cube with dynamic tag
      this happend because is cache() ?

      Thank you !

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

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

        On 13/01/2011 at 03:58, xxxxxxxx wrote:

        1. It's not possible to avoid that object generators are made editable.

        2. Do you want to hide the object from the Plugin menu? In this case you can pass the PLUGINFLAG_HIDEPLUGINMENU flag during plugin registration.

        for example:

          
        plugins.RegisterObjectPlugin(id=PLUGIN_ID, str="Py-RoundedTube", g=RoundedTube, description="roundedtube", icon=icon, info=c4d.OBJECT_GENERATOR|c4d.PLUGINFLAG_HIDEPLUGINMENU)  
        
        1. Dynamics should work on the virtual objects if you set Inividual Elements to All for Dynamics collisions.

        cheers,
        Matthias

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