RacoonBear
I watched a tutorial that made use of the group node.  When I went to connect the Cylinder to the Group node, instead of it instantly connecting, I got the connection editor ?
setup_group_node_Soup.jpg 
Reply 0 0
Rus
You might wanna try Houdini, and see how the group node work in that package.
Most of SOuP nodes works similar to Houdini.
Reply 0 0
RacoonBear
Pshipkov - Instead of [vtx]482 I get a long array of numbers when I type in 1 5 10 in the pattern field.  Although this is helpful, unless you were going to go into more depth, it doesn't tell me how the group node works, I want to know the pieces so I can put them together myself, if the documentation as you know, were a little in depth things would be different.  One of the group nodes examples, there was a sphere an a volume primitve, what I liked was the fact it made a pattern on the sphere, but kept the geometry all quads, if the group node can do this what else can it do, what else can the other nodes in Soup do but at this point I'm in a wheel chair when using Soup, I can't move.

Ruslan - How many nodes in Soup are identical to that in Houdini ? Can this be verified if I follow the documentation in Houdini on some of the Soup nodes I'll be able to understand the Soup equivalent  ?
Reply 0 0
plarson
I've found quite a bit of trial and error is necessary. Like going through and recreating the setups in all the example scenes that use the Group node. And noting all the settings. After some tinkering it makes sense.

When it comes to the Group node, you're often using its outComponents. If you're referring to the group_2.ma example scene, the Group node is setting the component list on the native Maya extrude node. What other Maya nodes use inputComponents? I don't know of a place that lists them all, but most of the modeling operations that involve selections do. And with some experimentation, one can figure out how they work. Like I noticed the Bridge edge node takes a single component list, but seems to internally sort edges into two groups by contiguity. If anything other than two contiguous groups of equal size are in the component list, it errors out. Which brings up the interesting idea of a more flexible bridge node. ;)
Reply 1 0
Rus

@RacoonBear  I don't mean its 100% identical, but the logic behind SOuP is similar to Houdini nodes.
I can see that in the nodes like computeVelocity, attribute transfer, scatter, point, etc.....and the group node is one of them. 

I'm not sure if that will be helpfull or even more confusing but here is the docs http://www.sidefx.com/docs/houdini13.0/nodes/sop/group

Reply 0 0
RacoonBear
Hi, the Houdini documentation helps to tell me what the group node is suppose to do, which is group points and primitives, I assume the Soup nodes do the same thing. 

Connect the Group Node to a sphere, for example, and from that point, that is where I am stuck on what to do next ?
Reply 0 0
pshipkov
Getting into the procedural workflow is not as straightforward as figuring out stack based app or one that completely insulates you from any technical details and presents us series of ui options instead.
It is similar like the paradox of using big object oriented api framework for example.
You have to know the objects in order to use them, but at the same time you cannot use them because you dont know them. Getting into the loop is iterative process where we find a "crack" in the system and start carving our place there step by step - gradually exploring and widening our understanding about the whole thing.
This is especially true if one is doing it for a first time.
Now back to our problem at hand.
So you can connect geometry to group node and then you get stuck at what to do next. You know that the group node can output geo components in different ways. You are not sure about the exact rules but by checking examples scenes and blindly, at this point, modifying grou parameters you get the group node to output different set ofcomponents.
Now the question is what you want to do with this information.
The best way for us to lift you from the wheelchair is to establish a target and try to hit it togather.
For example control interactively whaich components poly extrusion operates on ?
If that has appeal to you we can try to explain this in detail and clarify what the group node exactly does.
Let us know.
Reply 0 0
RacoonBear
Quote:
For example control interactively which components poly extrusion operates on ?


This is a good simple that hopefully should open my understanding of the group node, lets proceed with this. 
Reply 0 0
pshipkov
Ok,

create polygonal sphere. Select few faces and apply polyExtrude on them. This is the standard Maya workflow.
If one wants to extrude some more faces he selects them and applies poly extrude operation on them that creates new polyExtrude node in the dependency graph of the poly sphere.
Things getting little messy if some one wants to remove some the faces from previous extrusions.
Modelers don't bother to even look at the technical side of things and just remodel the geometry - delete extruded faces and fill the holes, etc. And that makes sense - it always works.
But if the polyExtrusions are not applied purely as a modeling task - but a part of a bigger (usually procedural or semi-procedural) system where artist needs to continuously adjust different parameters of it, including which faces get extruded - obviously remodeling + kill history is not going to work.
In this case we want to be able to control "on-the-fly" the list of components our polyExtrude node operates on.

Here is how it works - assuming we already have poly sphere with polyExtrude applied to some of its faces:
We start from this nodal network:  how_group_node_works1.png
and this result:
how_group_node_works2.png   

Now if you load the polyExtrudeFace1 node in the connection editor you will see that it has one attribute called inputComponents.
Run this mel command: getAttr polyExtrudeFace1.inputComponents
It will print something like this: // Result: f[259] f[278] f[297] //
You can manually change the face IDs by using this mel command: 
setAttr -type componentList polyExtrudeFace1.inputComponents 5 f[259] f[278] f[297] f[100] f[200] f[300]
This will effectively add 2 more faces to the list of components the polyExtrudeFace1 node operates on and you will see them extruded in the viewport.
In SOuP i have a little tool (under the wrench shelf button) called "edit components list". It allows you to quickly adjust component lists of any node by selecting components in the viewports.
So far so good. But this is not very procedural and fast to compute.

To accommodate for that we can use the group node.
Create new group node by pressing "tab" when inside node editor and type "group" in the  appeared on screen dialog. You can use the SOuP shelf menu later on, but first try to learn the exact steps.
Connect polySphere1.output to group1.inGeometry
Then connect group1.outComponentList to polyExtrudeFace1.inputComponents.
Notice how there are no extruded faces anymore in the viewport. There are ways to automatically inherit the existing list extruded components, but for now we focus on the main workflow.
Select the group node and open AE. Set "component type" to "mesh face" and type 1 5 10 100:150 in the "pattern" field.
how_group_node_works3.png

how_group_node_works4.png   

how_group_node_works5.png 

Run the next mel command: getAttr group1.outComponents
It will return this: // Result: f[1] f[5] f[10] f[100:150] // 
So basically the group node provides multiple ways to assemble on the fly component lists (and object groups) that can be consumed by other nodes in Maya. In this way we can alter the behavior of nodal chains in a procedural manner - without the need to remodel and/or continuously modify the nodal network to accommodate for the new requirements artist imposes on the system.

The group node provides numerous ways to generate component lists, or modify existing ones generated by other group nodes or standard maya operators.
I just explained how the "pattern" mode works.
range mode - provide start-end component IDs and then define a step, so when internally the group node loops through the start-end components it will assume all components that match the step.
normal/velocity - assume components with normal vectors orientation that match the criteria. There are two options there - global directional vector and angle between neighbor normal vectors.
depth - type some IDs inside the "initial components" field and then set the depth value to something above 0 - all neighboring components "depth" levels away from the start ones will be assumed
edge length, face area and face perimeter are self explanatory
weight map - connect weight map array to group.inWeightPP and all components with weights above the defined "weight threshold" will be assumed

mirror/boundary/invert are self explanatory

I will not talk about "animation control" here, let's first see how we do with the basics first.

Connect bounding object(s) to the group node to interactively influence the generated component lists based on "proximity". This is very easy to see how it works - just move the bounding object around and see how the polyExtrude node reacts to it.

input components - if you connect componentList to group.inComponents you can perform boolean operations between the input components and the ones generated by this node.



So go through these steps and let me know if something is still fuzzy.
Reply 1 0
Pizzaman

Hi Peter,

I'm take the opportunity of this thread to ask you something.
I've been given a tree with transparent cards used for leaves. As I prefer using full geometry leaves, I used the group node to select one point on every leaf and instance my geo at it. I have no problem using the step attribute in range mode to get the selection I want but I cannot offset my selection to take the relevant vertex.
I'm wondering why the "range" attribute doesn't affect the "step" one... range is before and should offset the components given to the step filter. This would give a lot more control to the user. Right now, it looks like the range works by cropping the list.
Correct me if i'm wrong.

Reply 0 0
pshipkov
you are right. it only trims.
i will check if "offset" option can be added easily.
Reply 0 0
RacoonBear
pskhipkov
The f[1], f[5], f[10] in your example represent the numbers on the face of the object, and f[100:150] is the range of polygons that should be affected at once, correct ? If so how can I find this what the numbers are on all of the faces of the object in-case suppose, I wanted to create a extrude on them ?
Quote:

Now if you load the polyExtrudeFace1 node in the connection editor you will see that it has one attribute called inputComponents

It looks as if it has more attributes then just the inputComponents attribute in the connection editor ?
Quote:

Connect bounding object(s) to the group node to interactively influence the generated component lists based on "proximity". This is very easy to see how it works - just move the bounding object around and see how the polyExtrude node reacts to it.


Do you mean the Bounding box of another object into the proximity of the group node, if so I tried this it wouldn't connect ?
Reply 0 0
Pizzaman

You can display the ID of every poly components with :

Menu Display>polygons>component IDs>... (face in your case)

Although it doesn't make sense when dealing with dense geometry. It's better to use a bounding object to create a selection on the fly.

Reply 0 0
RacoonBear
Pizzaman thanks, how do you turn it off ? :)
It does make more sense to create a bounding object, that is one of the questions I wrote in my previous message on how to use :)

This is really neat stuff and I've only done a taste test :)
Reply 0 0
Pizzaman

Use the same command to remove the display of the IDs.

Yeah... We all started with a "taste" test, and weren't able to create a cube without SOuP 2 months later :)

Reply 0 0
RacoonBear
PizzaMan - HaHa ! :)
I suppose I'll have to wait for Soup Jedi when he has time to reply to my other questions posted :)
Reply 0 0
Reply