Search found 2608 matches

by hayasidist
Mon Dec 11, 2023 9:54 pm
Forum: How Do I...?
Topic: Change background image on timeline
Replies: 3
Views: 5263

Re: Change background image on timeline

is the stuff on each tab animated or just static text /image?

If "static" then I'd put all the separate tab images in a switch group and select as necessary. If not ... just say
by hayasidist
Sat Dec 09, 2023 11:53 am
Forum: General Moho Discussion
Topic: Switch Selection concept for v13.5
Replies: 45
Views: 76525

Re: Switch Selection concept for v13.5

ah! sorry. my misunderstanding
by hayasidist
Sat Dec 09, 2023 11:48 am
Forum: General Moho Discussion
Topic: Switch Selection concept for v13.5
Replies: 45
Views: 76525

Re: Switch Selection concept for v13.5

this (windows) example works without the intermediate file local sOut = io.popen( "dir /B " .. path .. "*.png", "r" ) local sData = sOut:read "*a" IOW the output of cmd>dir ... is delivered in the fcb:read ... call (and in this instance provides a simple list ...
by hayasidist
Thu Dec 07, 2023 11:31 am
Forum: Scripting
Topic: How to actually set the selected item in a TextList?
Replies: 10
Views: 5104

Re: How to actually set the selected item in a TextList?

Rai López wrote: Wed Dec 06, 2023 11:05 pm
EDIT: All done!
:D and thanks for the history links...
by hayasidist
Wed Dec 06, 2023 10:19 pm
Forum: Scripting
Topic: How to actually set the selected item in a TextList?
Replies: 10
Views: 5104

Re: How to actually set the selected item in a TextList?

FYI, there is a known bug for which is not possible to make work SetSelItem() by feeding it with an ID. It's unfortunate there are some issues with LM.GUI.ImageTextList kind of widgets (I'll try to also add a note for this one there) given their usefulness... but (fortunately!) its variant :arrow: ...
by hayasidist
Wed Dec 06, 2023 11:45 am
Forum: Scripting
Topic: How to actually set the selected item in a TextList?
Replies: 10
Views: 5104

Re: How to actually set the selected item in a TextList?

well, like I said, a start would be to see how self.lstSpeedBone is defined - but ideally the whole dialogue

if lstSpeedBone is a dropdown (LM.GUI.Menu) then maybe SetChecked() would be the right answer -- but if it's defined in a way that needs the SetSelItem() ...?
by hayasidist
Wed Dec 06, 2023 10:10 am
Forum: Scripting
Topic: How to actually set the selected item in a TextList?
Replies: 10
Views: 5104

Re: How to actually set the selected item in a TextList?

? LM_TextList:SetSelItem(id, redraw)
or maybe a bit more context (e.g. how is self.lstSpeedBone defined?)
by hayasidist
Tue Dec 05, 2023 11:04 am
Forum: General Moho Discussion
Topic: Problem with inserting images in forum posts
Replies: 9
Views: 5103

Re: Problem with inserting images in forum posts

test https://ibb.co/KGXm1kJ the image link to embed is https://i.ibb.co/cv1xmHj/sodaliao-Mongolian-ethnic-style-Disney-Mulanstyle-multiple-poss-f2cddb4f-75fa-461a-860a-308f2e61b5d5.png BUT that's a HUGE image -- loads of white space that you could trim and/or use their "BBCode embed" for ...
by hayasidist
Tue Dec 05, 2023 8:44 am
Forum: General Moho Discussion
Topic: Problem with inserting images in forum posts
Replies: 9
Views: 5103

Re: Problem with inserting images in forum posts

first find yourself an image hosting service. I'm currently using imgbb.com but there are loads of other free ones. then upload your image there and put the url you get in between the [ img ][ /img ] (minus the spaces) tags you get when you press the "image" icon in the "create post&q...
by hayasidist
Mon Dec 04, 2023 3:11 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 22243

Re: How do I create a new moho file and copy a layer to it via script?

Issue J305 raised regarding the odd behaviours of FileClose() when the Lua console window is open.
by hayasidist
Sun Dec 03, 2023 6:41 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 22243

Re: How do I create a new moho file and copy a layer to it via script?

Thanks Wes. I'll aim to put a bug report together on this re FileClose with an active Lua console window... I do wish we could do this without Ctrl+N and running the script twice, because the purpose of this script was actually to keep the animator focussed on the shot. Just hit a button and the lay...
by hayasidist
Sun Dec 03, 2023 5:46 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 22243

Re: How do I create a new moho file and copy a layer to it via script?

I've been looking at this (albeit behind the curve!). I've come to the conclusion that FileClose() doesn't work as expected and I'd appreciate some other pairs of eyes on this. Given the requirement is to save a vector layer, I focused on copy/paste. This works right up to the point where FileClose ...
by hayasidist
Wed Nov 29, 2023 9:17 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 22243

Re: How do I create a new moho file and copy a layer to it via script?

The problem is (I think...), you can't really save another MohoDoc, even if you Load it. As moho:FileSave() and moho:FileSaveAs(path) don't take a MohoDoc argument and will always assume you want to save the current moho.document. ? can you set moho.document to be the one you want and then moho:Fil...
by hayasidist
Wed Nov 29, 2023 4:57 pm
Forum: Scripting
Topic: How do I create a new moho file and copy a layer to it via script?
Replies: 18
Views: 22243

Re: How do I create a new moho file and copy a layer to it via script?

hope this is useful ... it is mostly guesswork ... take a look at LM_scatterbrush.Lua That does "local doc = moho:LoadDocument(docPath)" calls and then uses vectors from the layers in one of the loaded documents. SO .... (supposition here 'cos I've never actually tried this) ... assuming F...
by hayasidist
Fri Nov 24, 2023 8:35 pm
Forum: General Moho Discussion
Topic: One of the layer color turned into black color in moho pro 14.1
Replies: 4
Views: 1672

Re: One of the layer color turned into black color in moho pro 14.1

getting "access denied" when trying to open the image.