Hello world Posted October 22, 2011 Share Posted October 22, 2011 I wrote a script to find the number of lights in the obj level,for every light I want to create a take //finds the number of lights in the scene and stores in lightsh if lightsh[0]: hou.hscript('takeadd -c -p Main lightsh[0]') say suppose if there is a point light in the scene by name pointlight1 I want to create the take by name pointlight1 but in my case i get lightsh_0_ Please help me out on how to get the name same as that of the name of the light we creat Thank you. Quote Link to comment Share on other sites More sharing options...
graham Posted October 22, 2011 Share Posted October 22, 2011 You need to properly convert your variable value to a string using some sort of string operation such as the following. This assumes lightsh is list of node names. hou.hscript('takeadd -c -p Main %s' % lightsh[0]) hou.hscript('takeadd -c -p Main ' + lightsh[0]) hou.hscript('takeadd -c -p Main {0}'.format(lightsh[0])) Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted October 23, 2011 Share Posted October 23, 2011 Mantra might already be able to do what you're trying to do, that is if you're trying to create a pass of something per light. See the extra image planes, there are options to export variables and then export variables per light. Disregard if that's not what you're trying to do. Quote Link to comment Share on other sites More sharing options...
Hello world Posted October 24, 2011 Author Share Posted October 24, 2011 Is there any reference or tutorial for exporting light passes in Houdini? Quote Link to comment Share on other sites More sharing options...
villain Posted October 24, 2011 Share Posted October 24, 2011 Is there any reference or tutorial for exporting light passes in Houdini? http://vimeo.com/6017969 http://www.sidefx.com/docs/houdini11.0/rendering/deeprasters Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.