Ejemplo n.º 1
0
def writeMaskDrivers(fp, proxyData):
    fp.write("#if toggle&T_Clothes\n")
    n = 0
    for prx in proxyData.values():
        if prx.type == 'Clothes' and prx.mask:
            (dir, file) = prx.mask
            mhx_rig.writePropDriver(fp, ["Hide%s" % prx.name], "1-x1", 'use_textures', n+1)
            n += 1            
    fp.write("#endif\n")
    return
Ejemplo n.º 2
0
def writeHideAnimationData(fp, prefix, name):
    fp.write("AnimationData %s%sMesh True\n" % (prefix, name))
    mhx_rig.writePropDriver(fp, ["Hide%s" % name], "x1", "hide", -1)
    mhx_rig.writePropDriver(fp, ["Hide%s" % name], "x1", "hide_render", -1)
    fp.write("end AnimationData\n")
    return