Jump to content


xTools - xStudio Light Rig for Houdini


  • Please log in to reply
21 replies to this topic

#13 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 21 July 2012 - 08:03 PM

View Postjkunz07, on 21 July 2012 - 07:21 PM, said:

This might be good test geo
http://www.sidefx.co...pper&Itemid=150

I think that links wrong. Can you post it again?
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#14 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 21 July 2012 - 08:43 PM

Just about to call it quits for tonight.

Here's the first sample image. Nothing to impressive as it only has one light. At this stage I can't create more copies of the studio light (some Python code isn't working). So I have to unlock to edit parameters. Anyway tomorrow I'll have it fixed and will do something better.

Posted Image
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#15 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 22 July 2012 - 12:07 PM

Ok, I'm stuck again.

The xStudioLight asset has a multiparam block that has the same parameters copied from another asset called xStudioGobo. Each block of parameters is going to represent an instance of a xStudioGobo object inside an editable subnetwork of xStudioLight. So there is a button called "Update Network" that will create xStudioGobo nodes, and then map those parameters to the parameters in the xStudioLight.

So if I have 3 parameter blocks on xStudioLight, then 3 xStudioGobo nodes will be created. Each parameter in xStudioGobo will have an expression assigned to it, something like, ch("../../../../paramname")

Here's the Python code that is called by the button.

#
# Updates the inner network, creating xStudioGobo nodes
#
def updateGobo(node):
 up = '../../../../'
 net = hou.node('comp/gobo_network/do_not_edit')
 count = node.evalParm('goboFolder')
 for x in range(count):
 gobo = net.createNode('xstudiogobo')
 # Reverse map parameters from the xStudioGobo node to
 # parameters in the multiparam list on xStudioLight
 map = gobo.parms()
 for m in map:
 print m.name()
 m.setExpression('ch("'+up+m.name()+str(x+1)+'")')

It works ok for the regular parameters, but there is a Color Ramp parameter on xStudioGobo and it's not working right. While the two default points have expressions set, when I add more points on xStudioLight those points aren't added to xStudioGobo. I think my problem is that I'm not really linking the parameters together, but just simply setting an expression.

Can anyone tell me how to link two parameters together in Python?

Thanks

EDIT: Maybe what I'll do is add a callback to the color ramp on the xStudioLight, and then update the xStudioGobo with the number of color points when they change. That seems to be the only part that's not working.

Edited by hopbin9, 22 July 2012 - 12:51 PM.

Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#16 jkunz07

jkunz07

    Initiate

  • Members
  • PipPip
  • 136 posts
  • Joined: 22-June 11
  • Location:Los Angeles, CA
  • Name:John Kunz

Posted 22 July 2012 - 01:50 PM

View Posthopbin9, on 21 July 2012 - 08:03 PM, said:

I think that links wrong. Can you post it again?

http://www.sidefx.co...e21c6b83afde9f6

http://www.sidefx.co...7&versionid=747

Edited by jkunz07, 22 July 2012 - 01:52 PM.

MrKunz.com
Blog | Demo Reel | Resume

#17 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 22 July 2012 - 01:59 PM

View Postjkunz07, on 22 July 2012 - 01:50 PM, said:


That is cool, thanks. I'll use that for the next set of samples. :)
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#18 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 22 July 2012 - 04:40 PM

How do you add a node to a subnet and connect the first subnet input to the input of the new node? (in Python)

I tried hou.Node.createNode, hou.Node.createInputNode and hou.Node.createOutputNode but only createNode added the new child inside the subnet.

EDIT: It took some figuring out in the Python Shell, but I got it working.

subnetnode.node("child").setInput(0,subnetnode.indirectInputs()[0])

Edited by hopbin9, 22 July 2012 - 05:11 PM.

Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#19 jkunz07

jkunz07

    Initiate

  • Members
  • PipPip
  • 136 posts
  • Joined: 22-June 11
  • Location:Los Angeles, CA
  • Name:John Kunz

Posted 22 July 2012 - 05:34 PM

It would be cool to have a setup with reflector cards like this maybe: http://polygonspixel...ost/16524379750
MrKunz.com
Blog | Demo Reel | Resume

#20 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 23 July 2012 - 06:48 AM

View Postjkunz07, on 22 July 2012 - 05:34 PM, said:

It would be cool to have a setup with reflector cards like this maybe: http://polygonspixel...ost/16524379750

That beer can is awesome. xStudio will include xStudioReflector but I'm not completely sure what it's feature set should be. I have one week left to finish in time for the release date. So I don't know how many samples scenes there will be, but I definitely will add some to the next release.

I've attached a screen grab of a xStudioReflector. Any feature requests or ideas would be great. There are a few options to customize the material, but I think it's missing the option to make the material glow without illuminating the scene.

Posted Image
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#21 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 28 July 2012 - 09:17 PM

Hi,

Here's a teaser image of xStudio that I made tonight. Still needs a lot of work to get ready, but it's coming along.

Posted Image
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#22 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 29 July 2012 - 06:17 PM

A few examples of some procedural light sources using xStudio. I think I'm getting a good handle of what features it needs. Made a list tonight of some changes that will make it easier to use.

Posted Image
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users