Jump to content

copy different pieces to different point issue


Gabriel_Wolf

Recommended Posts

I can see a couple of things wrong with your setup. Not sure why you have a for each there that you aren't using that is not why isn't working but not needed. Also, your objects that you want to copy they all should be at {0,0,0}. You are using a deprecated technique.
I think it will be better if you post .hip

Check out MOPs

https://www.motionoperators.com/

This as well

https://www.toadstorm.com/blog/?p=493

Or have a look at, you are missing some fundamentals 

 

Link to comment
Share on other sites

  On 8/14/2019 at 6:52 PM, Gabriel_Wolf said:

 The main idea is to copy random pieces of the tetris obj to the points of the cube using the class attribute. 

Expand  

I've guessed that. What's wrong with my first example? In this new example file I just added transform sop to move pieces to the origin.

tetris_02.hipncFetching info...

Link to comment
Share on other sites

It is working. Thank you. Let me ask don't you want to mentoring a couple hours? I pay for it of course. Maybe we could make a skype session or something. 

It is a really good thing that you showed me how to do that. But my main goal is understand the workflow. And there are some things I don't really undestand in your setup. Mainly the VEX.  And my main issue is with the vex. For example I posted another question here where I asked how to add a custom velocity for only particles which are under age 1? And somebody wrote the same solution I've already knew. But I can't write it with vex.

Link to comment
Share on other sites

  On 8/14/2019 at 7:57 PM, Gabriel_Wolf said:

 Let me ask don't you want to mentoring a couple hours?

Expand  

I think my level not enough to be a mentor. This forum is the golden mine of knowledge and you can get it for free just should search carefully.

  On 8/14/2019 at 7:57 PM, Gabriel_Wolf said:

It is a really good thing that you showed me how to do that. But my main goal is understand the workflow. And there are some things I don't really undestand in your setup. Mainly the VEX.  And my main issue is with the vex. For example I posted another question here where I asked how to add a custom velocity for only particles which are under age 1? And somebody wrote the same solution I've already knew. But I can't write it with vex.

Expand  

Workflow of this example is pretty simple. We take points and set randomly attribute i@id,  whose value is fit from 0 to quantity of pieces in .obj file. This attribute say “blast2” node if i@class equal to i@id then delete all but not this one.  For-loop iterate by points, one point per iteration which number gives us node “meta” from detail attribute i@iteration with expression.

 detail("../meta", iteration, 0)

At each iteration “blast2” with expression

`@class=`point("../OUT_pts", detail("../meta", iteration, 0), "id", 0)`

takes a point, finds i@id value of the point with number of iteration, and deletes pieces with i@class not equal i@id. Copy to points sop in for-each loop copies that piece to the point which is iterating at this moment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...