[Closed] Problem with Render – Unknown System Exception
Alright got it squared away to the problem here is the deal.
try (
print "Aligning start"
$Dummy_Light_Setup_LookAt.pos.x = theCamera.pos.x
$Dummy_Light_Setup_LookAt.pos.y = theCamera.pos.y
print "Aligning done"
) catch
print "Couldn't find the Dummy_Light_Setup_LookAt"
NOTE: when it crashes both “Aligning start” and “Aligning done” are displayed in the listener, it just errors out on the render() line.
I’ll explain the setup
In the template file there is a Dummy Object (“Dummy_Light_Setup”) with a LookAt constraint on it’s rotation pointing to another Dummy Object (“Dummy_Light_Setup_LookAt”)
. All the script has to do is align the X and Y pos of the lookat constraint to the camera’s position so it aligns the light_rig (linked to the Dummy_Light_Setup) to the camera.
if I comment out the lines:
$Dummy_Light_Setup_LookAt.pos.x = theCamera.pos.x
$Dummy_Light_Setup_LookAt.pos.y = theCamera.pos.y
it renders fine. In fact attempting to access any position on the $Dummy_Light_Setup_LookAt makes it crash, although rotating it works fine, is there a way I can get the vector the camera is facing and rotate the Dummy_Light_Setup to be the same? or perhaps align the z axis of the Dummy_Light_Setup with the camera’s direction?..I’m completely baffled. Is there another way to line-up the camera and the light_rig?
-Thanks!
I think we need some more code to help you out with this. Is the code in your last post part of a script controller? Where have you defined the theCamera variable? There’s a lot of things that could be causing an exception, so it’s hard to come up with any meaningful answers without seeing the bigger picture.
Cheers,
Martijn
Please post all of your code so I can look at it.
Also, please don’t add any dependencies to the script, it should stand alone.
Thanks
Chris J.
Thanks for the response Chris. I am trying to narrow down the problem and combine it into a single file. At the moment I’m using vray and would like to get it to crash using scanline, but that might be a large part of the crash. I will isolate and post the files today for you all to look at. Thanks as always,
Colin