Band Numbers???
| Case number: | 845813-989640 |
| Topic: | Game: Tools |
| Opened by: | Darkknight900 |
| Status: | Open |
| Assigned: | Anonymous |
| Priority: | 4 |
| Type: | Feature |
| Opened on: | Friday, April 29, 2011 - 16:46 |
| Last modified: | Wednesday, May 11, 2011 - 23:48 |
Hi all, i just asked me how the bands are numbered, e.g. i create 20 bands and work with the first one in my recipe, i delete band 1 then work with the second...
both didn't work properly for me so i just wanted to ask how i get the number of each band...
The first time i thought it is everytime one band there so band 1 would be all the time one band but recipe crashed and rewrote my recipe, now i delete one band and increment the working band so:
work with band 1
delete band 1
work with band 2
delete band 2
<-- here is my problem since i don't come here to band 3 although i got many bands there...
so i hope you can answer my question how the bands are counted...
We not have tools to "mark" or read bands data.
Only way to accomplish your task is:
make table
bands=
{
--{bandNo,sS,sE,bLen,bStr},
{1,1,25,nil,1}, --if nil not setting lenght
{2,15,44,4,0.5), --etc
}
bandNo - band number
sS - start segment
sE - end segment
bLen - len of band
bStr - strength of band
and fill it w bands data you want and use it: delete all bands, set that you want to use, wiggle, whatever, delete bands...
try working from the top down when you're deleting. it may still be buggy, but it won't be quite as prone to bugs.
yes, it can work
while true do
local i=get_band_count()
if i>1 then
band_delete(i)
... [code]
else --if no bands left
break --while loop
end --if
end --while
| Status: Open » Resolved |
Thanks all so for my uses all works... thank you all!
We "just" need ability to read:
get_band_length(x)
get_band_strength(x)
get_band_start(x) --start segment (lower number)
get_band_end(x) --end segment (higher number)
| Status: Resolved » Open |
| Priority: 5-Low » 4 |
| Type: Question » Feature |
I think to select bands would be useful... so i want to start here the suggestion for the feature adding script support for selecting bands and also getting information about bands. With this we can also use select_all_bands()
band_set_strength(strength)
and not by adding the number for the band so just as the segments we must select them then... one step more but wonderful if more actions will be done with more then 1 band!
More about bands posted in feedback:
http://fold.it/portal/node/987917
http://fold.it/portal/node/987139
http://fold.it/portal/node/987948
http://fold.it/portal/node/988115
http://fold.it/portal/node/988359
http://fold.it/portal/node/983293
http://fold.it/portal/node/989369
http://fold.it/portal/node/989471
http://fold.it/portal/node/989471
http://fold.it/portal/node/989615
wow ;]



Can't answer the question sorry - but you could look at one of the Quake recipes and see how they manage bands and band changes.