Per Point-Per object e.t.c.

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Victorcg
Posts: 91
Joined: 26 Jun 2009, 08:59

Per Point-Per object e.t.c.

Post by Victorcg » 20 Aug 2011, 16:32

Hello all
When using Test inside null with "If" statement, I have such troubles:

1. I can't create per object data, for example Build Array from Set.

2. I can' use Add Point node.

Are there any solutions for this? Thank You.

Image

Uploaded with ImageShack.us

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 16:43

Re: Per Point-Per object e.t.c.

Post by Chris_TC » 20 Aug 2011, 18:29

I think the Test Inside Null is per point, so both ports of your If statement have to be per point as well.

Get Point Position is per point, so you should be able to plug it in. Set Data is always per object* You'd generally put that behind the If statement (plug the result of the If into the Set Data).
Add Point is also per object I think.

Can you describe what you're trying to do? For every point you're getting a True or False. What's the next step from there?

*EDIT: Just to clarify, the output of Set Data is per object. The input can be anything.

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 16:43

Re: Per Point-Per object e.t.c.

Post by Chris_TC » 20 Aug 2011, 18:46

Paul used an interesting analogy in his video about context, he used a class of school kids.

Let me try to explain why your tree can't work:
Your class consists of 7 and 8 year old kids. You start off by asking every kid "Are you 7 years old?". Some of them say YES. Some of them say NO. That's your Test Inside Null.

The branch that you're trying to plug into the True port goes like this:
1) Every kid tells you where their desk is positioned in the room.
2) You mentally make a list of all desk positions.
3) In your notebook you have one page that's labeled "self.aaaaa". You plan on writing the list of desk positions onto that page. But you want to write it down only if the If statement is true. Well, there's a problem. Is the If statement true or false? Some kids said that they are 7 years old. Some of them said that they are not 7 years old. So do you write down the list onto your page "self.aaaaa" or not? If you take all the kids' answers into account, you cannot come to a conclusion. You would have to for example pick only one kid's answer or average out their answers because you only want ONE answer.

Victorcg
Posts: 91
Joined: 26 Jun 2009, 08:59

Re: Per Point-Per object e.t.c.

Post by Victorcg » 20 Aug 2011, 19:37

Chris_TC wrote:Paul used an interesting analogy in his video about context, he used a class of school kids.

Let me try to explain why your tree can't work:
Your class consists of 7 and 8 year old kids. You start off by asking every kid "Are you 7 years old?". Some of them say YES. Some of them say NO. That's your Test Inside Null.

The branch that you're trying to plug into the True port goes like this:
1) Every kid tells you where their desk is positioned in the room.
2) You mentally make a list of all desk positions.
3) In your notebook you have one page that's labeled "self.aaaaa". You plan on writing the list of desk positions onto that page. But you want to write it down only if the If statement is true. Well, there's a problem. Is the If statement true or false? Some kids said that they are 7 years old. Some of them said that they are not 7 years old. So do you write down the list onto your page "self.aaaaa" or not? If you take all the kids' answers into account, you cannot come to a conclusion. You would have to for example pick only one kid's answer or average out their answers because you only want ONE answer.
Thank You!
I understood, that it was context mismatch.
I managed to solve the task by creating array of vectors and then adding points from it. And the same thing with the first question.