Majik Primer: MoI's Lighting Options and You!  1-13  14-33  34-53  54-68

Previous
Next
 From:  Frenchy Pilou (PILOU)
5222.14 In reply to 5222.13 
Ok

This script take only one more than the default ?
Or the 12 above by mike ?
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5222.15 In reply to 5222.14 
Hi Pilou,

> This script take only one more than the default ?
> Or the 12 above by mike ?

The script that I posted above just takes one particular group of settings, you can set it to any one of the 12 that Mike has shown above. Then when you trigger it, it will switch between that mode and back to the default mode again when you trigger it a second time.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5222.16 In reply to 5222.15 
No possibility to chain the 12 in one line?
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5222.17 In reply to 5222.16 
Hi Pilou,

> No possibility to chain the 12 in one line?

It would be possible - it would need a bigger script with all the various settings in it of course.

Instead of investing the time writing a big script like that I'd rather wait until I can focus more properly on making a UI based control for switching different modes, a single enormous script is kind of hacky.

It would be generally similar to that existing one if you wanted to work on coding one though!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5222.18 In reply to 5222.17 
No problem
It was just by curiosity :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Denis (SPACELAND)
5222.19 
Thank you Majik.

Very handy indeed.

Denis

| CorelDraw Grahics Suite X5 | Daz Carrara Pro 8 | Moi 3D V2 |

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike K4ICY (MAJIKMIKE)
5222.20 In reply to 5222.19 
;-)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike K4ICY (MAJIKMIKE)
5222.21 
A small render for a Mason jar model:



For that extra bit of inspiration, I modeled it while my lighting options were set for the "Glass" presets.

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bigseb
5222.22 
Awesome thread!!

+1
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  WillBellJr
5222.23 
Thanks so much Mike for this - this is awesome!

Makes me wish there was a dropdown comboxbox in the lighting config section where you can save each setting with a name that adds to the combobox list. This way you could enter all those params, click a save button and enter a name, later you can recall those settings by selecting the name in the dropdown list!

Either way, great tips - I like the fact the settings are right in the images as well!

-Will
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike K4ICY (MAJIKMIKE)
5222.24 In reply to 5222.23 
Well, you're quite welcome Will!

Michael has stated plans to consider some sort of enhancement like that in the future. ....maybe with Zebras. ;-)

For now, programming a custom keyboard shortcut for your favorite setup is quite effective.

This primer was also intended to give MoI users the knowledge to customize their own favorite lighting schemes as well.

And if anyone reading this post in the future comes up with a nice one, feel free to post a pic with settings as well.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dinos
5222.25 
Hi Mike.

Reading your excellent Detergent Bottle tutorial reminded me of this thread.
I've always wanted a way to use the lighting settings you created here, preferably through a nice dropdown list.



This is the result. Its called Lighting Themes, for lack of a better name.
It was tested on the latest Moi beta, and it works fine. It should work on anything over V2.0, but it wasn't tested.

To use it you will need to copy the LightingTheme.htm file from the zip to your ui folder.
BEFORE you try the script please take a minute to change the first set of settings in the LightingTheme.htm file called: Default to your current lighting settings.
Otherwise your current settings will be lost.

Here is the relevant part:

code:
Default: {
	lightingStyle: 'Default',
	specularHighlights: true,
	specularBrightness: 0.28,
	specularFocusSize: 2.00,
	metallicLighting: false,
	fixedLightPositions: true,
	customKeyLightLevel: 0.0,
	customFillLightLevel: 0.0
},




Then add a shortcut:
code:
script:moi.ui.createDialog( 'moi://ui/LightingTheme.htm' );


Thats it.

You can define as many themes/lighting settings as you like. It should be fairly easy if you study the LightingTheme.htm file for a bit.


Enjoy :-)

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike K4ICY (MAJIKMIKE)
5222.26 In reply to 5222.25 
You're amazing Dinos!! :-)

I can't wait to try it out.
This means I can try more out and not have to remember shortcut keys.


Michael,

I believe that you were considering some kind of quick buttons or some UI setting tool that would stream line our UI tweaks, along with maybe zebras and such. I can't wait.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5222.27 In reply to 5222.25 
Cool script dinos!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Don (DON_CHEKE)
5222.28 In reply to 5222.25 
Thanks for the Script. It works well.

_________________________
Don Cheke
Visit: Textual Creations
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike K4ICY (MAJIKMIKE)
5222.29 
Hi Dinos!

Thanks to your script idea, I took the LightingOptions.htm UI script for V3 and basically merged your Themes script into it!

So, I was curious to see if this could be done. Having the ability to choose from good presets and being able to simultaneous tweak the finer details was a plus.

By the way, I renamed your "Default" to "Oil Slick" (I like it!) and added MoI's default for "Default".





Download the zip file:

LightingOptions(Themes_V3).zip

You'll find "LightingOptions.htm".
Copy this over the original file in the MoI 3 Beta.../UI folder and you'll have this new feature integrated into your MoI Options.
Please remember to backup you original "LightingOptions.htm" file!

To bring this dialog up by itself - add this script to your keyboard shortcuts:

script: /* Opens Lighting Options Dialog */ moi.ui.createDialog( 'moi://ui/LightingOptions.htm' );

--This is for the V3 Beta version only--
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Rich_Art
5222.30 In reply to 5222.29 
Nice.... Thanks.. :-)

Peace,
Rich_Art. ;-)

| C4DLounge.eu | Our Dutch/Belgium C4D forum. |
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dinos
5222.31 In reply to 5222.29 
Hi Mike.
Yup, Oil Slick is a very fitting name for my defaults!

The script that i did is based on the LightingOptions.htm, so you are absolutely right in merging it back to it.
Your modified file also works in V2.52 as the original file is the same for both versions. I don't have anything older installed so i cant check if it can be used with it.

It would be nice to have an option to add a new theme or edit an existing directly from this ui. That would require a major change, as we will have to move the presets into moi.ini. Maybe during the first time it is run.

It might be possible using setOption/getOption and loading/saving the data using JSON, but i'll need to check it in more detail.

Thanks to everyone for their feedback!

Dinos
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5222.32 In reply to 5222.31 
Hi dinos, yes even though I don't think there's anything that uses it currently, a script can save something to the moi.ini file by passing true for the 3rd parameter value in setOption(), like: moi.command.setOption( 'name', value, true ) - that will save it under a [Commands] section of moi.ini . Then when you read it back in use moi.command.getOption( 'name', true ); , and also be aware that getOption will throw an exception if the value does not exist so you usually need to put it in a try / catch block.

For the name it's good to make sure it's not too generic to avoid future collisions, usually sticking the name of the .htm file or command at the start of the name is a good idea, like 'LightingOptions.htm_value', rather than just plain 'value' for the name.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  dinos
5222.33 In reply to 5222.32 
Hi Michael.
Thats exactly what i was thinking. I did some preliminary tests and it works as expected.

I meant to ask you about naming, to avoid polluting the ini file, so thanks for clearing this up.
An option to disable cashing would definitely help script development a lot.

I will give it a shot when i have some free time, hopefully soon.

Dinos
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-13  14-33  34-53  54-68