Search - User list
Full Version: VOP SOP: how do I get the number of primitives in input?
Root » Technical Discussion » VOP SOP: how do I get the number of primitives in input?
anon_user_43052452
It is my first VOP SOP and I need to get the number of primitives in input 0. I have seen a function “int nprimitives( string filename )” and it seems to work only with a filename. Is there an equivalent with an input that I have not seen? And moreover, I'd like not to go into coding already, so if there is such an equivalent, is it accesible within VOP? or only with VEX functions?
and actually I am still not clear with the differences between VOP and VEX. are all VEX functions wrapped into VOP? when do I need to go into coding instead of making a visual graph?

thanks in advance for a few hints about this
old_school
See my response in the General Forum.
adam_glazier
The expression nprims returns the number of primitives: nprims(“../path_to_your_input”)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB