Get Version 4 ! mcjHatsAreTheFashionOfTheDay : Fit Any Hair in Hats Pc/Mac
mcjhatsarethefashionoftheday is online
https://sites.google.com/site/mcasualsdazscripts9/mcjhatsarethefashionoftheday
version 4 adds 2 help buttons and a vew option that lets the hair float above the ears
with the help of the mcjCollider plugin
this script will pull a figure's hair above the hat-line onto the skull
a bit like wearing a bathing cap under the hat
New Genesis 3/8 compatible versions of mcjCollider are now online - PC 32bit PC 64bit and MAC 64bit
https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45
No But Really, You Should Get Version 2
Get version 2 because : version 1 if your hair prop was subdivided and you created the hat-fit morph
the scene file could become un-openable !!! so you do want version 2
which makes sure to put the hair prop in non-subdivided state before computing the hat fit morph
then everybody ilives happily forever after
hatspromo.jpg
638 x 638 - 84K
smv4.jpg
800 x 800 - 99K
v5.jpg
617 x 999 - 287K
smallv3.jpg
800 x 800 - 111K
hatspreadin.jpg
1067 x 800 - 380K
Post edited by mCasual on
Comments
more images from the making-of
january 6th i wrote the script for my needs: fitting the guard-of-the-castle hat to Teira the new recruit
oh en fait le script a commencé Janvier 1st
Woohoo! This looks great, running off to download it now :)
hey padner
very low-poly hair test
Heya mCasual! Always love your scripts.
I'm running into a little snag with this one. I've installed the files into the script folder and the script shows up in your section just fine, but I cant seem to find the "mcjCollider node" under the create window. Would it be in the bottom most of the drop down? I have a number of other creates like fluidos, lamh, etc there and wondering if there's a limit to how many will show up.
Really hoping I can get this to work. It'd be perfect for combining my fave OOT hairs that often have wisps and different hats. :D
mcjCollider is a plug-in ( this was mentioned in the installation section )
https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45
so you must download the mcjCollider for Mac 64-bit
mcjCollider.dylib
or the mcjCollider for PC 32-bit
mcjColliderDS45.dll
or the mcjCollider for PC 64-bit
mcjColliderDS45_64bit.dll
then you must place that file in Daz Studio's plugins folder
on a PC that's usually c:\Program Files\DAZ 3D\DAZStudio4\plugins
on a mac that's usually Applications/ DAZ 3D/DazStudio4 64-bit/plugins
once that's installed, next time you start Daz Studio it should be part of the Create menu
in the case of the Hat script, you select the head of the figure before creating the collider node
so the collider node will "see" the head facets and the script will use it to pull the hair onto the head
Absolutely outstanding! Thank you, sir.
Thank you, as always, Casual.
Will this work with the boys? I got a hooded DForce outfit for G8M and would like to use it with hair. If this can work with any figure that would be cool! I doubt it will work with Dog 8 though. LOL
Ah, it's out. Thanks so much! :-)
Ahh forgot to install collider, lol sorry instalation brain fart. :P Thanks again!
yes it will work with anything in fact even a sphere
though it's actually the hair that gets fitted on the head, the hat is not really involved at all
Your scripts are the bomb!!!! Thank you very much
New Genesis 3/8 compatible versions of mcjCollider are now online - PC 32bit PC 64bit and MAC 64bit
https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45
New Genesis 3/8 compatible versions of mcjCollider are now online - PC 32bit PC 64bit and MAC 64bit
https://sites.google.com/site/mcasualsdazscripts2/mcjcolliderds45
https://sites.google.com/site/mcasualsdazscripts9/mcjhatsarethefashionoftheday
https://sites.google.com/site/mcasualsdazscripts9/mcjwrapaband
possible? fitting any hair under that beanie?
Yes But you have to work on it
my new script and plugin to do this
https://sites.google.com/site/mcasualsdazscripts9/mcjhatsarethefashionoftheday
which is now compatible with Genesis 3 and Genesis 8 ( if you get the yesterday's version of the mcjCollider plugin )
in the case of the razorcut hair for Genesis 3, it didnt work 100%, i had to scale up the beanie a bit
it may be due to the fit function or to other morphs in the wig
( so if it's critical you could simply export the hair as an obj, then re-import it, so it becomes a prop and the hat-fit morph will be the unique morph )
Oh, WOW! This is great! I donated with your donations link on your website.
I took a scene that I recently completed and added a hat I recently purchased. The character is G8F and the hair is Bang Bob Hair with dForce. After the hair was simulated, I froze the simulation and used this script to morph the hair to fit under the hat. For comparison, the scene without the hat is in my gallery.
Uh oh! A trouble! The scene I cannot reopen the scene I saved with the the collider and hair under the hat. It crashes Daz Studio when opening the scene.
DAZStudio.exe caused ACCESS_VIOLATION in module "C:\Program Files\DAZ 3D\DAZStudio4 Public Build\dzcore.dll" at 0033:0000000055A8C4C7, DzMorphDeltas::clearVertCount()+391 byte(s)
i will see if it's related to the plugin maybe it's better to delete the collider node after use but maybe i'll have to modify the collider plugin note that anyway a collider is not reusable after you close the scene because it forgets what it was attached to.
i tried 2 times to close and open a file wilt a collider, didnt crash,, i think it's not the collider plugin's fault
the error message you got seems to indicate the Morph channel which was created by the mcjhatsarethefashionoftheday script got into a fight with Daz Studio's scene initializer
maybe if the hair prop was subdivided there was a wrong vertex count in the morph
-------
sometimes, instead of opening a scene file, you can file/merge it with an opened file ... this may let you recover your scene
if it's really critical, you could go in the daz studio data/ folder, locate the files associated to the morph name and delete them
that way when you open the file the morph wont be found and maybe the scene loader will go "oh well" and load the scene anyway
--------
maybe there's an interaction with the dForce things, all my tests so far were done with hair figures and props
--------
Merge didn't work. I got the same access violation. Where does the script store the data files for the morph? (I didn't save the morph as a morph asset, so I figured the morph was saved internal to the scene.) The hair itself was installed with Daz Connect. Hopefully the script is not trying to write anything into the "cloud" folder. Anything a user writes into that folder is not later recognized by Daz Studio. Users have to save morphs and other assets into a non-cloud content library.
I have another problem that maybe you can help with:
I tried a hat that fits much tighter to the head (Georgette Hat). I tried a normal hair figure (not dForce) Fashion Bob Hair. No matter what value I set the Air Gap to, the hair sticks out away from the head by the same amount. It always sticks through the hat on top, front, and in the back. I tried the recommended value of 2, I tried a negative value, and I tried 0.01. They all turned out the same. In the attached screenshots, I hid all the hair except the scalp for ease of viewing. (All hair was visible when running the script, though). The scalp is blue with low opacity. Genesis 8 is dark red. The hat is gray. You can see the location of the plane, the head and the hair scalp. Why is the scalp so far from the head, when I selected 0.01 for the air gap? I wonder if I am doing something wrong. Maybe I don't understand what the "air gap" is. Can you replicate this issue? Thanks for your assistance.
needs to be
i will post an update in a few minutes
I don't think Daz Studio is saving the mcjFitHat morph in the data directory when I save a scene. In the scene file, I see the mcjFitHat section with all of its deltas listed. I searched my data directory an there are no mcjFitHat files. To save the morph in the data folder, it has to be saved as a Morph Asset.
I did another experiment with a hair figure with subD. After saving the file and trying to reload it, I got the same access violation. So, I think you are probably right about subD causing a potential problem. The same hair with base resolution worked fine.
The dForce hair that I had the original access violation on also used subD.
Thanks for your help figuring out the problem.
in the next version since the script has the hair selected
i'll force the subdivided hair figures/hair in base resolution
and maybe put them back in the user's resolution when i'm done
next version with functioning air-gap 0.5mm
I redid my scene that uses the dForce hair. I set resolution back to Base, ran the script, and set resolution back to High Resolution (subD). I saved the scene, closed DS and reopened DS. It opened fine. So, I believe your plan to force hair to base resolution, run the script and set it back to the user's resolution will work great.
Edit: dForce hair doesn't seem to cause a problem. That is nice news.
the next version will automatically set the resolution to base and the viewport resolution will be set to 0
then the script does it's millions of collision detections ( num vertices in the hair multiplied by num facets in the head )
then it sets the resolution back to what it was
.
.
.