Sounds good, I implemented it now and seems to be working great. Thanks!synthsin75 wrote:I wasn't sure what all it did at first, but from my tests, the key count seems to remain the last highest count (even when some are deleted) until cleared...and it recounts them. I didn't find any side effects.
Search found 38 matches
- Tue Aug 15, 2017 4:10 pm
- Forum: Scripting
- Topic: EDIT New script! Hide layers with no animation
- Replies: 9
- Views: 5176
Re: Script request: Tag all layers with keyframes in Mainlin
- Mon Aug 14, 2017 10:13 am
- Forum: Scripting
- Topic: EDIT New script! Hide layers with no animation
- Replies: 9
- Views: 5176
Re: Script request: Tag all layers with keyframes in Mainlin
I've updated the above link. It should only tag keyframed layers now. Ah, thanks Wes! I has just made a similar script last week but to get around the problem of tagging non animated layers I had a loop running that checks all the animation channels of a layer. Just using this ClearLayerKeyCount fu...
- Tue Apr 11, 2017 5:21 pm
- Forum: Scripting
- Topic: Script access to image textures of shapes/styles
- Replies: 2
- Views: 2129
Re: Script access to image textures of shapes/styles
Yeah, I was trying to use those but am just getting blank strings. I've used it both on layers where the shapes have styles applied and ones with shapes that just had the textures applied to that shape specifically. I also tried the fBrushName value on the associated Style objects just in case, but ...
- Mon Apr 10, 2017 6:13 pm
- Forum: Scripting
- Topic: Script access to image textures of shapes/styles
- Replies: 2
- Views: 2129
Script access to image textures of shapes/styles
I've been trying to set up a script that can swap out the textures of the shapes inside a file as well as the styles. However I'm having trouble finding what field or function can return/edit these values. I've looked through the documentation for mesh shape and style objects but not turned up anyth...
- Thu Apr 06, 2017 4:24 pm
- Forum: Scripting
- Topic: "* bad ref *" in layer path field
- Replies: 1
- Views: 1809
"* bad ref *" in layer path field
We came across a problematic file where we had imported something by reference, and it was refusing to update. The series of steps was: - Right click and choose "Update Layer Reference..." - Nothing happens, so try right click and choose that again. - We get a dialog saying that the origin...
- Tue Jan 17, 2017 10:30 am
- Forum: Scripting
- Topic: Sync Channels
- Replies: 7
- Views: 2727
Re: Sync Channels
I actually already created a ticket for this problem:
https://mantis.smithmicro.com/view.php?id=39002
It was targeted for the 12.2 release but doesn't seem to have been included.
https://mantis.smithmicro.com/view.php?id=39002
It was targeted for the 12.2 release but doesn't seem to have been included.
- Mon Jan 16, 2017 1:57 pm
- Forum: Scripting
- Topic: Programmatically turn on "sending analytics information"
- Replies: 9
- Views: 5477
Re: Programmatically turn on "sending analytics information"
Ahhh, I hadn't seen the shortcuts stored in that folder. Once I copied in the necessary shortcut it worked with the edit I made to the file.
Thanks again for the help!
Thanks again for the help!
- Fri Jan 13, 2017 6:16 pm
- Forum: Scripting
- Topic: Programmatically turn on "sending analytics information"
- Replies: 9
- Views: 5477
Re: Programmatically turn on "sending analytics information"
Yeah it's a real folder. I even just did a manual import of the folder on one computer to make sure that I was matching the format the file is normally written in. I have Moho closed while the script runs, editing the appdata files. So it's been closed and reopened multiple times with no change. The...
- Thu Jan 12, 2017 7:07 pm
- Forum: Scripting
- Topic: Programmatically turn on "sending analytics information"
- Replies: 9
- Views: 5477
Re: Programmatically turn on "sending analytics information"
Just back with a similar problem I had thought I'd cracked. I was also trying to set up a folder to appear in library assets, but not having any luck. I did find a SourceRoots.json file in the AppData folder, stored alongside the user.settings file. It contains JSON data that has a few fields for re...
- Tue Jan 10, 2017 11:51 am
- Forum: Scripting
- Topic: Programmatically turn on "sending analytics information"
- Replies: 9
- Views: 5477
Re: Programmatically turn on "sending analytics information"
Aha, that was exactly it yes. I wonder if it's segregated away to try keep name and email safe? Either way, this will let me set it, thanks very much!
- Mon Jan 09, 2017 10:49 am
- Forum: Scripting
- Topic: Programmatically turn on "sending analytics information"
- Replies: 9
- Views: 5477
Programmatically turn on "sending analytics information"
Is there some way to programmatically adjust the Moho setting "Allow sending analtyics information to Smith Micro"? We want to be able to have a script run to fix up someone's user settings so that they're set to consistent values across the board. Most of them I can find by opening the us...
- Thu Jan 05, 2017 5:44 pm
- Forum: Scripting
- Topic: Scrolling the timeline view
- Replies: 2
- Views: 2063
Re: Scrolling the timeline view
Ah, yeah that seems to scroll to it in the layer view rather than the timeline view. Interesting to file away for later, but doesn't do anything for the timeline view and I didn't see anything else similar. Thanks for the help anyway, we may have to live without this feature.
- Thu Jan 05, 2017 11:09 am
- Forum: Scripting
- Topic: Scrolling the timeline view
- Replies: 2
- Views: 2063
Scrolling the timeline view
Bit of an odd request, but I've put together a script that can toggle through the layers with timeline visibility turned on. Effectively a handy shortcut for switching between the layers visible on your timeline. One drawback is that it might select a layer that you don't see in your timeline view, ...
- Wed Nov 30, 2016 2:02 pm
- Forum: Scripting
- Topic: New tool: Adjust Line Width (by Stan)
- Replies: 11
- Views: 10611
Re: New tool: Adjust Line Width (by Stan)
There is a small changed needed to get this working in version 11. You use "LM.GUI:Divider(true)" a few times when building the layout. In version 11 this raises an error about the first argument not being a boolean. It expects you to use "LM.GUI.Divider(true)" instead. When I ma...
- Thu Aug 11, 2016 10:15 am
- Forum: Scripting
- Topic: seach through all child layers?
- Replies: 8
- Views: 6524
Re: seach through all child layers?
Recursive calls on whole documents can definitely get heavy for me using layer scripts on large files, it works a lot better if you're not storing the layers anywhere just execute the code you need to when you find layers. And generally be mindful of how much a recursive function ends up needing to ...