Source Filmmaker

Source Filmmaker

Directional Scale Controls (Stretching)
307 Comments
Skulltronprime Oct 28 @ 9:07pm 
Uhh...how'd I use this?
yuuri Oct 23 @ 5:33pm 
Does this work with IK rigs? I tried to attach an IK script to a rig that had some parts scaled with this but for some reason the limb just distorts and the IK for it is messed up.
Scientist Vovik Oct 20 @ 10:53am 
Не работает. дизлайк. хyйня. переделывай
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Oct 14 @ 8:38pm 
@Caidenz

I guess it heavilly depends on the model rig weights. You can make a screen recording and link the problematic model, I will check.
Caidenz Oct 13 @ 8:39pm 
Everything is working perfectly! but with most of my models, when the Directional Scale Controls are applied, the eyes/pupils distort when moving them up/down or left/right. is there a solution to this?
Iateurcookies Oct 6 @ 7:02am 
oh nwm i tried to modify the count1 script and not the umfc one.
Iateurcookies Oct 5 @ 1:10pm 
where do i run "mwrite(i_patch_skip_read_parent_override, patch_skip_read)"?
c00lkidd4mr Aug 23 @ 12:19am 
a
KenDoStudios Aug 20 @ 12:52pm 
directional patch is not found! help!
LineX240 Jun 16 @ 4:03am 
thats a feature SFM should have by default, thx mate
OceFist May 30 @ 6:08pm 
Ah nevermind, i just noticed the diccussions up there and all you had to do was select rotation only lol
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] May 30 @ 10:05am 
@OceFist

Use the last DAG manipulation mode (yellow circle). There's a bug in the SFM: traditional 3D controls are also getting rescaled which also affects how they manipulate the values per interaction.
OceFist May 30 @ 7:16am 
Why doesnt this work with rotation? when i tried to rotate, model just disappear.
Anyway to fix it?
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Apr 28 @ 2:30am 
by changing the texture, other way it's mapped to the UV coordinates
Boiling diarrhea Apr 25 @ 6:22am 
is it possible to remove the texture stretch and make it loop?
brunoski Feb 7 @ 7:18am 
idk python but how do i autoexecute it without knowing python?
Oximator Feb 2 @ 3:36am 
это самый лучший скрипт в SFM, который я видел!:dealerrizz:
(OldAcct) Jan 27 @ 9:22am 
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Jan 26 @ 9:46pm 
@DangerDude066

So, without altering the script in any way, I attached an unrigged bone to other model's unrigged bone, then applied the rig to the second model and everything worked just fine. Can you make a proof of concept video where you reproduce your problem from start to end?
(OldAcct) Jan 26 @ 6:10pm 
animating this is gonna suck lol, please get back to me when you do :P
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Jan 26 @ 6:08pm 
@DangerDude066

sad! I will try to find a solution later
(OldAcct) Jan 26 @ 5:58pm 
just tryed that, nope :/
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Jan 26 @ 5:53pm 
@DangerDude066

You may try to do it before applying the rig on a real bone
(OldAcct) Jan 26 @ 5:52pm 
my non-scaled model is a rigged model, im pretty sure thats whats not working
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Jan 26 @ 5:44pm 
@DangerDude066

Try also adding the scale controls for the bone you're locking to and changing the overall scale a little (for 0.01).
(OldAcct) Jan 26 @ 5:20pm 
that didnt work
i commented 325 and 371, repatched, and readded the scale stuff to the model
(OldAcct) Jan 26 @ 4:47pm 
@LLIoKoJIad

thank you very much
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Jan 26 @ 4:44pm 
@DangerDude066

Scale is inherited from lock parent by default. You can disable that by commenting lines 325 & 371 of the patch script.
(OldAcct) Jan 26 @ 4:12pm 
i should specify its on a pelvis bone, i lock the scaled pelvis bone to a unscaled pelvis bone
(OldAcct) Jan 26 @ 4:06pm 
so when i lock a scaled model to a unscaled model the scale model unscales and doesnt scale anymore until unlocked
Emily Sharkess 🦈 Dec 30, 2024 @ 7:58pm 
I can make eyeball stretch, make it like awooga
TurnTwister Dec 4, 2024 @ 12:57pm 
i couldnt get that to work, but using the _simple version i got what i wanted, which was finer control, which i think in hindsight i could have also achieved by significantly lowering my mouse sensitivity
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Dec 4, 2024 @ 12:47am 
@TurnTwister

Haven't tried that, you may give it a shot. In code, replace expression "v*8" with "lerp(value,lo,hi)". Also replace attribute name "v" with "value" on line 52 and 54.
TurnTwister Dec 4, 2024 @ 12:13am 
if its the same exact problem, then i know that if you reduce the length of the active clip, biped simple fingers' performance issue disappears. that could fix it if working on posters/still shots
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Dec 3, 2024 @ 11:12pm 
@TurnTwister

The cause of that is described in the "Known Issues". "Remap slider range" requires a slider to have a certain expression attached (which is long enough). The longer expression is, the less FPS you get when operating with parent dags. Even in stock SFM you can clearly feel that when you pose fingers with rig_biped_simple attached (it's the same problem).

You still can do it by changing expression in the code, but then posing resized dags makes SFM hardly usable even on high performance systems.
TurnTwister Dec 3, 2024 @ 8:10pm 
is it possible to remap the ranges of the created sliders in order to have finer control of the scaling?
JageunC3ci1a Dec 2, 2024 @ 7:59pm 
It seems to crash on existing sessions I had before November 29, clean sessions are ok from what I tested out. It just crashed and continues to crash on existing files for no reason even after trying all the solutions I can get. It crashes when I press anything on the screen after applying the script it's not any certain model, map, or session. I don't want you to worry so much and just want to see any solutions that could help me solve the issue.
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Dec 1, 2024 @ 11:22pm 
@JageunC3ci1a

Is it crashing with certain model? On certain map? Or even in a clean session?
JageunC3ci1a Dec 1, 2024 @ 8:53pm 
It shows as none which I am assuming is the latest update, and it seems to still crash SFM upon execution. I will just keep using SFM without it for now and keep trying to find solutions to my issue (It was working completely fine and suddenly just stopped). Thank you for the help though I really appreciate it!
6o6PoBa9l cTpy9I JIe4eHue rPu60M  [author] Nov 30, 2024 @ 10:30pm 
@JageunC3ci1a

Check beta tab in the Steam settings for the SFM. Crashes usually indicate that you have incompatible version of SFM (not the latest).

I'll upload the improved version that already has inbound compatibility check someday, lack of time to finish some features for now.
JageunC3ci1a Nov 30, 2024 @ 9:00pm 
I'm unsure if the developers are still here to help, but I keep getting hard crashes when I execute the script and press anything on SFM. I saw the discussion post about it and uninstalled and reinstalled it multiple times, but it doesn't seem to fix it. If anyone has a way to fix it it would be greatly appreciated.
Sigull0709 Nov 19, 2024 @ 7:25pm 
whats the command for the auto execution?
Jwan Nov 18, 2024 @ 6:05pm 
Could you please make a light_environment control script?
This is a script that controls the color and intensity of the light.
Fatal AR Nov 15, 2024 @ 9:24am 
This is straight up one of the best things ever made for SFM.
You can use it for scenebuild, bodyhacking, posing and animating.
Toni Scampers Nov 7, 2024 @ 12:58pm 
This is a really amazing mod, it's nearly a must have to even make stuff in sfm
Doc_ock_rokc Sep 11, 2024 @ 5:12pm 
Hey! Great job figuring this out . I was attempting this at one point but lost all my progress when my old hdd exploded... its good to see sfm scripting is alive and well.
catnipped drugged cat Jul 13, 2024 @ 5:34pm 
hey man i know this is a dumb question but can you make a mod to add animation via import sequence i hope you know what i mean plz make this happen it would save so meany hours
Dr.M Jun 10, 2024 @ 5:01pm 
OK, I'VE JUST FOUND OUT HOW TO DO THIS:

Right click on your model.

Scroll down to where the individual bones are located.

Right click on the bone you want to edit.

From there, there will be a menu with the DAG utilities option.

Click that, and THAT'S where you find the directional scales controls.

hope this helps!
Victor the Dragon Jan 14, 2024 @ 2:32pm 
i try this too and nothing change...
👾 🅼 🅰❎👾 Dec 25, 2023 @ 9:40am 
Try using DAG utilities menu on specific bone and then add directional scale controls :robodance: You're welcome :x3: