JoshJ Posted January 27, 2009 Share Posted January 27, 2009 I'm working on a python script, and I'd like to create takes based on objects in the scene. I found that the takes functionality is not implemented yet, so I tried to use hscript within python to create the takes, which works fine. However, I'd like to name the takes based on the strings in my python variables. How can I pass the variable contents into hscript? or would I need to use some temp disk files to transfer the info? Or, if there is another way to do this, I'd like to know that too. However it would be nice to see how much python and hscript can cooperate. Quote Link to comment Share on other sites More sharing options...
edward Posted January 27, 2009 Share Posted January 27, 2009 Contrived example with probably the wrong syntax. cmd = "take" + str(myIntVar) hou.hscript(cmd) Quote Link to comment Share on other sites More sharing options...
JoshJ Posted January 27, 2009 Author Share Posted January 27, 2009 I think I understand where you're going with that... so thanks I'll give it a try! Contrived example with probably the wrong syntax. cmd = "take" + str(myIntVar) hou.hscript(cmd) 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.