Cannoth Posted January 28, 2009 Share Posted January 28, 2009 Ok, so its late and my brain hurts. Hopefully this will be an easy question for all you fantastic people. I'm writing my first python script to deal with some particles. #cycle through all particle points for checkPoint in geo.points(): #Want to evaluate the current particle's ID number currentID = !!what do i type to get that value!!! I haven't seem to be able to find the answer to that. So i'm turning to you guys Thanks, C Quote Link to comment Share on other sites More sharing options...
graham Posted January 28, 2009 Share Posted January 28, 2009 You can get the ID by using the hou.Point.attribValue() function: currentID = checkPoint.attribValue("id") Quote Link to comment Share on other sites More sharing options...
Cannoth Posted January 29, 2009 Author Share Posted January 29, 2009 Thanks for the reply. I was close to getting it right. New question for you guys. In the process of writing this script, I'm implementing it through creating a New Operator Type. The operator only wants to be brought into the sopnet not the popnet. Can I not make a python node inside a popnet? Quote Link to comment Share on other sites More sharing options...
graham Posted January 29, 2009 Share Posted January 29, 2009 Unfortunately Houdini does not currently support Particle python operators; only SOPS and Objects. The alternative would be to attempt to do it using VEX or VOPS, or a surface operator after your POP network. 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.