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)


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c90783a8-5b80-48c1-853b-2fa5dae7a1e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to