Programmatically adding blend slider to blendshapes node

   1629   2   1
User Avatar
Member
161 posts
Joined: May 2015
Offline
Hello everyone,

I am trying to add a blend slider to a blendshapes node using python. Anyone has a clue on how to do that?
User Avatar
Staff
138 posts
Joined: Dec. 2010
Offline
hi carlos,
how's this:

n = hou.node(“/obj/geo1/blendshapes1”)
nblends = n.parm(“nblends”)
nblends.set(3)
slider1 = n.parm(“blend1”)
slider1.setAlias(“targetshape1”)
slider2 = n.parm(“blend2”)
slider2.setAlias(“targetshape2”)

-j
john mariella
Senior Technical Director
SideFX
www.sidefx.com
User Avatar
Member
161 posts
Joined: May 2015
Offline
That is exactly what I was looking for. Thanks a lot Johm!
  • Quick Links