for about one month now...but all i try doesn't change a thing...
I'm writing an exporter for Indigo and so far all the features are included..
the only thing nagging me is the fact that the rolloutfloater kind of disappears after
exporting once.. when i press the script button again it looks like below..
ihave to rerun the script to bring it back up again...
sure this is just a stupid fault by me ....
so here is what it looks like before and after exporting...
before : http://img60.imageshack.us/img60/5084/indwin8um.jpg after : http://img293.imageshack.us/img293/7679/nowindow7ym.jpg
here is the part of the code managing the rolloutfloater..
utility spread "Indigo Exporter" (
button bt_export "Open Exporter"
on bt_export pressed do (
if ( indwin != undefined ) do (
-- unregister and close any existing floaters
) catch ()
if (server == undefined) then (
server = "undefined"
if (cameras != undefined) then (
c = getNodeByName cam_array
camname = c.name
c_lens = 0.5*(GetRendApertureWidth()/tan(c.fov * 0.5))
indwin = newRolloutFloater "Max2Indigo v0.4" 320 600 100 100
addRollout indsettings indwin rolledUp:true
addRollout indtonemap indwin rolledUp:true
addRollout indenvironment indwin rolledUp:true
addRollout indcamera indwin rolledUp:true
addRollout indrender indwin rolledUp:false
addRollout indabout indwin rolledUp:false
) else (
messagebox "No Camera in scene"
--make dockable bar
--cui.RegisterDialogBar indwin maxSize:[216,-1] minSize:[216,-1] style:#(#cui_dock_vert, #cui_floatable, #cui_handles)
--cui.DockDialogBar indwin #cui_dock_left
i also use the enable/disablesceneredraw() command to speed up exporting....
before it wasn't really a problem .. but now it kind of sticks even without enable/disablesceneredraw()
Help would be greatly apprechiated....
thanks in advance