Simply copy what is echoed in script log - this creates a tag on the object with all you need and only target object has to be loaded.
import c4d
from c4d import documents, plugins
#Welcome to the world of Python
def main():
def tool():
return plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
def object():
return doc.GetActiveObject()
def tag():
return doc.GetActiveTag()
def renderdata():
return doc.GetActiveRenderData()
def prefs(id):
return plugins.FindPlugin(id, c4d.PLUGINTYPE_PREFS)
c4d.CallCommand(100004788, 50032) # New Tag
tag()[c4d.ID_CA_CONSTRAINT_TAG_CLAMP] = True
tag()[50004,9] = 0
tag()[50004,1] = 4
tag()[50004,10] = True
if __name__=='__main__':
main()
c4d.EventAdd()