Hi all ,
I have a string parameter with the string of “grp_letter_1” I want to replace the 1 in the string with my own float attribute called $FOO which returns 1 2 3 4 5 6 7 over $NFRAMES etc etc. Currently this fails “grp_letter_$FOO” I seem to remember this is because a string cannot return the value of a float. Can anyone point me in the right direction ?
Rob
? returning a float value in a string
6477 7 1-
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- オフライン
-
- zarti
- Member
- 330 posts
- Joined: 7月 2007
- オフライン
-
- Erik_JE
- Member
- 300 posts
- Joined: 1月 2010
- オフライン
circusmonkey
Hi all ,
I have a string parameter with the string of “grp_letter_1” I want to replace the 1 in the string with my own float attribute called $FOO which returns 1 2 3 4 5 6 7 over $NFRAMES etc etc. Currently this fails “grp_letter_$FOO” I seem to remember this is because a string cannot return the value of a float. Can anyone point me in the right direction ?
Rob
grp_letter_`$FOO` should work fine.
Drive, monkey, drive!
-
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- オフライン
-
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- オフライン
-
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- オフライン
This is because Group parm doesn't accept local variables, since it cannot evaluate per prim/point. $F is a global variable, so it does work this way.
Anyway, this doesn't matter, because if you put $COUNTER into Filter Expression parm (Delete by Expression), you have pretty much the same setup working (though I'm not sure if this is what you wanted ultimately)
Anyway, this doesn't matter, because if you put $COUNTER into Filter Expression parm (Delete by Expression), you have pretty much the same setup working (though I'm not sure if this is what you wanted ultimately)
-
- zarti
- Member
- 330 posts
- Joined: 7月 2007
- オフライン
circusmonkey
See attached for a simple example of what I mean the delete sop takes box_`$F` in the group parm but fails with box_`$COUNTER` ! any ideas why ?
Rob
i believe `$F` works because it is a Global Expression Variable .
`$COUNTER` doesnt work there because it is the same thing as writing `$PR` or `$PT` ( !? ) .
–
edit: SYmek was faster ..
except the things that cannot be seen , nothing is like it seems .
-
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- オフライン
-
- Quick Links

