Page 3 of 4

Re: Switch Selection concept for v13.5

Posted: Tue May 18, 2021 1:56 am
by chucky
Woah, that looks pretty awesome. :D

Re: Switch Selection concept for v13.5

Posted: Tue May 18, 2021 1:57 am
by chucky
Woah, that looks pretty awesome. :D
synthsin75 wrote: Tue May 18, 2021 1:39 am Thanks to the above help from Alexandra and a break in my other work, I should be able to release this this week. It's very close. I just need to fix some image file management.
Image

Re: Switch Selection concept for v13.5

Posted: Tue May 18, 2021 7:38 am
by Lukas
Wow, amazing work Wes!

Edit: I've built and have been using a custom tool for switches within a rig too that I never got around to sharing. It has some nice buttons per switch:
  • go to switchlayer (and back to bone layer)
  • toggle timeline visiblity
  • go to prev/next key
  • see if there's a key at the current frame and if its step or smooth
  • clean switch keys
Image
If you want to implement any of that I can share the code and/or icons. My main problem ended up being limited toolbar space (especially on smaller screens). But its nice to control stuff from the bone layer without having to set up smartbones for everything (which also loses interpolation options). I've noticed having many layers visible on the timeline slows Moho down a lot, that's why I started experimenting with this, but it's also why I still sometimes wonder if its ever a good idea to rig with switch layers at all because I prefer seeing all of a characters keys on the top layer.

Re: Switch Selection concept for v13.5

Posted: Tue May 18, 2021 12:17 pm
by gilcartunista
Fantástico!!!Maravilhoso!!!Wes !!!Estou ansioso para experimentar!!!

Re: Switch Selection concept for v13.5

Posted: Sat May 22, 2021 10:34 pm
by synthsin75

Re: Switch Selection concept for v13.5

Posted: Mon May 24, 2021 12:39 pm
by gilcartunista
Estou tão contente que esta ferramenta foi lançada! mas no momento não tenho dinheiro para comprar moho13, tem alguma possibilidade de eu usar em minha versão 11, pois esta eu comprei e tenho número serial. Grato

Re: Switch Selection concept for v13.5

Posted: Mon May 24, 2021 3:41 pm
by gilcartunista
I am so glad that this tool has been launched! but at the moment I don't have the money to buy moho13, there is some possibility that I can use it in my version 11, because this one I bought and I have a serial number. Grateful

Re: Switch Selection concept for v13.5

Posted: Wed May 26, 2021 10:34 pm
by kungfudork
Holy Smokes! Thank you Wes! I've been in LA for a few months working nonstop and totally forgot about starting this thread. I can't wait to dive and use this. THANK YOU!

Re: Switch Selection concept for v13.5

Posted: Wed May 26, 2021 10:36 pm
by rocky53204
Quite interesting... will give it a try with an existing character.

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 10:01 am
by synthsin75
A.Evseeva wrote: Sat Jan 30, 2021 9:12 am
synthsin75 wrote: Fri Jan 29, 2021 6:49 pm While it's easy enough to pass arguments from Moho Lua to external apps/scripts, it's not as easy to get data back. I think the only way is to write the data to a file, so Lua can read it.
It can be done with:

Code: Select all

			function capture(cmd)
				local f = assert(io.popen(cmd, 'r'))
				local s = assert(f:read('*a'))
				f:close()
				return s
			end
This will return text, external command (script) outputs with its "print" calls
Apparently AutoHotkey can't output to the same command prompt Lua reads. :cry:

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 11:22 am
by SimplSam
The other option would be to pass a filename to external app, which it populates, then read/delete the contents of that file after the call.

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 11:45 am
by synthsin75
SimplSam wrote: Sat Dec 09, 2023 11:22 am The other option would be to pass a filename to external app, which it populates, then read/delete the contents of that file after the call.
That's my current plan.

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 11:48 am
by hayasidist
this (windows) example works without the intermediate file

Code: Select all

	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 of all the .pngs in path)

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 11:50 am
by synthsin75
hayasidist wrote: Sat Dec 09, 2023 11:48 am this (windows) example works (worked in Lua 5.2 - not tried in 5.4) without the intermediate file

Code: Select all

	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 of all the .pngs in path)
The problem is outputting from AutoHotkey, not reading with Lua.

Re: Switch Selection concept for v13.5

Posted: Sat Dec 09, 2023 11:53 am
by hayasidist
ah! sorry. my misunderstanding