With this script for the object names :
script: /* Edit object name */ var pp = moi.ui.propertiesPanel; if (pp.show && pp.numSelectedObjects > 0) { pp.editName(); }
If I select all objects with the same name: I change the name of all objects.
If I select an object (or a surface) : I give it a new name.
With the script for the object styles :
script: /* Edit style of selected object */ var styleindex = moi.ui.propertiesPanel.styleIndex; var dialog = moi.ui.createDialog( 'EditStyleDialog.htm?index=' + styleindex ); dialog.window.doModal();
If I select all the objects of the same style: I change the name of the style (and its colour).
If I select an object : I change the name of the style (and its colour).
I would like to have :
I select all the objects of the same style: I change the name of the style (and its colour).
I select an object (or a surface): I change the colour - or I create a new style if I change the name.
So a script for object styles with the same behavior as for object names.
Iwan
|