Such yaratish uchun Xgen ko’rsatmalari


Download 1.48 Mb.
bet3/6
Sana22.04.2023
Hajmi1.48 Mb.
#1378800
1   2   3   4   5   6
from maya import cmds


attr_name = 'groom_guide'


# get curves under xgGroom
curves = cmds.listRelatives('xgGroom', ad=True, type='nurbsCurve')


# create new group
guides_group = cmds.createNode('transform', name='guides')


# tag group as groom_guide
cmds.addAttr(guides_group, longName=attr_name, attributeType='short', defaultValue=1, keyable=True)


# forces Maya's alembic to export curves as one group.
cmds.addAttr(guides_group, longName='riCurves', attributeType='bool', defaultValue=1, keyable=True)


# add attribute scope
# forces Maya's alembic to export data as GeometryScope::kConstantScope
cmds.addAttr(guides_group, longName='{}_AbcGeomScope'.format(attr_name), dataType='string', keyable=True)
cmds.setAttr('{}.{}_AbcGeomScope'.format(guides_group, attr_name), 'con', type='string')


# parent curves under guides group
for curve in curves:
cmds.parent(curve, guides_group, shape=True, relative=True)
Groom_Width atributi
Mayya uchun kenglik qiymati boshqa DCC ilovalaridan farqli o'laroq, ularni olish va kuyovni qurishda foydalanish uchun Alembic for Grooms Spetsifikatsiyasiga amal qilishi mumkin bo'lgan maxsus xatti-harakatlarga ega.
Maya kenglik qiymatlarini to'g'ridan-to'g'ri egri chiziqlarga eksport qilishi mumkin, shuning uchun maxsus atributni eksport qilishning hojati yo'q groom_width; import qiluvchi ushbu qiymatlarni avtomatik ravishda ushbu atributga aylantiradi. groom_wdithUnreal Engine-ga import qilish paytida atribut kuyovda mavjud bo'lsa, uning ustiga yozilmaydi . Agar groom_wdithko'rsatilmagan bo'lsa yoki kenglik qiymatlaridan o'zgartirilmasa, quruvchi 1 santimetr qiymatiga qaytadi.
Mayyadan Alembikga eksport qilish

  1. Mayya tilida eksport qilmoqchi bo'lgan Guides va Group_ID egri chiziqlarini tanlang.

Har bir tugun o'ziga xos nomga ega bo'lishi kerak.


  1. Download 1.48 Mb.

    Do'stlaringiz bilan baham:
1   2   3   4   5   6




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling