nHair system

20 views
Skip to first unread message

likage

unread,
Aug 26, 2014, 5:35:49 AM8/26/14
to python_in...@googlegroups.com
I am trying to do a ribbon spine script but everytime when I tried running my code, it works the first time round and fails the second time when I have removed some of the elements in the nHair System in the first round.

I tried googling and echoing all commands to search how to add in a new hair systems but unable to do so.

Any ideas?

 def createPlane(self):
       
global nurbsPlane
       
# Create the nurbsPlane
        nurbsPlane
= cmds.nurbsPlane(n = "nurbsPlane", p=[0,0,0], ax = [0,1,0], w=1, lr=5, d=3, u=1,v=5, ch=1)
        cmds
.select(nurbsPlane, r=True)
       
# Cleanup the control vertexs
        mm
.eval("createHair 1 5 5 0 0 0 0 5 0 2 1 1;")
        cmds
.rename("hairSystem1Follicles", "hairSys_Follicles")
       
        cmds
.rebuildSurface(nurbsPlane, rpo=1, rt=0, end=1, kr=0, kcp=0, kc=0, su=1, du=1, sv=0, dv=3, tol=0.01, dir=0)


Reply all
Reply to author
Forward
0 new messages