kzchen
March 31, 2011 06:40:29
Hi guys,
The attached file is a simple setup where each point has a increasing $CR. I'd like to write a “moment” frame into point's attribute when the $CR is reaching to 1, like the hittime in Popnet. I tried couples of ways but I can't figure it out. Could you guys give me some hints or ways to deal with such the situation? Thanks in advance!
goldfarb
March 31, 2011 18:14:59
add an atribute_create
point
float
write value
value = if($CR >= 1, 1, 0)
note this will only be true while the $CR value is >= 1 if you animate the boxes away again this valur will go back to 0…
HTH
kzchen
March 31, 2011 20:51:01
Hi Arctor,
Thanks for your reply. But it's not what I want. Let me clarify my question in detail. For example, whenever any point's increasing $CR reaches to 1.0, and then a customized attribute will record the “moment frame” at the same time. If I wrote an expression like “if( $CR >= 1, $F, -1 ),” of course it wouldn't not record the moment frame. I tried to use Dop w/ Sop solver, but I failed. Hope my explanation could be clear!
Soothsayer
April 1, 2011 06:06:58
Try chops.
redpaw
April 1, 2011 13:25:23
I've been trying to do something like this as well, chops sort of worked for me using triggers and such, but I've found that the “animated” vs “static” mode in chops is still a bit nebulous for doing this sort of thing.
My main issue is that “animated” seems to be way too slow to be usefull for any sort of point based switching on geo that has even a reasonable number of points. Its trying to make a separate channel for each point and that is resulting in a huge amount of data obviously.
if anyone has any good examples of this method using the faster “Static” settings, that would be awesome
-johnc
liuxiaolin
April 1, 2011 15:11:33
I think this is what you want
Darric
April 1, 2011 19:35:48
File read/writes are a bit nasty, and I try to avoid CHOPs where I can (although you're arguably much better served there) - so here's my favourite implementation of this sort of data persistence, using POPs.
Incidentally this is one of my favourite POPs gimmicks, I use it a bunch.
liuxiaolin
April 2, 2011 05:54:13
haha
i mean based on some data-preserving structure we can use the vex in that file , like pop or dop(sop solver) if you have primitives.
use file read/write is because i'm a bit lazy
kzchen
April 4, 2011 02:51:14
Hi guys,
Really thanks you for answering my question. That's awesome! It's a pity to miss your great discussion due to lie on a bed with a severe flu! I will digest your great files!