by tchoa » Fri Nov 19, 2010 9:25 pm
tchoa
Fri Nov 19, 2010 9:25 pm
As some users have, and so do I, have problems with the maya2octane 'exporter' script I'll try to help there.
First, I have to say that the script could be improved and does include weird and even wrong things.
Coding for maya is part of my daily work so I guess I can discuss about that... and remember I'm not there to blame bazuka.
So, concerning the focal point issue, that's because of a misunderstanding. The 'Focal Depth' is not the focal length or fov (field of vue). It's the focal point and should be written in the command line launching octane by this flag : --cam-focaldepth.
It's not a good idea to present that attribute in the maya2octane UI.
This parameter could be set/keyframed with the camera's centerOfInterest attribute or the focusDistance attribute wich are pretty much the same thing (note that you can connect the centerOfInterest -> focusDistance).
So, a workaround for you at this time could be to not use the 'Focal Depth' of the maya2octane script and replace some lines in the script (could be more solid; be done once...) by adding these lines :
$cmdLine += " --cam-focaldepth " + (getAttr (`optionMenuGrp -q -v activeCam` + ".focusDistance"));
after line 368 and 375
and
$animCmdLine += " --cam-focaldepth " + (getAttr (`optionMenuGrp -q -v activeCam` + ".focusDistance"));
after line 474, 484 and 491
This should have been done since...
Hope that helps.
F
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go