I think I understand what you are asking. Look at the code for Meshlights export.
I think this is the part...
Here is menu code where different object types are chosen...
Note that this code is from the Wings 1.4.1 version of the plugin. So it is not formatted properly for Wings 2.x versions.
oort
I think this is the part...
Quote:%%Start Micheus Code for Meshlights Even Better
section(F, "Objects"),
foldr(fun (#e3d_object{name=Name,obj=Mesh}, Id) ->
export_object(F, "w_"++format(Name), Mesh, MatsGb, Id),
println(F),
Id+1
end, 1, Objs),
%%End Micheus Code for Meshlights Even Better
Here is menu code where different object types are chosen...
Quote:{hframe,[
{vframe,
[{menu,[{?__(31,"Mesh"),mesh},
{?__(32,"Volume"),volume},
{?__(33,"Mesh Light"),meshlight},
{?__(34,"Light Portal"),lightportal}
],
Object_Type,
[key(object_type),layout]},
Note that this code is from the Wings 1.4.1 version of the plugin. So it is not formatted properly for Wings 2.x versions.
oort