Short for lighting options

Next
 From:  all2000 (SPEEDY)
2907.1 
Hi Michael
I ask to you if it is possible to make a command from keyboards
in order to invoke lighting options rather than to go in the View field
many thanks
al
  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
2907.2 In reply to 2907.1 
Hi Al, yes it is possible to control all of the lighting options from a shortcut key script.

So you could set up some presets if you want.

The following script can be assigned as the command on a shortcut key to set a batch of lighting properties:

script: /* Set lighting options */ var v = moi.view; v.lightingStyle = 'Default'; v.specularHighlights = true; v.specularBrightness = 0.5; v.specularFocusSize = 0.5; v.metallicLighting = true; v.fixedLightPositions = false;


You can edit the various values in there to produce variations.


For lighting style, the value can be one of the following:
  'Default'
  'MoreFill'
  'LessFill'
  'KeyOnly'
  'CustomLevels'
  'Hemispheric'
  'Headlight'

Also when the lighting style is set to 'customLevels', there are some additional properties on moi.view that can be set: customKeyLightLevel and customFillLightLevel


Let me know if you have any difficulties setting that up.

- 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:  all2000 (SPEEDY)
2907.3 
Many Tanks Michael
GRANDE......
al
  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:  all2000 (SPEEDY)
2907.4 
Hi Michael
thanks still for the relative scripts to the instrument Lighitings Options, but task that would have been best
to have a single script that showed to video the label relative to the several ones change possibility ....?
I wonder to you even if and possible to orient the
Frame relative to the objects in way to be able to align it to the oggeto in some cases
rotating its position
many tanks
al
  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
2907.5 In reply to 2907.4 
Hi Al, I'm sorry I don't quite understand what your last request here is.

Is it something about lighting options?


You wrote:
> to have a single script that showed to video the label
> relative to the several ones change possibility ....?

You mention "the label" - could you please describe more about what label you mean here?


> I wonder to you even if and possible to orient the Frame relative to
> the objects in way to be able to align it to the oggeto in some cases
> rotating its position

You're talking about the edit frame that surrounds selected objects?

Can you describe a bit more about what is the reason you want to align it to a particular orientation? Is it so you can stretch an object in a particular direction?

If so, then you can use the "Scale1D" command for that probably more easily than the edit frame - it is located under Transform / Scale / Scale1D.

That command allows you to pick both the scale origin and the scale direction as any 2 points, so you can snap them on to whatever spots you need. That basically allows you to completely control the scale direction by those 2 picked points.

Let me know if you need a video that shows how Scale1D works.

- 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:  all2000 (SPEEDY)
2907.6 
Hi Michael
the label refers to the field that you see in the image -
I know the operation of the tool
scale 1d, the demand is for having exactly an other way to scale entity being able to arrange the Pivot of the Frame
for being able it to move or then to orient in various way-
thanks
al
Image Attachments:
Size: 141.4 KB, Downloaded: 77 times, Dimensions: 1600x1200px
  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
2907.7 In reply to 2907.6 
Hi Al,

> the label refers to the field that you see in the image -

The image seems to be a screenshot of the lighting options dialog.

Is there a particular field within this dialog that you are asking about?

Maybe you could circle it or something to help clarify.

My previous message (here) showed how to make a shortcut key that will set the fields on that lighting options dialog with a script.

Are you having a problem editing the script to put in your particular values?

Sorry it is still not clear to me what you are asking about.


> scale 1d, the demand is for having exactly an other way to
> scale entity being able to arrange the Pivot of the Frame
> for being able it to move or then to orient in various way-

Maybe you could show an example of what you are trying to do - Scale1D does allow you to arrange the origin point and orientation of the scale to whatever location you want.

- 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:  BurrMan
2907.8 In reply to 2907.7 
Hi Michael,
I think he may be refering to this:

script:var dir = moi.view.lightDirection; if ( dir.x == 1 && dir.y == 1 && dir.z == -1 ) { dir.set(-0.5,1,0); } else { dir.set(1,1,-1); } moi.view.lightDirection = dir;

And the ability to move the lighting around.
  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:  all2000 (SPEEDY)
2907.9 
Hi Michael and Friends
Excused if they have not been clear ;
what I wonder is of knowing if it is possible to make one
short that monster to shown video the lebel in the image,
that it affords to vary the types of lighting system of the objects,
rather than possession many various ones (script= short ) for every variation -

For example, for the several relative set-up to the snap , point, might, end , etc . etc ...
I have one short that ago to appear the lebel general for the single ones chosen -

Tanks
al
  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:  BurrMan
2907.10 In reply to 2907.9 
Trying to help decipher.

It sounds like he's refering to "Presets" for the lighting system??? Thats the best I could do.
  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
2907.11 In reply to 2907.9 
Hi Al,

> what I wonder is of knowing if it is possible to make one
> short that monster to shown video the lebel in the image,
> that it affords to vary the types of lighting system of the objects,

I'm sorry - still even now I'm not sure I understand...

But if you want to make a shortcut to switch all lighting settings in a single keypress - yes that is possible, I posted the shortcut for it in the previous message here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=2907.2

You can edit the script inside of that shortcut to change the various settings.

So for example in your screenshot it looks like you want to have Lighting style = Key + more fill , and Specular turned on, with Specular brightness = 0.5 and Specular focus size = 0.5

To do that you would set up the following on a shortcut key as the command:


script: /* Set lighting options */ var v = moi.view; v.lightingStyle = 'MoreFill'; v.specularHighlights = true; v.specularBrightness = 0.5; v.specularFocusSize = 0.5; v.metallicLighting = false; v.fixedLightPositions = false;


With the above assigned to a keyboard shortcut, you can press that key and then the lighting options dialog will have the same settings as in your screenshot.


So to get that script above, I just edited a couple of the values in the script that was in the previous message (http://moi3d.com/forum/index.php?webtag=MOI&msg=2907.2).


- 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
 From:  Michael Gibson
2907.12 In reply to 2907.9 
Hi Al, so here are a few more examples.

You can set each of these scripts as the command part of a keyboard shortcut to set a batch of lighting properties in one keypress.



Set default lighting:

script: /* Set to default light */ var v = moi.view; v.lightingStyle = 'Default'; v.specularHighlights = false; v.specularBrightness = 0.5; v.specularFocusSize = 0.5; v.metallicLighting = false; v.fixedLightPositions = false;



Set to "Key + more fill" style, with specular:

script: /* Set lighting options */ var v = moi.view; v.lightingStyle = 'MoreFill'; v.specularHighlights = true; v.specularBrightness = 0.5; v.specularFocusSize = 0.5; v.metallicLighting = false; v.fixedLightPositions = false;



Set to "Key + more fill" style, with specular + metallic:

script: /* Set lighting options */ var v = moi.view; v.lightingStyle = 'MoreFill'; v.specularHighlights = true; v.specularBrightness = 0.5; v.specularFocusSize = 0.5; v.metallicLighting = true; v.fixedLightPositions = false;



You can make any number of these, so that you can have a batch of lighting properties set all in one keypress.


- 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
 

Reply to All Reply to All