Check if Object is deformer

On 29/09/2017 at 06:30, xxxxxxxx wrote:

Hello, is it possible to check if an Object is a Deformer?
I can check if an object is a Generator like this:

obj_info = obj.GetInfo()
is_generator = obj_info & c4d.OBJECT_GENERATOR

But trying this with c4d.OBJECT_DEFORMER
seems not to work.

On 29/09/2017 at 07:16, xxxxxxxx wrote:

Look at https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.plugins/index.html?highlight=object_modifier

c4d.OBJECT_MODIFIER and c4d.OBJECT_HIERARCHYMODIFIER  is what you need

On 02/10/2017 at 01:22, xxxxxxxx wrote:

Hi holgar, thanks for writing us.

With reference to your request, beside what gr4ph0s already stated, I warmly invite you to have a look to the flags used to describe the type and behavior an BaseObject is supposed to deliver.

Best, Riccardo.

On 02/10/2017 at 01:43, xxxxxxxx wrote:

Thank you a lot. That helped me.