[Experimental] Hair Grab Sphere

Plugins [Experimental] Hair Grab Sphere

Stopper

Invaluable member
Featured Contributor
Messages
359
Reactions
4,547
Points
123
Stopper submitted a new resource:

[Experimental] Hair Grab Sphere - Adds widget to move and pull hair

This is an early beta and there's a lot of tinkering still left to do, but I figured I might as well release what I have for people to play with.



Usage
  1. Add to a Person atom.
  2. A sphere should spawn behind the head. Position it as needed.
    1. It is invisible by default.
  3. Press Grab
  4. Move the sphere around

Notes
  • For reasons I can't recall anymore, I decided to calculate the physics per-hair rather than just add...

Read more about this resource...
 

Here's how to set up this low-tied hairstyle:
1. Load the main hairstyle (e.g., Aqua's hair above) and add the HairGrab plugin to the Person.
2. Load a second hairstyle and make it invisible by reducing the hair width to 0. Lower the rigidity - I set the main and tip rigidities to 0.
3. Load Attach2Vertex (https://hub.virtamate.com/resources/attach-to-vertex.45482/) on the HairGrabSphere atom and attach it to the invisible hairstyle where it overlaps with the main hair that you want to tie.
4. In the HairGrab UI, increase the grab radius to include all the hair to be tied, then click "Grab". Rotate the HairGrabSphere so the tied hair points in a natural direction.
5. Add a hair tie CUA and parent it to the HairGrabSphere.
6. Thank Stopper for the amazing plugins.
 

Here's how to set up this low-tied hairstyle:
1. Load the main hairstyle (e.g., Aqua's hair above) and add the HairGrab plugin to the Person.
2. Load a second hairstyle and make it invisible by reducing the hair width to 0. Lower the rigidity - I set the main and tip rigidities to 0.
3. Load Attach2Vertex (https://hub.virtamate.com/resources/attach-to-vertex.45482/) on the HairGrabSphere atom and attach it to the invisible hairstyle where it overlaps with the main hair that you want to tie.
4. In the HairGrab UI, increase the grab radius to include all the hair to be tied, then click "Grab". Rotate the HairGrabSphere so the tied hair points in a natural direction.
5. Add a hair tie CUA and parent it to the HairGrabSphere.
6. Thank Stopper for the amazing plugins.
That looks amazing. I'll try to make doing something like this easier in one of the next few versions.
 
For some reason I get the following error when I try to add the plugin to a person atom and the plugin UI doesn't load when I try to go into the settings:
!> Exception during plugin script Init: System.NullReferenceException: Object reference not set to an instance of an object
at Stopper.HairGrab.Init () [0x00000] in <filename unknown>:0
at MVRPluginManager.CreateScriptController (.MVRPlugin mvrp, DynamicCSharp.ScriptType type) [0x00000] in <filename unknown>:0
 
For some reason I get the following error when I try to add the plugin to a person atom and the plugin UI doesn't load when I try to go into the settings:
Hmm.. Init doesn't really do much apart from setting up the UI and finding the character's head and geometry. Do you have the latest version of VAM?
 
In the Trigger settings there is no release trigger for the plugin if you can updated and fix this issue would be amazing or is there a way that I can fix it on my end?
 

Attachments

  • Screenshot_2.png
    Screenshot_2.png
    41.3 KB · Views: 0
For some reason I get the following error when I try to add the plugin to a person atom and the plugin UI doesn't load when I try to go into the settings:
I had encountered this issue too. To fix it, I removed whatever the "parent" was set to and made it none for the person atom and re-added the plugin again and it worked.
 
I had encountered this issue too. To fix it, I removed whatever the "parent" was set to and made it none for the person atom and re-added the plugin again and it worked.
I don't understand what you mean, my HairGrabSphere that spawns when I initially attempt to load the plugin is already set to have no parent atom if I go into the Control tab in its UI, I don't have any UI loaded if I go into the plugin itself that's loaded on my person atom either to change any settings there.
 
I don't understand what you mean, my HairGrabSphere that spawns when I initially attempt to load the plugin is already set to have no parent atom if I go into the Control tab in its UI, I don't have any UI loaded if I go into the plugin itself that's loaded on my person atom either to change any settings there.
Sorry If I wasn't clear. Check your "Parent" in the Person Tab. The setting for Parent is located under "Control & Physics 1" of person atom, check if there is any Parent assigned to the person specifically, if there is, just set it to none and add try to add the plugin again.
 
Sorry If I wasn't clear. Check your "Parent" in the Person Tab. The setting for Parent is located under "Control & Physics 1" of person atom, check if there is any Parent assigned to the person specifically, if there is, just set it to none and add try to add the plugin again.
OH THE PARENT OF THE PERSON ATOM! Ah that makes sense cause the scene I use to create characters I have my person parented to a platform I can rotate and that was the conflict all along! Got it working now thanks a lot!
 
@Stopper

hi i have encountered another issue, on my personal saved scene file, the target hair seems to be working fine.
but when other members tried to use my seperated .var uploaded scene. the plugin decides to not target the hair properly resulting in

Screenshot 2024-07-04 035734.png

(i did have the hair var file, and i double checked if https://hub.virtamate.com/resources/k-hair-pack3.43092/ had other version)
 
Thanks for the great plugin! Wonder if the hairstyle used to showcase this plugin is available on hub?
 
this plugin is extremely powerful and has so much more potential. here are the bugs i found though:

- the sphere positions reset after changing scenes/reloading vam
- when having multiple spheres, changing the hair target for one sphere causes collision explosion sometimes and also sometimes glitches a different sphere to randomly wrap a batch of hair around the neck and causes the person's head to lean far back (until we remove the sphere)
- doesnt work in timeline

the best way to use this in scenes is to do all the work without the plugin first (animating, positioning, etc), save the scene, then put in the HairGrab spheres and generate the videos, but dont save the scene afterwards because the spheres glitch after reloading
 
Back
Top Bottom