#=================================================================
# - - Shader for Voilet Hair
# by Robynsveil
#=================================================================
import poser
from rvHair import *
#======================================
# NODE MANAGEMENT
#=================
plist1 = [] # make my primary parameter list
plist2 = [] # make my primary parameter list
def nh(node):
h = node.height
if h is None:
h = 29 + 17 * len(node.Inputs)
if node.showPreview:
h += 200
return h
def setPos(node,pos):
node.pos = (pos[0], pos[1])
pos[1] += nh(node)
def setClpsdPos(node,pos):
node.pos = (pos[0], pos[1])
pos[1] += 45
def hackPos(surface, nodelist1 = None, nodelist2 = None):
global PList, tempList, fullList
if nodelist1 is None:
nodelist1 = PList
print 'hackPos nl1 =',nodelist1
surface.lvl = 1
x = 4
y = 4
surface.pos = (230, y)
pos = [x, y]
for node in nodelist1:
setPos(node, pos)
pos = [x, y]
if nodelist1: