Autodesk Maya - Как изменить материал по умолчанию

Published: 26 January 2024
on channel: TutorCG
194
15

В этом видео будет показано как сменить
дефолтный материал, котоырй создаётся по умолчанию,
и применяется на все созданые примитивы.
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
● группа ВКонтакте - https://vk.com/3DevCG
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
● RuTube TutorCG - https://rutube.ru/channel/43736780/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
● Сайт: TutorCG - https://sites.google.com/view/tutorcg
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
● Телеграмм - https://t.me/CG_Seller
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
● Магазин CG-Seller - https://cg-seller.exaccess.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
● Поддержать автора: https://sites.google.com/view/tutorcg...

Script - Изменить дефолтный материал

Добавить скрипт «userSetup.mel» в:
C:\Users\_NamePC_\Documents\maya\scripts

Изменить канал Color (Shader Blinn)
«evalDeferred("{\setAttr lambert1.color 0.048 0.048 0.048;\}");»
Изменить канал Specular Color (Shader Blinn)
«evalDeferred("{\setAttr blinn1.specularColor -type double3 0 0 0 ;\}");»

--Скопировать скрипт--

global proc m341_defaultBlinn()
{
string $allMats[] = `ls -mat`;/
int $switch = 1;
for ($item in $allMats)
{
if (`gmatch $item "blinn1"`)
{
$switch = 0;
print "blinn1 already exists";
break;
}
}

if ($switch == 1)
{
shadingNode -asShader blinn;
string $defaultBlinn[] = `ls -sl`;
connectAttr -f ($defaultBlinn[0] + ".outColor") initialShadingGroup.surfaceShader;
}

{
evalDeferred("{\setAttr blinn1.color 0.048 0.048 0.048;\}");
evalDeferred("{\setAttr blinn1.specularColor -type double3 0 0 0 ;\}");
}
}
scriptJob -compressUndo 1 -runOnce 0 -event "SceneOpened" "m341_defaultBlinn";


Watch video Autodesk Maya - Как изменить материал по умолчанию online without registration, duration hours minute second in high quality. This video was added by user TutorCG 26 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 194 once and liked it 15 people.