• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Creating a windows version for my plugin, has problems

Explorer ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

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

TOPICS
SDK

Views

54

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 26, 2024 Feb 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,

Votes

Translate

Translate
Explorer ,
Feb 23, 2024 Feb 23, 2024

Copy link to clipboard

Copied

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2024 Feb 26, 2024

Copy link to clipboard

Copied

LATEST

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

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines