How to correlate band_add_segment_segment(...) and band_set_strength(index, strength)

Started by smith92clone

smith92clone Lv 1

the current function band_add_segment_segment(…) does not return any information.

It would be very useful if this function returned the current band number assigned to the newly created band.

The current method requires the following:

band_add_segment(5,7)
band_index = get_band_count() – assuming the band just created has the highest band count
band_set_strength(band_index,1.0)

Returning the band number results in the following code

band_index = band_add_segment(5,7)
band_set_strength(band_index,1.0)

Much easier to follow and to write