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!
how i can attain the minimum value in array
5567 3 1-
- laishi1010
- Member
- 24 posts
- Joined: July 2008
- Offline
-
- laishi1010
- Member
- 24 posts
- Joined: July 2008
- Offline
-
- Simon
- 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.
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
-
- laishi1010
- Member
- 24 posts
- Joined: July 2008
- Offline
-
- Quick Links