Modified magnet and points tools.

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

dkwroot
Posts: 659
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Modified magnet and points tools.

Post by dkwroot » Sun Jan 29, 2017 10:24 pm

MAGNET TOOL:
I added different falloff strengths for the magnet tool. You can now choose between: linear, smooth, spherical, random, constant and cylindrical falloff strengths.
DOWNLOAD: https://drive.google.com/open?id=0Bwzk- ... VVuTzQtbzQ

TRANSLATE POINTS TOOL:
You can now move the point of rotation. Simply hold <shift><alt> and click to move the point of rotation to where you please. You can center the rotation by simply pressing the "center" button.
DOWNLOAD: https://drive.google.com/open?id=0Bwzk- ... 0tqQUhsdjg
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Sun Jan 29, 2017 11:50 pm

You can now move the point of rotation.
I always wanted that!

Thanks for making these mods. I'll check them out right now.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
F.M.
Posts: 478
Joined: Thu Nov 04, 2004 4:29 pm
Location: Between my ears

Re: Modified magnet and points tools.

Post by F.M. » Mon Jan 30, 2017 6:42 pm

Thank you very much for the generous contribution!
"and then Man created god!"
funksmaname
Posts: 3107
Joined: Tue May 29, 2007 11:31 am
Location: Nelson, New Zealand

Re: Modified magnet and points tools.

Post by funksmaname » Tue Jan 31, 2017 1:44 am

Awesome! thanks mate :)
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Tue Feb 07, 2017 7:48 pm

The mod works like a charm and it's been super useful! Thanks.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
User avatar
Víctor Paredes
Posts: 4857
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: Modified magnet and points tools.

Post by Víctor Paredes » Wed Sep 19, 2018 12:49 pm

Hello, I have been using this tool to animate a cloth made with a mesh. Thank you very much for it, It works very well
Now, I was thinking it would be very useful to have a rotation option for the magnet (probably with a key modifier and dragging the mouse left or right). Do you think that is an option possible to add to this script?
I tried to do something myself, but my knowledge is still too basic.
Thank you very much again!
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
dkwroot
Posts: 659
Joined: Thu May 02, 2013 6:56 am
Location: USA
Contact:

Re: Modified magnet and points tools.

Post by dkwroot » Wed Sep 19, 2018 2:24 pm

Do you mean spiraling?
User avatar
Víctor Paredes
Posts: 4857
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: Modified magnet and points tools.

Post by Víctor Paredes » Wed Sep 19, 2018 2:30 pm

dkwroot wrote:Do you mean spiraling?
Yes, I'm thinking about rotating the points clockwise and counter-clockwise using the magnet strength.
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Wed Sep 19, 2018 8:15 pm

I have a general question about installing modified tools like the Modified Magnet and Modified Transform Points tools. I've been overwriting the original native tool files with the modified tool files, which works fine, but lately, I've been placing custom scripts and tools in the Custom Content Directory, which has been preferable because the files will available to future program updates and it doesn't alter the original installation files.

Can I do the same with modified tool files too? If so, where in the Content Folder do the modified tool files go? I tried placing them in [DriveName]:\Content\Moho Pro\scripts\tool_pro and ...\tool but that didn't seem to work; Moho defaulted to the original tool scripts. I can only get the mods to work by overwriting the native files in C:\Program Files\Smith Micro\Moho 12.4\Resources\Support\scripts\tool_pro and C:\Program Files\Smith Micro\Moho 12.4\Resources\Support\scripts\tool.

(FYI, it's not just these scripts; I have other tool mods I'd like to move to the Content Folder.)

Thanks in advance for any info.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
User avatar
synthsin75
Posts: 7084
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Modified magnet and points tools.

Post by synthsin75 » Wed Sep 19, 2018 8:36 pm

Greenlaw wrote:I have a general question about installing modified tools like the Modified Magnet and Transform Points tools. I've been overwriting the original native tool files with the modified tool files, which works fine, but lately, I've been placing custom scripts and tools in the Custom Content Directory, which has been preferable because the files will available to future program updates and it doesn't alter the original installation files.

Can I do the same with modified tool files too? If so, where in the Content Folder do the modified tool files go? I tried placing them in [DriveName]:\Content\Moho Pro\scripts\tool_pro and ...\tool but that didn't seem to work; Moho defaulted to the original tool scripts. I can only get the mods to work by overwriting the native files in C:\Program Files\Smith Micro\Moho 12.4\Resources\Support\scripts\tool_pro and C:\Program Files\Smith Micro\Moho 12.4\Resources\Support\scripts\tool.

(FYI, it's not just these scripts; I have other tool mods I'd like to move to the Content Folder.)

Thanks in advance for any info.
Yes, I'd suggest installing all third party scripts to your Custom Content Folder. I never overwrite stock tools.
Install tools to:...Moho Pro\scripts\tool
Menu scripts to:...Moho Pro\scripts\menu

Then you either need to restart Moho or reload the tools using Ctrl+Alt+Shift+L
- Wes
ImageImageImage
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Wed Sep 19, 2018 8:50 pm

Thanks, Wes. That's what I thought but for some reason, the mods aren't 'replacing' the originals after I use the Load keyboard command or restart Moho. The mods only load when I overwrite the originals. (No worries, I made a backup of the original un-modified script folder before replacing the files.)

I'll take a closer look later...maybe I'm goofing something up. FWIW, I've only checked this with dkwroot's tool mods. I don't believe there's anything about these scripts that would prevent this from working, but I'll see if this happens with other tool mods I use.

Just to be clear, I've been able to successfully add new third-party tools that don't exist in stock Moho using the Custom Content Folder, it just doesn't seem to work with these tool mods.

It's almost lunchtime for me. I'll check this again on my laptop then.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
User avatar
synthsin75
Posts: 7084
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Modified magnet and points tools.

Post by synthsin75 » Wed Sep 19, 2018 8:59 pm

Are you sure Moho is pointed to that Custom Content folder?
Preferences>General tab
- Wes
ImageImageImage
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Wed Sep 19, 2018 9:01 pm

Yeah, I opened the folder from File: Open Content Folder, which I think is the same thing, but I'll check again in a few minutes.

Edit: Confirmed, I'm using the correct Content Folder. Other non-stock tools (new tools, not mods) are loading from there successfully.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
User avatar
synthsin75
Posts: 7084
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Modified magnet and points tools.

Post by synthsin75 » Wed Sep 19, 2018 9:13 pm

Is your custom content folder over a network?
What if you move the stock tool out of its folder (like you were backing it up, but without replacing it)?
If anything shows up then, it has to be the modded tool.
- Wes
ImageImageImage
User avatar
Greenlaw
Posts: 4356
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Modified magnet and points tools.

Post by Greenlaw » Wed Sep 19, 2018 9:43 pm

Hmm, maybe it's just the Magnet mod?

The content folder on my laptop is actually in my Documents folder, so it's local in this case.

I restored to program's scripts folder to the default scripts, and placed the modified tools in the content folder. Then I removed the original Magnet and Transform Points files from the program's scripts folder. When I launch Moho, the modified Magnet tool didn't load...in other words, no Magnet tool at all. However, I see the Transform Points tool and it does appear to be the modified one with the repositionable pivot point.

I'll try this again with the original tools returned to the Program folder, and see if I still get the modded Transform Points tool. BRB.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
Post Reply