Replying to my own question. We need to define it using
Code that works.
from c4d.modules import mograph as mo
Cloner = op.GetObject()
md = mo.GeGetMoData(Cloner)
AllTags = Cloner.GetTags()
for Tag in AllTags:
if Tag.GetType() == c4d.Tmgselection:
SelTag = mo.GeGetMoDataSelection(Tag) #This is the new line
I always wanted to be able to convert Scripts to Plugins but didn't know how. Thanks to some great people, here is the bare minimum code required to make a Cinema 4D Python Plugin.
Save this as a .pyp file, and put it in a folder in the Plugins. It should appear in the Extensions menu.
Mind you, this ONLY functions like a Script, click-run-done. No UI, no Attributes, nothing...
There's a ton of other stuff you can read here:
from c4d import gui
def Execute(self, doc):
#Put your executable Code here...
if __name__ == "__main__":
id=1059500, #Get Unique ID from https://plugincafe.maxon.net/c4dpluginid_cp
help="put some Help test here...",