Skip to main content
Inspiring
February 22, 2024
Answered

Creating a windows version for my plugin, has problems

  • February 22, 2024
  • 1 reply
  • 159 views

I'm not a Windows users so:

The most basic basic stuff are working, i'm using if WIN_ENV then ....

For now I have done tests with the plugin installed in a 'easy' directory. With MacOS i'm using gsub .... for spaces, but what with Windows paths/files with spaces ?

A problems also is that when selecting a file with a browse option, and it contains only numbers, it should adds leading zeros to it in another ftext_field. All done with This does not work in Windows.

It could be, need to check, but when creating 'variable' for MacOS it always start with local xyz =, this also does not seems to work in Windows.

 Also my 

pluginInfoProvider.sectionsForTopOfDialog

pluginInfoProvider.sectionsForBottomOfDialog

are not visible, TopOfDialog is used of purpose and manual, BottomOfDialog is used for setting users preferences.

So i'm' quite confused.

Please advice, Thank you

Patrick

This topic has been closed for replies.
Correct answer patrick_marq

probably should have posted the whole code, but the problem was:

width_in_chars = "11", and it should have been: width_in_chars = 11,

1 reply

Inspiring
February 23, 2024

After a day searching I know where it goes wrong but I don't know why

my pluginInfo.lua

 

 

function pluginInfoProvider.sectionsForBottomOfDialog(f, propertyTable )
	propertyTable.exportfolder = readConfig("export")
	propertyTable.rootfolder = readConfig("root")
	return {
		{
			title = "Configuration",
			fill_horizon = 1,
			spacing = f:control_spacing(),
			bind_to_object = propertyTable,
				f:column {
					--fill_horizontal = 1,
					--------- Title and explanation  --------
					f:row {
						f:static_text {
							title 			= "Here you can set the default paths for the browse dialogs:",
							alignment 		= "left",
						},
					},
					f:row {
						f:separator {
							fill_horizontal = 1,
						},
					},
						f:row {
							f:spacer {
								height 			= "10",
							},
						},
						--------- C+F Export dir settings  --------
						f:row {
							f:static_text {
								title 			= "C+F Export dir:",
								alignment 

 

 

It stops at the first f:row

On MacOSX everything shows perfectly.

This works perfect for Windows and MacOSX

 

function pluginInfoProvider.sectionsForTopOfDialog( f, propertyTable )
	return {
		{
			title = "Information",
			f:row {
				spacing = f:control_spacing(),
				f:static_text {
					title = LOC "This plugin is writen for the use of Crown + Flint app.\n It uses the ExifTool export file for adding the recorded exif information into the files.",
				},
			}
		},
	}
end

 

John, your debug library would this shed some light on this problem ?

patrick_marqAuthorCorrect answer
Inspiring
February 26, 2024

probably should have posted the whole code, but the problem was:

width_in_chars = "11", and it should have been: width_in_chars = 11,