View file.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in game instance header file | |
virtual void Init() override; | |
UFUNCTION() | |
void DispatchPawnControllerChange(APawn* InPawn, AController* InController); | |
// in game instance cpp file | |
void UVGameInstanceBase::Init() | |
{ | |
Super::Init(); |
View gist:326da2b3e5fd76bf9977ad480d12caa3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FLatentActionInfo Info; | |
Info.Linkage = 0; | |
Info.CallbackTarget = this; | |
Info.ExecutionFunction = "MyFunction"; // this function must be marked with UFUNCTION() or it will not be called! | |
Info.UUID = GetUniqueID(); | |
UKismetSystemLibrary::RetriggerableDelay(GetWorld(), 0.2f, Info); | |
View remove_dupes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# credit to https://blender.stackexchange.com/questions/75790/how-to-merge-around-300-duplicate-materials/229803#229803 | |
# remove duplicate materials | |
def remove_duped_materials(): | |
mats = bpy.data.materials | |
for mat in mats: | |
(original, _, ext) = mat.name.rpartition(".") | |
View export_each_action_with_rig_as_fbx.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import os | |
filepath = bpy.data.filepath | |
directory = os.path.dirname(filepath) | |
all_action_names = [a.name for a in bpy.data.actions] | |
def remove_all_actions_except(ignored): |
View convert.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for %%f in (*.flac) do ffmpeg -i "%%f" -acodec libmp3lame -ab 312k "%%~nf.mp3" |
View script.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for %%f in (*.*) do ffmpeg -i "%%f" -acodec libmp3lame -ab 312k "%%f.mp3" |