Jump to content

Changing Attributes in SOP Solver


Akabane

Recommended Posts

Hi, i'm trying to modify an attributes in a SOP Solver.

I created a popnetwork inside my standard SOP context, and at the end of it i appended an AttributeCreate SOP with a default value of 0.

Then i created a DOP Network, had my object into it, appended a sop solver to it, and i assured that i had all the attributes transferred (included the one i was interested to).

Inside the SOP Solver i used another AttributeCreateSOP that had as name the name of the attribute, and in the first Value i had the name of the var + 1 (ie: $ATTR + 1)

Then i ran the sim. In the spreadsheet the attributes stays at 1.

Why?

Is that because i'm using particles?

Of course i have "Deforming Geometry" on my dop object, else i don't see anything inside of DOPs.

Any help, pls!

Basically what i want to do is have those particles collide with a geometry, and have an attribute created for a few frames after the collision. For example i wanted to have a collision attribute that would increase in time, an attribute only created on the collided group.

Thanks for the help

Akabane

Link to comment
Share on other sites

you cant have a sop solver with deforming geometry because it re-reads the initial SOP source every frame reseting your values

what you do is you turn off deforming geometry, use another sop to do the attribute transfer, merge that into your sop solver and copy the attribute to the non deforming version, then back in your original sop, After the SOP Solver, you copy the new values to the animated geometry

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...