samboosa Posted February 18, 2013 Share Posted February 18, 2013 What I have so far are several levels of points, each representing a higher floor of a building and having a 'level' attribute. What I could (and want to) do is partition each level based on the attribute, and then calculate the distance to the next point per point in a foreach using the level attribute as a filter. My question is, is there a quicker way to do this? I'm generating the points in a python sop, so could i do something like this in python or a vop? Quote Link to comment Share on other sites More sharing options...
kgoossens Posted February 18, 2013 Share Posted February 18, 2013 Hi Jasper, Do you have an example scene you can show? It's kind of hard to judge how to optimize without the (example) file. Quote Link to comment Share on other sites More sharing options...
RogerW Posted February 19, 2013 Share Posted February 19, 2013 Hey, Is this what your looking for? Its a VOP's solution Hope it helps. length.hip Quote Link to comment Share on other sites More sharing options...
samboosa Posted February 19, 2013 Author Share Posted February 19, 2013 Hi Jasper, Do you have an example scene you can show? It's kind of hard to judge how to optimize without the (example) file. Hello Kim, Please see the attachment. Right now you only see building cluster 83, so if you Imagine, if I were to 'foreach' hundreds of building clusters and then measure the point distances it could get slow. point_levels.hipnc Quote Link to comment Share on other sites More sharing options...
kgoossens Posted February 19, 2013 Share Posted February 19, 2013 (edited) Hello Kim, Please see the attachment. Right now you only see building cluster 83, so if you Imagine, if I were to 'foreach' hundreds of building clusters and then measure the point distances it could get slow. Hi Jasper, the facadeGrid2 node is a missing otl can you add this one as well? More specifically it is missing the *.py code # Couldn't find Python code. Please check that # oplib:/Sop/facadeGrid?Sop/facadeGrid.py is in the proper location. Edited February 19, 2013 by kgoossens Quote Link to comment Share on other sites More sharing options...
samboosa Posted February 19, 2013 Author Share Posted February 19, 2013 Kim, thanks for your concern! The file is in my attachment. Regardless, I think that trying to what I want with my own python sop is good practice, but I just don't know enough python to be able to do it effectively. It's much faster if I just stick to the normal workflow = I created a copy node/ add/ foreach and I am basically able to do what I want to do...without python (alas). OPcustom.otl 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.