sulcgroup / oxdna-viewer

oxView: Visualization and editing tool for DNA/RNA nanotechnology and oxDNA/oxRNA configuration analysis
GNU General Public License v3.0
49 stars 19 forks source link

Feature request: UI shortcut for toggleBaseColors(), also option to change base colors from default grey #85

Closed dhollis6 closed 2 years ago

dhollis6 commented 2 years ago

When I'm creating images I often find myself going into the scene api files to change assignment of toggleBaseColors() to a different color, then calling this function in the api. Would be nice to have a button for this in the Colors section of the View tab. (As far as I know the Edit Color Palette option only affects backbone colors...)

edit: terminology

zoombya commented 2 years ago

If you have a visual style you usually adhere to, i would suggest to have a style.js script file doing smth along the lines of:

// define new colors for the nucleotides.
nucleosideColors = [new THREE.Color(0x5E005E),new THREE.Color(0x5E005E),new THREE.Color(0x5E005E),new THREE.Color(0x5E005E),];
// needs to be toggled twice to switch between Grey and Color
api.toggleBaseColors();api.toggleBaseColors();

which you drag drop on the scene, instead of setting things in the UI