This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$suffix="_MIA"; | |
$shaderName=`ls -sl`; | |
$newName=($shaderName[0] + $suffix); | |
$sgName=($shaderName[0] + "_SG"); | |
disconnectAttr ($shaderName[0] + ".outColor") ($sgName + ".surfaceShader"); | |
shadingNode -asShader -name "MIA_MAT_X" "mia_material_x"; | |
if (`connectionInfo -isDestination ($shaderName[0] + ".color")`) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = Math.round(thisComp.layer("DOF_Layer").effect("Chapter")("Slider").value) | |
b = Math.round(thisComp.layer("DOF_Layer").effect("Scene")("Slider").value) | |
c = comp("CH" + a + "_SC" + b); | |
c.layer(thisLayer.name).effect("Gaussian Blur")("Blurriness") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = thisComp.layer("Depth Of Field").effect("Focal Point")("Slider") | |
z = transform.position[2] | |
m = thisComp.layer("Depth Of Field").effect("Lowest Z-depth")("Layer").transform.position[2] | |
r = (thisComp.layer("Depth Of Field").effect("Highest Z-depth")("Layer").transform.position[2]) - (thisComp.layer("Depth Of Field").effect("Lowest Z-depth")("Layer").transform.position[2]) | |
n = ((z - m)/r) | |
d = (f - n) | |
if (d < 0) d = (d *(-1)) | |
d * Math.pow(thisComp.layer("Depth Of Field").effect("Mutliplier")("Slider"),thisComp.layer("Depth Of Field").effect("Falloff")("Slider")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$EmailFrom = “from@gmail.com” | |
$EmailTo = “to@gmail.com” | |
$Subject = “Your Render Is Ready!” | |
$Body = “Check the Image Folder because your Render is Done!” | |
$SMTPServer = “smtp.gmail.com” | |
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587) | |
$SMTPClient.EnableSsl = $true | |
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“user”, “pass”); | |
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Render Targets | |
shadingNode -asRendering renderTarget -name BG_Target; | |
shadingNode -asRendering renderTarget -name FG_Target; | |
shadingNode -asRendering renderTarget -name BG_FG_Target; | |
shadingNode -asRendering renderTarget -name COMP_Target; | |
//Layered Textures | |
shadingNode -asTexture layeredTexture -name BG_FG_Texture; | |
shadingNode -asTexture layeredTexture -name COMP_Texture; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.cmds as mc | |
import maya.mel | |
def renameWindow(): | |
renameWin = "RenameRenderLayerWindow" | |
if maya.cmds.window(renameWin,ex=True): | |
maya.cmds.deleteUI(renameWin) | |
mc.window(renameWin, title = renameWin, widthHeight = (300,400)) | |
mc.columnLayout() |
NewerOlder