LuaT  xV(w@@C:\REAPERDEV\Scripts\LKC-ReaScripts-DEV\RenderBlocks\_source\lkc_renderblocks_autonaming.lua Q   D R  R   OOORRR !"# $DD $DD $DD $DD *+, ** **π01/.- **352 78D6 6<;86< *=*? 6>π@ABC "Eh " A BC#"mh # @ BC$$RJK-L.M/N0OPQRSTUVWX>YZ[\]^_`abBC12RJe-f.gPhi VW[Z]^πjmn7lkk8lp8m87ppQ8p8pqprpsmn;utt8uw8my;xx^8m8;w8wz{| w>?w{| w?(wwQwππππππ π  π  π  π  π ππQdofilescript_pathDataseparatorluacbinlkc_render_controller.dllKONTROLERCONTEXT_IDRenderBlocksGrimSyncCONTEXT_NAMEMsgDEPTHDEBUG_STEPSTEP_OVERSTEP_INTOSTEP_OUTPREVIOUS_DEPTHSTEP_OVER_DEPTHSTEP_OUT_DEPTHTOTAL_BLOCKS_TO_RENDERLAST_OS_TIMELogindentLogPOTENTIAL_EVENT_STRINGSEVENT_STRINGSCLIP_GROUPCG_INDEXRENDER_PATHD:\BouncedSounds\loadfileLokasenna_GUICore.datClass - Button.datClass - TextEditor.datClass - Label.datGUInameNO VALID RENDER BLOCKS LICENSE KEY DETECTEDxywhanchorcornerscreenCGUI_COLORreaperGetExtStateLKC_RENDERBLOCKSgui_colororangecolorselm_filllkc_colorscall_VLpasteGUINewButtonPasteconfirmConfirminput_textTextEditorz >@C@ccaptionfont_afont_bmonospacecolortxtcol_fillcap_bgwnd_bgbgelm_bgshadowpadundo_limittitleLabel `b@@Enter License Key:fontcall_guiformula_string_defined_in_projectformula_string_project_valuereaperGetProjExtStateAUTONAMING_FORMULA_STRINGthe_formula$TRK\$RGN\$WGWWISE_PATH_FORMULAFILENAME_FORMULAseparator_defined_in_projectseparator_project_valueAUTONAMING_FILENAMING_SEPARATORFILENAME_SEPARATORseparator_definedHasExtState_stringgsub%(space%) %(none%)unique_space_identifier|&&FindDuplicatesParseCSVLineFind_WWISE_PathsReplaceContainerPrefixesRemoveContainerPrefixesRemoveWwiseContianerPrefixesHandleIgnoreCheckTrackNameGenerateTrackHierStringGetCurrentRegionGenerateRegionHierStringGenerateWgroupHierStringAddItemToListGetAllWGroupsCreateWaapiAssetListJSONCloseWaapiAssetListJSONWriteWaapiAssetToJSONGetAllEventsFromStringHandleWwiseEventsGenerateNamesWithoutIndexGenerateIndexesAndNameItemsToggleNoteStretchToFitGenerateDataProcessTimeSelectionProcessSelectedItemsMainreaperClearConsolePreventUIRefreshUndo_BeginBlockUpdateArrangeUndo_EndBlockLKC - RenderBlocks - AutoName D5reaperShowConsoleMsgtostring param_ENVϋ8% ~/ ɀ D  D 8  D5  B8 D8 B8D8 B DDEBUGplus_one_space spacesDEPTHosdifftimetimeLAST_OS_TIME (Time:)tostringreaperShowConsoleMsg DEBUG_STEPSTEP_OVERSTEP_OVER_DEPTHDEPTHSTEP_INTOSTEP_OUTSTEP_OUT_DEPTH D      88 reaperUpdateArrange1=Over 2=Into 3=Out 4=Cancelretvalretvals_csvGetUserInputsDEBUG2csv_tableParseCSVLine,STEP_OVERSTEP_INTOSTEP_OUTDEBUG_STEP1STEP_OVER_DEPTHDEPTH3STEP_OUT_DEPTH4caption_ENVparamό(for state)(for state)(for state)iexecution_timeΊtime_info΋pause_flow΁_ENVDEPTHa_ENV D D DBinputGUIValinput_textKONTROLERWriteLicensequitvalid_ENV DB D  D DGreaperAPIExistsCF_GetClipboardbufGUIValinput_textShowMessageBoxYou must install SWS extensions in order to use this button. Otherwise press CTRL+V / CMD+V to paste the license key.SWS NOT FOUND_ENV D DGGUIInitMain_ENV RR4ʁ B < /8H tseenduplicated(for state)(for state)(for state)ielement R€8 D<*<8 D /~5 D<5< D  98<8D8 ~/8 8HG,stringsub"find^%b""tableinsertassertlinesepresposctxt‡startpendpstartpendpぅ_ENVRRRRRR ~/          Dɀ  ~/ʀ< 8   DB     D <    DB8       D _pos_rgnend_name_markrgnindexnumber_coloridxarrayGetCurrentRegionreaperAddProjectMarker2containerstringmatch{CONTAINERS=:(.*),,({.*})THERE_IS_AT_LEAST_ONE_CONTAINER_WWISE_LINK_REGIONevent{EVENTS=EVENTS=(.*)}:(.*) type(for state)(for state)(for state)iposrgnendnamewantidxcolor(for state)(for state)(for state)inameprefixяcontainer_pathяcontainer_guidчprefixevents_container_nameevents_path灅_ENVHgsub%[a%]%[b%]%[r%]%[sq%]%[sw%]%[vo%]%[fx%]%[f%]stringHgsub%[%a+%]stringHgsub<.->string8 B8 DB  D D D<8 DB8Hstringmatch//.*GENERATE_JUST_NAME_STRING%(.*%)gsub%(%)%[%a+%]{.*}nameignorebracesignore2wwise_path_ENV8 D<8    / GreaperGetTrackNamestringmatchTrack %d+HandleIgnoreparent_arrayidtrackretvalnamenoname_ENV D DR D<8  8 4J8  < 5I D  DD < D EF8 D EFGLogGenerate Track Hier StringindentLogparent_arrayidreaperGetSelectedTrackCheckTrackNameGetParentTrack^No Wwise prefixes:RemoveContainerPrefixesGENERATE_JUST_NAME_STRINGReplaceContainerPrefixestrackϑtrackhier_stringϊseparatorτsepό(for state)(for state)(for state)i_ENV D  D D=8               edit_cursor_timereaperGetCursorPositionGetLastMarkerAndCurRegionEnumProjectMarkers3_posidx_rgnend_name_markrgnindexnumber_colorDeleteProjectMarkerGetCurrentRegionmarker_indexregion_indexretvalisrgnposrgnendnamemarkrgnindexnumbercolor_ENV D DRRRRR R D~J        I  ~/J  <<88I <8 D D EF EFGLogGenerate Region Hier StringindentLog_pos_rgnend_name_markrgnindexnumber_coloridxarrayGetCurrentRegionreaperAddProjectMarker2^HandleIgnoreGENERATE_JUST_NAME_STRINGRemoveContainerPrefixesReplaceContainerPrefixes(for state)(for state)(for state)iposrgnendnamewantidxcolorregionhier_stringseparator(for state)Ќ(for state)Ќ(for state)Ђiυnameρ_ENVߋ8<85 <   D   D D  D  D  D  D D<8   LogGenerate Wgroup Hier StringindentLogstringmatch(%[%a-%])(.-);GENERATE_JUST_NAME_STRINGRemoveContainerPrefixesgsub\FILENAME_SEPARATORReplaceContainerPrefixes  ;sufix=(.-);nameߍwwise_prefixߋwwise_pathߕwgroup_metadata_pathߋname_sufix߁_ENV  D8= 8@8 B8 D 888  D reaperGetActiveTakeGetMediaItemInfo_ValueI_GROUPIDCLIP_GROUPCG_INDEXGENERATE_JUST_NAME_STRINGGetSetMediaItemInfo_StringP_EXT:LKC-WWISE_OBJECT_GUIDULT_GetMediaItemNoteitemtakegroup_idwgroup_should_be_addedretvalchunk_guidname_ENV~/0 D<            D< D 58    D     D<8=8 D 5ɀ0LogGet all Render BlocksindentLogreaperGetSelectedMediaItemGetActiveTakenameGetTakeNameitem_is_emptyULT_GetMediaItemNotestringgsub  subGetMediaItemInfo_ValueI_GROUPIDtostring: AddItemToListGetMediaItemTake_SourceGetMediaSourceTypeGetMediaItem_TrackGetMediaTrackInfo_ValueI_FOLDERDEPTHEMPTY%selected_count(for state)(for state)(for state)iitemtakefirst_stringcurrent_group_idsourcesource_typeitem_trackfolder_depth끅_ENV 5€8  5€8€   5wgroups_waapi_assets_list.jsonjson_fileerrioopenRENDER_PATHw+writeclosea+reaperShowMessageBoxCouldn't open the json. Error: tostringWhoopsheader { "importOperation": "useExisting", "autoAddToSourceControl": true, "default": { "importLanguage": "SFX" }, "imports": [  json_file_name_ENV D D  B DGjson_filewriteiocloseTHERE_IS_AT_LEAST_ONE_CONTAINER_WWISE_LINK_REGIONreaperShowMessageBoxNo container links! Possible import fail!WARNING_ENV D<8K  D  D D D  D B8   DB8  D 5  58 !<"8 5      8- .!"/ 0 ~/ 8 - . DParseCSVLine;stringsub@gsub  WWISE_PATH_FORMULA$RGNregion_based_path$TRKtrack_based_path$WGwgroup_metadata_pathReplaceContainerPrefixesis_eventmatch%+POTENTIAL_EVENT_STRINGScontainer_pathname_with_meta;%+;RemoveWwiseContianerPrefixes+ "importLocation":"container_guid",  "objectPath":"Actor-Mixer Hierarchy\\Default Work Unit\\chunk_guid "objectPath":"\ADD_COMMA, {  "audioFile": "D:\\BouncedSounds\\.wav",  "notes":""  }\+\\json_filewriteiCG_INDEX ]} namecsv_tableprefixpath_stringthere_is_event_metatag_per_wgroupstarget߇targetߐimport_locationobject_pathcomma_characterfinal_stringjson_footer_ENV D <  9 DGastringmatch(.*)%+EVENT_STRINGSGetAllEventsFromStringkv_ENV DK DLM6  DB8  D  D  DB8 B  D DF  D<   D DB/  D !DK2  D           +D* ) )=8* 5   D     D     D   512382 142     DLM36  ƂpairsPOTENTIAL_EVENT_STRINGSGetAllEventsFromStringevents_json_filenameevents_waapi_assets_list.jsonevents_jsonerrioopenRENDER_PATHw+writeclosea+reaperShowMessageBoxCouldn't open the events json. Error: tostringWhoopsFind_WWISE_Pathseventstringgsub\+\\match.*()\\.*\\sub { "parent": "", "type": "Folder", "name": "", "onNameConflict": "merge", "children": [ EVENT_STRINGS%+<.->\_ ^\SX_event_prefix_defined_in_projectevent_prefix_project_valueGetProjExtStateLKC_RENDERBLOCKSAUTONAMING_WWISE_EVENT_PREFIX"@Target":"" NOT_FIRST_ITEMCHILD_COMMA, {  "type": "Event", "name": "", "children": [ { "name": "", "type": "Action", "@ActionType": 1,   } ] } ] }/敌(for state)(for state)(for state)(for state)kvevent_pathږevents_container_nameڋlast_slashڇheaderڌ(for state)Ќ(for state)Ќ(for state)Ќ(for state)Ђk͂vͅpath͍event_prefix͇target͋child_info͇footerځ_ENV D DR~Jp D  ΁    D  D< D  D  D D D D     <   5 R  !  D  " D K    D  <8  5   5   D  D   D L M 6  D  $ %   'D  $ %  'D  $ %   '5  D  $ %  ' 5  D  $ %   '5  D  $ %  ' 5  D    D    $*D8 $%  D $% D <Iq DFLogGenerate Names without indexesindentLogNEW_CLIP_NAMESCG_INDEXreaperGetMediaItemInfo_ValueCLIP_GROUPD_POSITIONSetEditCurPosMain_OnCommandGetMediaItem_TrackSetTrackSelectedGetActiveTakeGetTakeNameULT_GetMediaItemNoteGenerate string bonesGenerateWgroupHierStringGenerateRegionHierStringGenerateTrackHierStringGetSetMediaItemInfo_StringP_EXT:LKC-WWISE_OBJECT_GUIDFind_WWISE_PathscontainerGENERATE_JUST_NAME_STRINGParseCSVLineFILENAME_FORMULA\$TRK$RGN$WGipairs:stringgsub%^FILENAME_SEPARATOR/Generated name:match([^;]+)   (for state)(for state)(for state)iitem_postracktakenamewgroup_metadata_pathregion_based_pathtrack_based_pathretvalchunk_guidcontainer_guidcontainer_pathname_segments_arrayՔname_segments_tableՖgenerated_name_stringՌ(for state)(for state)(for state)(for state)iwidlcardname_with_meta_ENV  D D D B D D DK  DLM6 D  Dʀ  <8=8  8             ~   D D D  D   D  D  D D  D D D D D D D  D D D D D D D D $98  'D(D  $D D )DB8(~/(  ,-D 0/..8 /2   D2282328 588 D D85999 99 , -   <- 95D =- D  >- D<  ?   @ D  A -     B !D<D8=8  G$95FE $5ƀLogGenerate Indexes And Name ItemsindentLogdupesFindDuplicatesNEW_CLIP_NAMESDEBUGDuplicates are:pairs:tostringtonumberreaperGetExtStateLKC_RENDERBLOCKSindex_type0FILENAME_SEPARATORFINAL MODIFICATIONS TO STRINGremove multiples of separator string i.e. replace --- with -stringgsub&&==#[&&==#]+$[&&==#]+remove spaces at the end of string name, just in case%s+$remove spaces at the begining of the string^%s+remove separators from begining of the string..::..^[..::..]+remove events + suffix%+unique_space_identifier %W%luppersubfind%d+$_ULT_GetMediaItemNoteCLIP_GROUPoverwrite_defined_in_projectoverwrite_project_valueGetProjExtStateAUTONAMING_OVERWRITEOVERWRITE@match(.-);  meta_info;(.*) ;ULT_SetMediaItemNoteToggleNoteStretchToFitGetActiveTakeGetMediaItemTake_SourceGetMediaSourceTypeGetMediaItem_TrackGetMediaTrackInfo_ValueI_FOLDERDEPTHEMPTYretvalstringNeedBigGetSetMediaItemTakeInfo_StringP_NAMENEW:    ۖ(for state)(for state)(for state)(for state)kvindex_type(for state)(for state)(for state)inew_nameind_str֌sufix_indexstring_infoname_infoold_nametakesourcesource_typeitem_trackfolder_depth_ENV  D D  D< <    8retvalreaperGetItemStateChunkstringmatchIMGRESOURCEFLAGS %dgsubIMGRESOURCEFLAGS 2GetExtStateLKC_RENDERBLOCKSstretch_notestonumberIMGRESOURCEFLAGS 0SetItemStateChunk itemstrNeedBigNoteStretchStatenew_states_ENV 8 8  LogGenerate DataindentLogGENERATE_JUST_NAME_STRINGGetAllWGroupsCG_INDEXStart GeneratingGenerateNamesWithoutIndexGenerateIndexesAndNameItemsNo blocks to process - empty selectionreaperShowMessageBoxEmpty selection! Please make selection which contains at least one Render Block.LKC RenderBlocks - AutoNamingselected_count_ENV  D D D D D# D8 D  D DGLogProcess TIME SELECTIONindentLogUpdate time selection based on itemsreaperMain_OnCommandGetSet_LoopTimeRange2CountSelectedMediaItemsGenerateDataNo blocks to processShowMessageBoxNo blocks selected! You must select at least one block, or make time selection which includes blocks.LKC Render Blocks - AutoNamingstart_timeend_timedelta_timeselected_count_ENV  D D D D=8 ΁     ]ρЁLogProcess SELECTED ITEMSindentLogreaperMain_OnCommandCountSelectedMediaItemsNo blocks to processShowMessageBoxNo blocks selected! You must select at least one block, or make time selection which includes blocksWARNING!Set time selection to itemsstart_timeend_timeGetSet_LoopTimeRange2delta_timeGenerateDataselected_countā_ENV  D D D D <8 D D D  DG D  D#@8LogMain StartindentLogChecking license...LICENSEKONTROLERReadDiskNO LICENSE FOUNDfirst_registrationcall_guiChecking License DONE!reaperGetSet_LoopTimeRange2Checking time selection...ProcessTimeSelectionProcessSelectedItemsMain Endstart_timeend_timedelta_time_ENV@B    9Z> /89KbPSE#beo@5.7#  dummy_var_for_commit၅_ENV