kursad Posted June 8, 2010 Share Posted June 8, 2010 Hi I am trying to generate rules for Lsystems via Python SOP. I created my script, it works fine as a standalone app , it does create what I want. Now I want to integrate into L-System Sop. I figure that I can create a Python SOP and write over the Lsystem rules channel. But I am slowly getting into Python for Houdini. Could someone give me a basic lead on this one? I know I can create a rules text file via Python and let Lsystem to read it, which is a solution but at this point I want some automation thanks Quote Link to comment Share on other sites More sharing options...
kursad Posted June 10, 2010 Author Share Posted June 10, 2010 Any suggestions on how to change parameters upstream via Python SOP? Quote Link to comment Share on other sites More sharing options...
danilo2 Posted June 11, 2010 Share Posted June 11, 2010 Any suggestions on how to change parameters upstream via Python SOP? What do tou exactly want to achieve? Quote Link to comment Share on other sites More sharing options...
kursad Posted June 11, 2010 Author Share Posted June 11, 2010 danilo2 I am trying to achieve what I described in my first post. I want to be able to manipulate premise and rule channels of L-system SOP via Python. Quote Link to comment Share on other sites More sharing options...
danilo2 Posted June 12, 2010 Share Posted June 12, 2010 something like that? lsys.hipnc pytest1.otl Quote Link to comment Share on other sites More sharing options...
kursad Posted June 12, 2010 Author Share Posted June 12, 2010 danilo2 Thanks for the files. This is quite close to what I was looking for. I originally want to modify the lsystem node without specifing a node path. I am trying to modify an lsystem node that is connected to a python sop. So the Python sop modifies channels of a node that is connected to itself directly. Thanks for the files again, they have helped me to figure out couple things. Quote Link to comment Share on other sites More sharing options...
danilo2 Posted June 12, 2010 Share Posted June 12, 2010 (edited) No problem you want to write: hou.pwd().inputs()[0] ...... look at the documentation Edited June 12, 2010 by danilo2 Quote Link to comment Share on other sites More sharing options...
kursad Posted June 13, 2010 Author Share Posted June 13, 2010 thanks for pointing out, I shoudl start using Python shell more often as well. Thanks for your help again 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.