how i can attain the minimum value in array

   5567   3   1
User Avatar
Member
24 posts
Joined: July 2008
Offline
dear friend;
I have this problem of how i can attain the minimum value in array a month of Sundays。
for example:I have a geometry,How I can know the minimum value of its Y axial,I know in sop,I can use spreadsheet to view,but how I can use vexsop to attain the minimum value.
please tell me ,thanks!

Attachments:
minimum.hip (89.7 KB)

User Avatar
Member
24 posts
Joined: July 2008
Offline
its like softimage's get array minimum node
User Avatar
Member
2199 posts
Joined: July 2005
Online
You can use attribPromote to get the minimum from an array of attributes on the geometry.
Do you need to do this inside Vops?

If yes inside vops it looks like you need to use the inline Vop to write some vex code. The min function works with arrays but isn't exposed as a vop that will work that way.

Look in the help for VEX Arrays and scroll down near the bottom it lists the min function as a function that works with vex arrays.

If you just want the minimum Y value of an object use the bbox expression.
The trick is finding just the right hammer for every screw
User Avatar
Member
24 posts
Joined: July 2008
Offline
oh,thanksimon

your ways and means is very very good good!

I hope you become my friend and welcome you to our hometown.
  • Quick Links