Vray Ies Lights to Geometry

Hi,

I’m looking for a way to mass transform all VrayIES from a project into their geometry.

I need it to export scenes to another software.

I don’t find any script/plugin doing this, only script i could find can handle vrayplanelights.

Is this possible? Even with Maxscript?

Thanks

The IES format defines a light flux, what geometry are you referring to?

Hi,

The emission surface in the photometric file. When loaded n Vray, it creates a disc/rectangle/etc… according to infos in the photometric file.

That’s the shape for the distribution, it doesn’t have a scale : notice that when you zoom in and out the size for it stays the same.
It’s because it only contains directions and intensities.
If you somehow exported that and emitted from it you’d get radically different results.

For example: this rectangle. The emission surface created from photometric file inputs

I’m not talking about distribution.

Sorry if i’m not clear

oh.
Would you mind sending me the specific file (email below)?

When i try, i’m told that i’m not allowed to upload a file with the “.ies” extension

The forum accepts zip files for attachments.
Or use my email. :slight_smile:

I just wrote you an email.

Thanks

…and end of the Story…? :smile:

It’s being worked on.
Regardless, we’re not yet thinking of making the changes public, as the *general* usefulness is exceptionally dubious.
What exactly would be your interest in having the shapes as meshes?

So, the changes have been added to update 2.

The ies lights now have a new method which returns a size triplet and an enum with the shape type defined in the IES file loaded.
f.e.


IESShapeSize = [0,0,0] --init only
IESShapeType = undefined --init only
--query
IESShapeType = theLight.get_shape_size &IESShapeSize
--return values
IESShapeType
--returns #vrayIESShape_horEllipticCylinderLength
IESShapeSize
--returns [-3,1,-1]

The dimensions are returned exactly as per the shape standards of the IES commitee, so they may be negative in one or more dimensions (that’s how the shape type is defined.).
Care should be taken to use the absolute value for these while building the meshes.

If an override shape is used, then the standard methods to gather the type and dimensions should be used (f.e. .shape and the .height, .width, .length and .diameter properties).