Skip to content

Instantly share code, notes, and snippets.

View egll-tech's full-sized avatar

Eduardo Guzman Lau Len egll-tech

View GitHub Profile
@tnydwrds
tnydwrds / fixOrthoCameraClippingPlanes.mel
Created January 15, 2018 04:01
Dirty MEL script to fix odd orthographic camera clipping planes with some scene units in Maya LT
/**
* Fix for system orthographic camera clipping planes not taking into account
* scene unit changes from centimeters.
*/
global proc foccp_fixOrthoCameraClippingPlanes() {
float $offset_amount = 100,
$near_clip_plane,
$far_clip_plane,
$cur_far_clip_plane,
$center_of_interest;