Ejemplo n.º 1
0
        public override bool Execute(BaseDocument doc)
        {
            C4dApi.MessageDialog("ManagedPlugIn");
            C4dApi.GePrint("Console Output: ManagedPlugIn");

            BaseObject ob = doc.SearchObject("MeinObjekt");

            if (ob == null)
            {
                C4dApi.MessageDialog("Kein Objekt namens MeinObjekt gefunden");
            }
            else
            {
                for (BaseTag tag = ob.GetFirstTag(); tag != null; tag = tag.GetNext())
                {
                    int tagType = tag.GetTypeC4D();
                    if (tagType == C4dApi.Texpresso)
                    {
                        C4dApi.GePrint("XPresso-Tag gefunden");
                        C4dApi.GePrint(tag.GetName());
                    }
                }
            }
            return(true);
        }