Ejemplo n.º 1
0
def saveFx6(path, inputs):
        actor, material = ss6Node.getSelection()
        if not path:
                return None
        DIR_MANAGER.set('fx6', os.path.dirname(path))
        fx6 = makeEffectDict(material.ShaderTree(), inputs)
        if fx6:
                data = repr(fx6)
                quickCompress(path, data)
Ejemplo n.º 2
0
def saveFx6(path, inputs):
    actor, material = ss6Node.getSelection()
    if not path:
        return None
    DIR_MANAGER.set('fx6', os.path.dirname(path))
    fx6 = makeEffectDict(material.ShaderTree(), inputs)
    if fx6:
        data = repr(fx6)
        quickCompress(path, data)
Ejemplo n.º 3
0
def askSelectInputs():
    actor, material = ss6Node.getSelection()
    root = material.ShaderTree().Node(0)
    inputs = []
    for ip in root.Inputs():
        inputs.append(ip.InternalName())
    selector = SelectInput(inputs)
    if selector.Show():
        return selector.get()
    else:
        return None
Ejemplo n.º 4
0
def askSelectInputs():
    actor, material = ss6Node.getSelection()
    root = material.ShaderTree().Node(0)
    inputs = []
    for ip in root.Inputs():
        inputs.append( ip.InternalName() )
    selector = SelectInput(inputs)
    if selector.Show():
        return selector.get()
    else:
        return None
Ejemplo n.º 5
0
def askEditGroups():
    actor, material = ss6Node.getSelection()
    editor = GroupEditor(actor)
    return editor.Show()
Ejemplo n.º 6
0
import os, sys, poser

os.chdir(os.path.dirname(poser.AppLocation()))

sys.path.append(
    os.path.join("Runtime", "Python", "PoseWorks", "ShaderSpider", "Data"))

import ss6Node, ss6Parse, ss6Gui, ss6Materials

actor, material = ss6Node.getSelection()

names = ss6Gui.askMaterials(actor)
if names:
    materials = ss6Materials.namesToMaterials(actor, names)
    matOptions = ss6Gui.askSetMatOptions()
    if matOptions:
        paths = ss6Gui.askPosePaths()
        if paths:
            ss6Parse.createSelectPz2(actor, materials)
Ejemplo n.º 7
0
import os, sys, poser

os.chdir( os.path.dirname(poser.AppLocation()) )

sys.path.append(os.path.join("Runtime","Python","PoseWorks","ShaderSpider","Data"))

import ss6Node, ss6Parse, ss6Gui, ss6Materials

actor, material = ss6Node.getSelection()

names = ss6Gui.askMaterials(actor)
if names:
    materials = ss6Materials.namesToMaterials(actor, names)
    matOptions = ss6Gui.askSetMatOptions()
    if matOptions:
        paths = ss6Gui.askPosePaths()
        if paths:
            ss6Parse.createSelectPz2(actor, materials)
Ejemplo n.º 8
0
def askEditGroups():
    actor, material = ss6Node.getSelection()
    editor = GroupEditor(actor)
    return editor.Show()