Hello,
I have 50 objects that every one of them should use a python tag. Tag Script will be same for 50 objects but that script will be changed time to time so I tried to import this script from python tags but code running infinitely. I placed my custom code (customCode.py) to "C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37" library and I added a python tag and its script is below:
import c4d
import customCode
def main():
print ("test")
customCode.myFunction(op)
my function is running correctly. But tag script runs infinitely. I printed "test" text and I could see this situation.
Could anyone give me information what I did wrong here please?
By the way customCode.py is like below:
import c4d
def myFunction(getObj):
obj=getObj.GetObject()
var1=obj[c4d.ID_USERDATA,9]