Show messages:
1-6
7-26
27-44
From: Andrei Samardac
yep I put it in command folder, thanks!
From: Frenchy Pilou (PILOU)
Missing this one!
Seems very cool for my old memory!
From: Frenchy Pilou (PILOU)
Bravo! Works fine!
What file must have to edit for have French "Fermer" against the English "Close" button?
From: Andrei Samardac
May be you have to search for this woard "close" in .htm file?
From: Frenchy Pilou (PILOU)
yes...but it's no so simple for me to find the good file! :)
From: Andrei Samardac
I am not so strong in this things))) This plugin consist from one file ScriptPalette.htm , if this close word is in that file search in it :) But may be this word is in another file do not know, but try :)
From: Frenchy Pilou (PILOU)
Of course I can try some files of different arborescences but I prefere than an expert tell me the good file directly, it's more prudent! :)
French Version! (before the French version of the button! :)
http://moiscript.weebly.com/palette-de-scripts.html
Ps Does it possible to make several palettes ?
From: bemfarmer
Finally got the script to work, after following the directions :-)
Note, there cannot be a space before the !
- Brian
From: dinos
Hi Frenchy.
Thanks for the french version! :-)
There is no easy way to make than one palette. You could make a copy of the script with a different name and change the ! in the code to something else for the second palette, but it would make it an even bigger hack than it already is.
The close button is just the standard moi:DialogClose tag. I'm not sure if this localized along with the rest of Moi3D if you are using a different language.
I remember looking for a way to close the Dialog window after a command is selected, but i couldn't find one. That would eliminate the close button altogether and improve the operation of the script.
From: BurrMan
Frenchy,
It is working from the English strings "; Common dialog buttons Dialog close button=Close".
I don't know why it is not translating with the French strings. It could be the way the filesystem is called in the script? I think Michael will have to look at this.
From: Michael Gibson
Hi Pilou,
> What file must have to edit for have French "Fermer" against
> the English "Close" button?
Just make sure you have your Language set to French (Options > General > Language), then the dialog should show this (screenshot from my system with MoI language set to French):
This was with the current v3 version, are you maybe using an older version Pilou?
- Michael
Image Attachments:
french_dialog_close.jpg
From: Michael Gibson
Hi Burr,
> I don't know why it is not translating with the French strings. It could be the way the filesystem
> is called in the script? I think Michael will have to look at this.
It's working fine for me over here - when I set Options > General > Language to French, I get a French language close button, as shown above.
You can even have the dialog open when you change the language and it updates dynamically as the current language is switched...
Do you see something different than that over there?
I was testing using the current v3 beta - Pilou are you using an old version maybe?
- Michael
From: Michael Gibson
Hi dinos,
> The close button is just the standard moi:DialogClose tag. I'm not sure if this localized
> along with the rest of Moi3D if you are using a different language.
Yup, it is localized and the localization seems to be working fine for me over here...
> I remember looking for a way to close the Dialog window after a command is selected, but
> i couldn't find one. That would eliminate the close button altogether and improve the
> operation of the script.
Buttons or menu items on a flyout will automatically dismiss the flyout when pushed, but that built in default auto closing won't happen if they are on a dialog instead of a flyout menu.
You can add an onclick="" handler to make the dialog close though, you'd want to do the same thing as the button inside of the DialogClose.htm template, which is: onclick="moiWindow.endDialog(0);"
So modifying line #26 of ScriptPalette.htm to be this should do it:
code:
html += '<moi:MenuItem onclick="moiWindow.endDialog(0);" command="' + cmd + '">' + title + '</moi:MenuItem>';
For some people it might be good to have a separate close button if they are using it repeatedly though...
- Michael
From: BurrMan
No. I just did a test by changing the English strings text and didn't switch my system to French.
I just assumed Frenchy new this and it wasn't working for him, and wanted to point him at the area that controlled that dialogue text.
From: dinos
Hi Michael.
Thanks for your help. I've updated the first post to include 2 versions of the script: one with a close button and one without.
Personally i prefer the version without the close button as it feels more natural: Shortcut for the popup to appear, command or escape to dismiss.
But i'm sure there are cases where it might be more useful to have a close button.
Dinos
From: Frenchy Pilou (PILOU)
Perfect : I had not enabled the French Language! :)
So when I enable it magically "Fermer" appears as aspected!
Sorry for the little disturb!
Of course I had also the red x button! ;)
From: Michael Gibson
Hi Pilou,
> Perfect : I had not enable the French Language! :)
Mystery solved! :)
- Michael
From: Andrei Samardac
Why I can not to have this script correctly shown in window?
script: /*! Show all except curves, points and Hidden style*/ var obj = moi.geometryDatabase.getObjects().getBReps(), st = moi.geometryDatabase.findstyle("Hidden",0), sti; if (st) {sti = st.index;} else { sti = "nf";} for ( var o = 0; o < obj.length; ++o ) { if ( obj.item(o).hidden && obj.item(o).styleIndex !== sti) { obj.item(o).hidden = false; obj.item(o).selected = false; }};
In script window it looks like this:
< obj.length; ++o ) { if ( obj.item(o).hidden && obj.item(o).styleIndex !== sti) { obj.item(o).hidden = false; obj.item(o).selected = false; }};"> Show all except curves, points and Hidden style
Looks like it becouse <.
From: Andrei Samardac
Is it any way to make some categories in this script window, to store scripts more logically?
From: dinos
Hi Andrei,
The problem is caused by the double quotes around "Hidden" and "nf" in the script.
If you replace the double quotes with single quotes it should work fine:
script: /*! Show all except curves, points and Hidden style*/ var obj = moi.geometryDatabase.getObjects().getBReps(), st = moi.geometryDatabase.findstyle('Hidden',0), sti; if (st) {sti = st.index;} else { sti = 'nf';} for ( var o = 0; o < obj.length; ++o ) { if ( obj.item(o).hidden && obj.item(o).styleIndex !== sti) { obj.item(o).hidden = false; obj.item(o).selected = false; }};
This is a limitation of the way the script palette works.
Dinos
Show messages:
1-6
7-26
27-44