Skip to content

Instantly share code, notes, and snippets.

@xcloudx01
xcloudx01 / animateskinhelper.ms
Created June 6, 2017 03:34
3dsmax animate rotate objects 90° on all axis
//Creates animation moving the object(s) 90 degrees on x y z to help with skinning
macroScript AutoAnimatedSkinHelp
category:"Animation Tools"
buttonText:"AutoAnimatedSkinHelp"
tooltip:"AutoAnimatedSkinHelp"
Icon:#("Bip_Curve",19)
(
frame = 0
sliderTime = 0f
@xcloudx01
xcloudx01 / CreateJiggleBone.mel
Created June 6, 2017 03:38
Maya - Create a jiggle bone (follows through with animation)
////////////////////////////////////////////////////////////////////////////
// Creates a jigglebone. Script by Draqen //
// The bone will be bound to a tri, animate the tri to influence the bone //
// 7:41PM Jan 12th 2016 //
////////////////////////////////////////////////////////////////////////////
//Generate a random number, rounded down.
$myrand = rand(100);
int $myint= (int) $myrand;
@xcloudx01
xcloudx01 / Outline.mel
Created June 6, 2017 03:45
Maya - create an outline around current model
//Make sure the selection mode is set to object, and store the name of the object in a variable.
selectMode -object;
$OriginalItem = `ls -sl`;
//Duplicate the object and store its name in a variable.
duplicate -rr;
$DuplicatedItem = `ls -sl`;
//Select both the original and the duplicate object and apply a blendshape.
select -r $OriginalItem ;
select -add $DuplicatedItem ;
blendShape -frontOfChain;
@xcloudx01
xcloudx01 / DumpProcessList.ahk
Created June 6, 2017 04:21
AHK - Dump list of all running processes + monitor
;Prerun
#singleinstance force
;Main
Loop
{
GetRunningProcesses()
sleep,2000
}
@xcloudx01
xcloudx01 / ConvertTypeCase.ahk
Created June 6, 2017 06:56
AHK - Convert type case quickly
;CTL+L - convert to lowercase
;CTL+U - convert to uppercase
;CTL+K - invert the case (e.g. "The Big Dog" becomes "tHE bIG dOG")
;SHIFT+CTL+K - convert to capitalized (e.g. "the big dog" becomes "The Big Dog")
;SHIFT+CTL+U - convert to sentence case
^u:: ; Convert text to upper
sendinput,{CTRLDown}C{CtrlUp}
StringUpper Clipboard, Clipboard
Sendinput %Clipboard%
@xcloudx01
xcloudx01 / gist:1450b79770698008698ec9a7ca8297c2
Created December 11, 2017 02:33
AHK AutoHotKey - Detect 64bit edition of windows function
is64BitWindows(){ ;Returns if the current Windows version is 64 bit or not.
ifexist, C:\Program Files (x86) ;The (x86) dir only exists on 64bit editions of Windows.
return true
else
return false
}
@xcloudx01
xcloudx01 / Blueprint.txt
Created April 2, 2018 01:06
Append Unique Function (UE4 Unreal Engine 4)
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name="K2Node_FunctionEntry_1"
LocalVariables(0)=(VarName="Potential Actors",VarGuid=9BE80A904C54E304914ED587E5685C41,VarType=(PinCategory="object",PinSubCategoryObject=Class'"/Script/Engine.Actor"',ContainerType=Array),FriendlyName="Potential Actors",Category=NSLOCTEXT("KismetSchema", "Default", "Default"),PropertyFlags=2053,ReplicationCondition=(INVALID))
LocalVariables(1)=(VarName="OutputArray",VarGuid=C9DDA8534A135E2B5DD6B086C49AB256,VarType=(PinCategory="object",PinSubCategoryObject=Class'"/Script/Engine.Actor"',ContainerType=Array),FriendlyName="Output Array",Category=NSLOCTEXT("KismetSchema", "Default", "Default"),PropertyFlags=2053,ReplicationCondition=(INVALID))
ExtraFlags=201465856
SignatureName="AppendUnique"
bIsEditable=True
NodePosX=-176
NodePosY=-80
NodeGuid=9685C47841BEE7BD5ACD3BB8A2BBA535
CustomProperties Pin (PinId=A280928B40C7208B1083F889C341E51F,PinName="then",Direction="EGPD_Output",PinType.PinCategory
@xcloudx01
xcloudx01 / Blueprint.txt
Created April 2, 2018 01:11
Print with random color - UE4 Unreal Engine 4
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name="K2Node_FunctionEntry_0"
ExtraFlags=201465856
SignatureName="PrintWithRandomColor"
bIsEditable=True
NodePosY=-32
NodeGuid=767E865D4C37337ED41DA4B5DB91987D
CustomProperties Pin (PinId=045603C146FC39900A2E2995E452ADEE,PinName="then",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_CallFunction_0 8D017B1C4F4D47641528F19DC54796E6,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=1774104C4A99D7D30E983B9DC34D2302,PinName="String",Direction="EGPD_Output",PinType.PinCategory="string",PinType.PinSubCat
@xcloudx01
xcloudx01 / blueprint.txt
Created April 3, 2018 00:31
Mouse is not in viewport - ue4 Unreal 4
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_2377"
FunctionReference=(MemberParent=Class'"/Script/UMG.WidgetLayoutLibrary"',MemberName="GetMousePositionOnViewport")
NodePosX=-4128
NodePosY=448
NodeGuid=85E3AB7C475A7FAD828DBCA5ADA57226
CustomProperties Pin (PinId=4674DB564196D8E0E30711BF9C2A87A9,PinName="execute",PinToolTip="\nExec",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,LinkedTo=(K2Node_Tunnel_662 DA84DB6C47917CB147CC2BBAF76C044D,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=B002ABF3459A55BC144D2F8ABC0FFA9C,PinName="then",PinToolTip="\nExec",Direc
@xcloudx01
xcloudx01 / ChangeGUIColour.ahk
Created February 3, 2019 09:00
Change the colour of a GUI Edit box via 3 separate RGB sliders in AutoHotKey
#SingleInstance force
SetFormat, integer, hex
Gui, Add, Slider , x12 y19 w90 h20 vPipboyRed gSetColour Range0-255, 128
Gui, Add, Slider, x12 y59 w90 h20 vPipboyGreen gSetColour Range0-255, 128
Gui, Add, Slider, x12 y99 w90 h20 vPipboyBlue gSetColour Range0-255, 128
gosub,SetColour ;Set the default colour to what's defined above.
Gui, Add, Edit, x112 y19 w120 h100
Gui, Show, h147 w247
SetFormat, integer, d
Return