HI again,
I have Also tried with get_sub_field, but not working:
<?php
$image_ids = get_sub_field('fotos_da_obra', false, false);
$shortcode2 = '[portfolio_slideshow slideheight=310 include="' . implode(',', $image_ids) . '"]';
echo do_shortcode( $shortcode2 );
?>