How do I access one of the components of the $LIFE attribute from a particle network? According to the spreadsheet view, the $LIFE attribute is in fact two floats, so how do I access one of them in an expression? I've tried $LIFE and variations on this, but it doesn't seem to work. I intend to use one of the $LIFE attributes in a Copy SOP that is appended to my POP network, but I can't access it.
Thanks,
YBM
Using a particle network's $LIFE attribute
14576 9 1-
- YoBeardMaestro
- Member
- 23 posts
- Joined: 11月 2007
- Offline
-
- stevenong
- Member
- 1634 posts
- Joined: 7月 2005
- Offline
-
- YoBeardMaestro
- Member
- 23 posts
- Joined: 11月 2007
- Offline
-
- stevenong
- Member
- 1634 posts
- Joined: 7月 2005
- Offline
-
- YoBeardMaestro
- Member
- 23 posts
- Joined: 11月 2007
- Offline
Okay, actually managed to answer my own question. The $LIFE attribute is actually only a single float that does indeed represent the relative life of the particle (from 0 to 1), which is what I wanted in the first place. This is apparently different from the Life attribute of the particles themselves.
However, it does still beg the question of: how would I access the point attributes Life and Life in expressions? Or, more generally, what is the method to access point attributes in the Copy SOP's parameter expressions?
YBM
However, it does still beg the question of: how would I access the point attributes Life and Life in expressions? Or, more generally, what is the method to access point attributes in the Copy SOP's parameter expressions?
YBM
-
- houdinick
- Member
- 164 posts
- Joined: 4月 2008
- Offline
It confuses me to, for what ever reason on the details tab there seem to be more attributes than, according to the help, there are variables.
Nick Nimble
VFX blog - http://www.nicknimble.com [nicknimble.com]
Facebook - http://www.facebook.com/nicknimble [facebook.com]
Twitter - https://twitter.com/Nick_Nimble [twitter.com]
VFX blog - http://www.nicknimble.com [nicknimble.com]
Facebook - http://www.facebook.com/nicknimble [facebook.com]
Twitter - https://twitter.com/Nick_Nimble [twitter.com]
-
- tamte
- Member
- 9111 posts
- Joined: 7月 2007
- Offline
-
- houdinick
- Member
- 164 posts
- Joined: 4月 2008
- Offline
Is there a overview for what variable holds which attribute from the details view?
Nick Nimble
VFX blog - http://www.nicknimble.com [nicknimble.com]
Facebook - http://www.facebook.com/nicknimble [facebook.com]
Twitter - https://twitter.com/Nick_Nimble [twitter.com]
VFX blog - http://www.nicknimble.com [nicknimble.com]
Facebook - http://www.facebook.com/nicknimble [facebook.com]
Twitter - https://twitter.com/Nick_Nimble [twitter.com]
-
- tamte
- Member
- 9111 posts
- Joined: 7月 2007
- Offline
I am not aware of that
but you have list of Local variables in help to each node which uses some hardcoded variables. For example Point SOP, Transform SOP, most POPs etc.
They are not necessarily linked to some existing attribute (like $BBX, $NPT. etc.).
However your custom attributes which are represented by variables can be seen by middle clicking on the node. There is Custom Variable Mappings section where you can see the corresponding pairs
but you have list of Local variables in help to each node which uses some hardcoded variables. For example Point SOP, Transform SOP, most POPs etc.
They are not necessarily linked to some existing attribute (like $BBX, $NPT. etc.).
However your custom attributes which are represented by variables can be seen by middle clicking on the node. There is Custom Variable Mappings section where you can see the corresponding pairs
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- YoBeardMaestro
- Member
- 23 posts
- Joined: 11月 2007
- Offline
-
- Quick Links