Source Filmmaker

Source Filmmaker

Directional Scale Controls (Stretching)
298 Comments
LineX240 16 Jun @ 4:03am 
thats a feature SFM should have by default, thx mate
OceFist 30 May @ 6:08pm 
Ah nevermind, i just noticed the diccussions up there and all you had to do was select rotation only lol
LLIoKoJIad  [author] 30 May @ 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 30 May @ 7:16am 
Why doesnt this work with rotation? when i tried to rotate, model just disappear.
Anyway to fix it?
LLIoKoJIad  [author] 28 Apr @ 2:30am 
by changing the texture, other way it's mapped to the UV coordinates
Boiling diarrhea 25 Apr @ 6:22am 
is it possible to remove the texture stretch and make it loop?
brunoski 7 Feb @ 7:18am 
idk python but how do i autoexecute it without knowing python?
Oximator 2 Feb @ 3:36am 
это самый лучший скрипт в SFM, который я видел!:dealerrizz:
DangerDude066 27 Jan @ 9:22am 
LLIoKoJIad  [author] 26 Jan @ 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?
DangerDude066 26 Jan @ 6:10pm 
animating this is gonna suck lol, please get back to me when you do :P
LLIoKoJIad  [author] 26 Jan @ 6:08pm 
@DangerDude066

sad! I will try to find a solution later
DangerDude066 26 Jan @ 5:58pm 
just tryed that, nope :/
LLIoKoJIad  [author] 26 Jan @ 5:53pm 
@DangerDude066

You may try to do it before applying the rig on a real bone
DangerDude066 26 Jan @ 5:52pm 
my non-scaled model is a rigged model, im pretty sure thats whats not working
LLIoKoJIad  [author] 26 Jan @ 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).
DangerDude066 26 Jan @ 5:20pm 
that didnt work
i commented 325 and 371, repatched, and readded the scale stuff to the model
DangerDude066 26 Jan @ 4:47pm 
@LLIoKoJIad

thank you very much
LLIoKoJIad  [author] 26 Jan @ 4:44pm 
@DangerDude066

Scale is inherited from lock parent by default. You can disable that by commenting lines 325 & 371 of the patch script.
DangerDude066 26 Jan @ 4:12pm 
i should specify its on a pelvis bone, i lock the scaled pelvis bone to a unscaled pelvis bone
DangerDude066 26 Jan @ 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 🦈 30 Dec, 2024 @ 7:58pm 
I can make eyeball stretch, make it like awooga
TurnTwister 4 Dec, 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
LLIoKoJIad  [author] 4 Dec, 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 4 Dec, 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
LLIoKoJIad  [author] 3 Dec, 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 3 Dec, 2024 @ 8:10pm 
is it possible to remap the ranges of the created sliders in order to have finer control of the scaling?
JageunC3ci1a 2 Dec, 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.
LLIoKoJIad  [author] 1 Dec, 2024 @ 11:22pm 
@JageunC3ci1a

Is it crashing with certain model? On certain map? Or even in a clean session?
JageunC3ci1a 1 Dec, 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!
LLIoKoJIad  [author] 30 Nov, 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 30 Nov, 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 19 Nov, 2024 @ 7:25pm 
whats the command for the auto execution?
Jwan 18 Nov, 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 15 Nov, 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 7 Nov, 2024 @ 12:58pm 
This is a really amazing mod, it's nearly a must have to even make stuff in sfm
Doc_ock_rokc 11 Sep, 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 13 Jul, 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 10 Jun, 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 14 Jan, 2024 @ 2:32pm 
i try this too and nothing change...
👾 🅼 🅰❎👾 25 Dec, 2023 @ 9:40am 
Try using DAG utilities menu on specific bone and then add directional scale controls :robodance: You're welcome :x3:
Wink 19 Dec, 2023 @ 6:01pm 
I get the rootTransform_scale
but no x y or z scales :/
Garth Hughes 11 Dec, 2023 @ 12:01am 
Bro, the fact that this exists is a godsend for more cartoonist animators like I'm looking to be. Now I can truly implement squash and stretch the way it should be. :steamthumbsup:
butterballs88 21 Nov, 2023 @ 3:07pm 
I think you do need Python for multiple scripts at startup (I don't use Python with SFM so can't help now--one day I might though--in the far future). I am not certain, however. If you find a way to use sfm_startup_script for multiple scripts, please let us know!
binarypenCH 21 Nov, 2023 @ 1:03pm 
is there a way to also run another script after directional_scale_patch.py using the -sfm_startup_script method or do i have to learn how to invoke the main() function of another python file from a python file?
butterballs88 21 Nov, 2023 @ 8:28am 
Another way to run the patch script at startup is by adding (with the quotes):

-sfm_startup_script "C:\Program Files (x86)\Steam\steamapps\common\SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\umfc\directional_scale_patch.py"

to the launch options. You may need to change the directory in the command above if the script or SFM files are located elsewhere.
To access launch options , find SFM in your library on Steam, then click the gear icon at the far right, then click "Properties", then scoll all the down and paste the command above in the textbox.
JustSomeDog 8 Nov, 2023 @ 9:13am 
How do I use Python? I'm new to this.
LLIoKoJIad  [author] 4 Nov, 2023 @ 3:22am 
@srudhran13

It's not really possible due to several reasons:
1) S2FM has no scripting feature
2) S2FM is frequently updated including major engine changes, while having 5 active branches (Dota 2, CS2, Alyx, SteamVR and Sandbox)
3) S2FM starts together with the game with new VAC enabled, so messing with it's memory might result in a ban inside host-game

This might be added as a builtin feature some day to the Sandbox S2FM however
srudhran13 3 Nov, 2023 @ 10:35pm 
Is there any solution for s2fm
LLIoKoJIad  [author] 16 Oct, 2023 @ 10:27pm 
@sodemz

Most likely you have beta version installed. This is the only possible incompatibility.