def test_modeling():
"""Modeling workflow is functional"""
transform, generator = cmds.polyCube(name="body_PLY")
group = cmds.group(transform, name="ROOT")
cmds.select(group, replace=True)
maya.create(
name="modelDefault",
asset=ASSET_NAME,
family="mindbender.model",
options={"useSelection": True}
)
# Comply with save validator
cmds.file(save=True)
publish()
asset = io.find_one({
"type": "asset",
"name": ASSET_NAME
})
assert asset
subset = io.find_one({
"parent": asset["_id"],
"type": "subset",
"name": "modelDefault"
})
assert subset
version = io.find_one({
"parent": subset["_id"],
"type": "version",
})
assert version
assert io.find_one({
"parent": version["_id"],
"type": "representation",
"name": "ma"
}) is not None
评论列表
文章目录