Python ObjectData Help

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 !

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