ZC
Hi!! peter

I think this arrayExpression node should be more powerful. Now only a few parameters can be used.
I feel that this arrayExpression node also lacks some attributes, they are
   1、 time, $FF
   2、 frame,$F 
   3、 length. $LEN. If I want to change the last element, I can write: if ($ ID == $          LENGTH - 1) {$ E = $ F;}.   {0,3,5,2,4,1}   $LEN =6 

   4、 max and min, $MAX   $MIN     {0,3,5,2,4,1}  $MAX=5, $MIN=0
   6、 Sum, $SUM     {0,3,5,2,4,1} $SUM = 0+1+2+3+4+5 
   7、 product, $PRO  {0,3,5,2,4,1} $PRO = 0*1*2*3*4*5
   8、 sorting from small to large and sorted from big to small.  {0,3,5,2,4,1}——>> {0,1,2,3,4,5}  {5,4,3,2,1,0}

Can this node connect to the time node by default? Just like this point node.

I do not know how $ NODE is used, can you tell me?

thank you ! peter    : )
Quote 0 0
pshipkov
Good point.
Will make it optional, because this will slow-things down.
Quote 0 0
ZC
Hi! peter

I do not know the usage of $NODE. can you tell me? Or give me a project.

thank you!  :)
Quote 0 0
pshipkov
It gives you the name of the node.
So you can do things like:
listConnections -s 1 -d 0 ($NODE+".inArray");
or basically navigate inside THIS node's upstream graph.
Quote 0 0
ZC
thank you !! peter  Although I do not understand now  :)
Quote 0 0
ZC

The group node pattern pattern in addition to enter 11:22, you can also enter other expressions? Like houdini so

c.png 
d.png 
Quote 0 0
pshipkov
The problem is that i Maya does not provide good enough interface on API level to MEL. So using MEL as a scripting language inside nodes is expensive for computing.
The proper solution is to implement a new scripting language, but this is not trivial.
That's why the syntax is limited to space and column symbols.
I can probably add the "^" one.

The simple solution is to use two group nodes with "combine" option on the second one set to "subtract".
This is fast !
Quote 0 0
ZC
Oh, my dear Peter, you misunderstood what I mean. I do not want you to use other languages, I would like to know, here can write other expressions, is not all the Mel function can be imported here?

Such as input rand (10) or  sin (11) * 22% 3  or   max (1,3)  and so on

Thank you sincerely!   Dear peter
Quote 0 0
pshipkov
I think i understood you well.
In order to use expressions like the ones you mentioned, we need scripting language of sort.
The two obvious solutions are:
1. Use MEL as a backend
2. code simple parser that understands limited number of expressions like "rand", "%", "min", etc and combinations of them. That will be faster for computing but limited in nature.

Or with other words - the answer right now is that you cannot use expressions like this in the group node, because such functionality is not implemented.
Quote 0 0
pshipkov
Btw, i spent few minutes early today and upgraded the arrayExpression node with new local variables.
Will be in the next update.
Quote 0 0
ZC

The soup system has made a lot of change in my technical level !

Thank you sincerely!
 my dear peter   : )

Quote 0 0

Add a Website Forum to your website.