Jump to content


point number locking


  • Please log in to reply
3 replies to this topic

#1 cloudfx

cloudfx

    Illusionist

  • Members
  • PipPipPip
  • 308 posts
  • Joined: 07-December 07
  • Location:Midgar
  • Name:cloudfx strife

Posted 22 May 2012 - 07:40 PM

Hi,

I have a grid and uv attribute using cam project.
I attribute copied uv from the grid's first frame time shift(locked to frame 1) since I am animating the grid but want to have the uv data at frame 1.

It is working so far but once I delete some point on the grid, the uv order get messed up since the point number get changed.

How would I fix this/work around this?

Thanks,

#2 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 172 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 22 May 2012 - 09:42 PM

Take a grid with no animation as you want uvs when frame no is 1, apply texture first. Then perform operations like deleting or animating the grid.

#3 eetu

eetu

    Illusionist

  • Members
  • PipPipPip
  • 479 posts
  • Joined: 30-May 07
  • Location:Helsinki, Finland
  • Name:eetu m

Posted 22 May 2012 - 09:49 PM

Are you sure you really need to copy the attribute? Sounds like you could just do the UVProject on the base mesh before any animation.

If you really need to, you could add an id attribute to the base mesh, with an initial value of $PT. Then copy your uvs with a point("../timeshift1", $ID, "uv", 0 ) etc


edit: ohh, sadhu was faster

Edited by eetu, 22 May 2012 - 09:51 PM.

A shitty theory is better than no theory at all

#4 cloudfx

cloudfx

    Illusionist

  • Members
  • PipPipPip
  • 308 posts
  • Joined: 07-December 07
  • Location:Midgar
  • Name:cloudfx strife

Posted 23 May 2012 - 08:31 AM

View Posteetu, on 22 May 2012 - 09:49 PM, said:

Are you sure you really need to copy the attribute? Sounds like you could just do the UVProject on the base mesh before any animation.

If you really need to, you could add an id attribute to the base mesh, with an initial value of $PT. Then copy your uvs with a point("../timeshift1", $ID, "uv", 0 ) etc


edit: ohh, sadhu was faster



Yes, I did deleting after the uv copying to my original mesh with rested position.

I am getting my mesh from cloth solver, and when it tears off point number gets increased.
I solved this problem with attribute copy to Vertices, not Points and it is now working.

Thanks !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users