pre-selected objects in scene list

i have a few 'rogue' prop objects that always load into the scene pre-selected, e.g. one is a chest of drawers from KA's Harwood House, and i think i made one of the others myself...

the drawers are included in a group of furniture props. if i load the group, the list expands and the drawers will be highlighted

what property or checkbox do i need to change on the prop to stop this?

it's only a minor niggle, but still annoying to have a bunch of stuff selected in the scene list, add one of these items, which then destroys my selection by selecting itself instead.

Comments

  • crosswindcrosswind Posts: 10,276
    edited 6:10AM

    That's a default behavior, i.e. when you load a Subset or a Scene, the first Figure (not a Prop) in Scene pane will be automatically selected ~ There's no settings that can change this behavior AFAIK.

    Workarounds:

    For Scenes, you can write a Daz Script and place it in F2 > Scene > Post Open, so as to avoid auto-selection... 

    -------------------------------------------------------------------
    // DAZ Studio version 4.24.0.4 filetype DAZ Script
    Scene.selectAllNodes(false);
    -------------------------------------------------------------------

    For Scene Subsets, you have to use a Daz Script to override the default asset loading behavior. But you need to Create a Custom Action for the script and add a Shortcut to it. Each time you want to load a Subset, hit the shortcut keys. For example:

    -------------------------------------------------------------------
    // DAZ Studio version 4.24.0.4 filetype DAZ Script

    (function(){
        var paneMgr=MainWindow.getPaneMgr();
        if(!paneMgr)return;
        var asset=null;
        var pane=paneMgr.findPane("DzContentLibraryPane");
        if(pane){
            try{
                var assets=pane.getSelectedAssets();
                if(assets&&assets.length){
                    for(var i=0;i<assets.length;i++){
                        var a=assets[i];
                        if(!a)continue;
                        try{
                            var path=String(a.getAsLocalFile());
                            if(path&&path.toLowerCase().substr(path.length-4)==".duf"){
                                asset=a;
                                break;
                            }
                        }catch(e){}
                    }
                }
            }catch(e){}
        }
        if(!asset){
            var smartPane=paneMgr.findPane("DzSmartContentPane");
            if(smartPane){
                try{
                    var tab=smartPane.getCurrentTab();
                    if(tab){
                        var selected=tab.getSelectedAssets();
                        if(selected&&selected.length){
                            for(var j=0;j<selected.length;j++){
                                var sa=selected[j];
                                if(!sa)continue;
                                try{
                                    var sf=String(sa.getAsLocalFile());
                                    if(sf&&sf.toLowerCase().substr(sf.length-4)==".duf"){
                                        asset=sa;
                                        break;
                                    }
                                }catch(e){}
                            }
                        }
                    }
                }catch(e){}
            }
        }
        if(!asset){
            MessageBox.warning("No DUF asset selected.","Scene Subset Loader","&OK");
            return;
        }
        var contentMgr=App.getContentMgr();
        if(!contentMgr)return;
        if(contentMgr.loadAsset(asset,true)){
            Scene.selectAllNodes(false);
        }
    })();

    -------------------------------------------------------------------

    Edit: Or, you can write a plugin to monitor each asset loading, then clear the selection... But that'll be another more complex task ~~

    Post edited by crosswind at
  • clivewil2clivewil2 Posts: 134

    crosswind said:

    That's a default behavior, i.e. when you load a Subset or a Scene, the first Figure (not a Prop) in Scene pane will be automatically selected ~ There's no settings that can change this behavior AFAIK.

    wow ok, i was surprised by that - i was sure i'd broken it somehow, but the original prop does it too. ok, mystery solved. 

    i'll definitely look at that script, thanks for posting it 

Sign In or Register to comment.