From: Barry-H
Hi,
Anybody know how to add a new lighting theme to existing Dino’s script in v5.
I can’t seem to get it into the ini file.
Cheers
Barry
From: Zooen
Hi Barry-H
I think it’s in the LightingOptions.htm file that you can create a new style.
You might need to make a change or add something to the LightingPresets.menu.htm file, but I’m not sure!
From: Michael Gibson
Hi Barry, install instructions for Dino's lighting script are here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=11816.2
When you run it, you should see a dialog like this:
Then push the "Add button" to make a new one from the "Lighting style" , "Specular highlights", "Metallic lighting", "Fixed light positions" controls.
Note that it won't get written to moi.ini immediately, it will get written there when MOI closes down.
- Michael
Image Attachments:
LightingOptions1.png
From: Barry-H
Hi Michael,
my lighting option htm is within Max's custom ui .
I have added a new lighting option to the htm but its not showing in the dropdown menu.
Thats my issue its not being read by moi.ini
Thanks
Barry
From: Michael Gibson
Hi Barry,
re:
> I have added a new lighting option to the htm but its not showing in the dropdown menu.
Can you please post your edited .htm with your new lighting option in it?
- Michael
From: Barry-H
Hi Michael,
here is my htm file.
Barry
Attachments:
LightingOptions.htm
From: Michael Gibson
Hi Barry, thanks for posting that.
So editing it there isn't working because that is the default values which will only be used the first time that someone runs the dialog. Once you have some lighting data stored in the moi.ini file, that default data won't be used.
The easiest way to add a new setting is to use the "Add" button on the lighting dialog. If you run this script does the dialog show up ok for you? :
script: /* Opens Lighting Options Dialog */ moi.ui.createDialog( 'moi://appdata/customui/LightingOptions.htm' );
You can run that by selecting the above line and doing Ctrl (or on Mac Cmd) + c to copy it, then in MoI press the tab key to put focus in the XYZ input control and then Ctrl+v paste then Enter.
If that doesn't work please let me know where your LightingOptions.htm file is located, the path will need to be adjusted.
When you push "Add" on the dialog the new one should then show up on the menu.
- Michael