hi @ferdinand
thank you very much for your response!
the python_init.py
does the job perfectly
great support, thanks a lot!
best,
marc.
hi @ferdinand
thank you very much for your response!
the python_init.py
does the job perfectly
great support, thanks a lot!
best,
marc.
hello guys,
i finally updated to R23 and have now an issue with my startup code.
to load and set some variables i used the $g_prefspath/python37/maxon_generated/__init__.py
file.
in R21 it worked perfectly. now in R23 the script didn't execute anymore.
i tried to delete the library and tested it on different machines.
does some of you have an idea?
or is there a better solution to execute some python code at startup?
thank you for any help!
best,
marc.
manuel, you are my hero!
thanks a lot! it is working
sorry, i totally missed the point with the python generator.
i never used the generator before, i always used the tag.
what is the difference? when should i use the tag and when the generator?
thank you again!
marc.
hi manuel,
thanks a lot for your answer!
i'm not sure if i understood it correctly.
i tested it in my scene, but it didn't work. maybe you can have a short look to my scene?
thanks a lot!!
i'm a bit despread, because i have no idea how to solve my problem.
best,
marc.
hi,
i put it in a Python Tag on the new camera.
hello c4d guys!
i have a problem with updating my scene during the rendering. in the viewport it's working. so i don't understand exactly how the scene updating mechanism is working and need help from you experts
what i try to do:
i have a weird alembic camera form maya, with a animated film back offset. the alembic camera in c4d does not interpret this correctly. so i calculated the translation formula and wrote a python script. as i said in the viewport it's doinge exactly what i want, but during rendering it's just frozen on the first frame. i tested it with the c4d.EventAdd() command, but it's still not working. here is my code:
import c4d
shotNumber = '0050'
alembicCam = 'abcCam_' + shotNumber
standardCam = 'cam_' + shotNumber
def main():
acbCamObj = doc.SearchObject(alembicCam)
offsetX = acbCamObj[1028637,5103,1118]
offsetY = acbCamObj[1028637,5103,1119]
newCam = doc.SearchObject(standardCam)
newCam[c4d.CAMERAOBJECT_FILM_OFFSET_X] = offsetX * 0.042107036086
newCam[c4d.CAMERAOBJECT_FILM_OFFSET_Y] = (offsetY * 1.0043387434) * -1
if __name__=='__main__':
main()
thanks a lot for any help!
best,
marc.