sry guys got it, didnt checked that i use v2.0 of Scrollgallery ??
Here the code with my customfield called “Gencode”
...
foreach($pictures as $picture) {
$getInformation = array();
$getInformation["pid"] = $picture->pid;
$getInformation["title"] = stripslashes($picture->alttext); // $picture->alttext;
$getInformation["desc"] = $picture->description;
...
if($useCaptions==true&&$useDesc==true&&stripslashes($picture["pid"])!="")
$afterimg .='<div>'.nggcf_get_field($picture["pid"],"Gencode").'</div>';
$afterimg .= '</div>';
...