I'm confused about doc
and c4d.documents.GetActiveDocuments()
in a Python Tag
.
Here is the code in a Python Tag
:
import c4d
#Welcome to the world of Python
def main():
aDoc = c4d.documents.GetActiveDocument()
print("Active Doc:\n{}\ntime:{}".format(aDoc, aDoc.GetTime().Get()))
print(" ")
print("doc:\n{}\ntime:{}".format(doc, doc.GetTime().Get()))
print(" ")
If I scroll playhead in the scene, both aDoc
and doc
with their time is same.
If I start an image sequence render,
aDoc
and doc
report the same object,
but "time" of aDoc
still represents the playhead in the scene,
and "time" of doc
represents the current render frame's time.
Is there some difference between the two of them?
And Is there any function that can produce the same result of op
in a Python Tag
?