Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
But adding to this, my fx files are in the same folder as the MDL.I have noticed this same behavior. When 1st creating a new attachpoint and setting up as spotlight, it works fine. All the range, inner-outer cones, colors etc are rendered(if the importer option Replace effects by lights: true)
However once the model is saved/exported, and then is reopened ior imported, only the effect name and placement information is shown in effects editor. The EffectType, inner/outer(for spotlight, or light) colors, range, axis etc, no longer appears.
I also notice that the rendering of the light and reflection does not render unless the named fx file ( effect file) is in the same directory as the mdl ( or bgl). Would be nice if MCX searched effects folders like the textures ( the default Prepar3d\effects folder or n the case where using add-on.xml the named effects folder. This could be another parm like the texture paths ( eg effects paths)

Great stuff! Works now. Thanks Arno.Hi,
There is an option in the options "replace effects by lights" which will convert the FX files back to a light attachpoint. When you set that option to true you will get all the properties of the light again on import of the object.


Yes I did. It appears that if the fx files are not in the model folder then it loses the visuals. For e.g. if I am working on a new file the visuals are as expected. But if I close the file and open it a day later there is that issue.Hi,
Did you set the option to replace effects by lights to true in the settings? The default value is false and it that case you will only see the effect file after import and not the individual parameters.
View attachment 77439

I was using a custom file name.Let me double check in the code, but I think only the filename is used to get the parameters back. The location of the FX file should not matter.
I assume you are not using the option to specify a custom FX filename, as in that case the parameters can't be derived anymore.