Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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 ?
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 !
On 13/01/2011 at 03:58, xxxxxxxx wrote:
It's not possible to avoid that object generators are made editable.
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)
cheers, Matthias