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)
Exemple #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)
Exemple #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
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
Exemple #5
0
def askEditGroups():
    actor, material = ss6Node.getSelection()
    editor = GroupEditor(actor)
    return editor.Show()
Exemple #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)
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)
def askEditGroups():
    actor, material = ss6Node.getSelection()
    editor = GroupEditor(actor)
    return editor.Show()