{"id":310484,"date":"2020-09-25T15:00:19","date_gmt":"2020-09-25T15:00:19","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=310484"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=310484","title":{"rendered":"OBS Studio Lua \u0421\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/520684\/\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0432 \u044d\u0442\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f OBS \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Lua.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433 \u0432 OBS \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 21, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u043e\u0432\u0435\u0439\u0448\u0430\u044f 26.0.0-rc3 \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0431 \u043a\u0430\u043c\u0435\u0440\u0443 (\u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows), \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 UI, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430( \u041a\u0414\u041f\u0412 \u0431\u044b\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438).<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/rmdGW46.png\" alt=\"image\"\/><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"opisanie-globalnyh-funkciy-api-nastroek\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, API, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/h1>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u043d\u044e -&gt; \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b -&gt; \u0421\u043a\u0440\u0438\u043f\u0442\u044b -&gt; \u0437\u043d\u0430\u0447\u043e\u043a &quot;\u043f\u043b\u044e\u0441&quot;.<br \/>  \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b, \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"shodstva-i-razlichiya-c-s-api\">\u0421\u0445\u043e\u0434\u0441\u0442\u0432\u0430 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f c \u0421-API<\/h2>\n<p>  <\/p>\n<p>\u0421\u0445\u043e\u0434\u0441\u0442\u0432\u0430: \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a API, <strong>\u0421\u0411\u041e\u0419<\/strong> \u0438\u043b\u0438 <strong>\u0423\u0422\u0415\u0427\u041a\u0410 \u041f\u0410\u041c\u042f\u0422\u0418<\/strong> \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u043b\u0438\u0447\u0438\u044f: \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438(\u0441 \u0434\u0432\u043e\u0439\u043d\u044b\u043c\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438) \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441\u0432\u043e\u0451 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0451\u043d, \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e \u0441\u0446\u0435\u043d &quot;~\/obs-studio\/basic\/scenes&quot;.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <code>settings<\/code> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 JSON \u0441\u0442\u0440\u043e\u043a\u0443, \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u044b\/\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b\/\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e JSON \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0444\u0430\u0439\u043b\u043e\u0432. <\/p>\n<p>  <\/p>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: <\/p>\n<p>  <\/p>\n<ul>\n<li><code>obslua<\/code> \u2014 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c OBS<\/li>\n<li><code>script_description()<\/code> \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 HTML<\/li>\n<li><code>script_properties()<\/code> \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <\/li>\n<li><code>script_defaults(settings)<\/code> \u2014 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <\/li>\n<li><code>script_update(settings)<\/code> \u2014 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/li>\n<li><code>script_load(settings)<\/code> \u2014 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 <\/li>\n<li><code>script_unload()<\/code> \u2014 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/li>\n<li><code>script_save(settings)<\/code> \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/li>\n<li><code>script_tick(seconds)<\/code> \u2014 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u0430\u0434\u0440, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 seconds \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u043a\u0443\u043d\u0434 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043a\u0430\u0434\u0440\u0430<\/li>\n<li><code>script_path()<\/code> \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/li>\n<li><code>timer_add(callback,milliseconds)<\/code> \u2014 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e <\/li>\n<li><code>timer_remove(callback)<\/code> \u2014 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u0430, \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>remove_current_callback()<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e<\/li>\n<\/ul>\n<p>  <\/p>\n<h1 id=\"primer-skripta\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h1>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442: \u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043b\u0438\u043d\u0438\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">local obs = obslua local selected_source pos = obs.vec2() switch = false counter = 0<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043c\u043e\u0434\u0443\u043b\u044f, <code>local var<\/code> \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u043a <code>nil<\/code>, <code>pos<\/code> \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u0430\u044f OBS \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043d\u0430 \u0441\u0446\u0435\u043d\u0435. <\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function script_properties()   local props = obs.obs_properties_create()   obs.obs_properties_add_button(props, &quot;button1&quot;, &quot;\u0412\u043a\u043b\/\u0412\u044b\u043a\u043b&quot;,on_off)   obs.obs_properties_add_button(props, &quot;button2&quot;, &quot;\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a&quot;,add_source)   obs.obs_properties_add_button(props, &quot;button3&quot;, &quot;\u041f\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043d\u0430 +10,0&quot;,move_button)   local p = obs.obs_properties_add_list(props, &quot;selected_source&quot;, &quot;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a&quot;, obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING)   local sources = obs.obs_enum_sources()   if sources ~= nil then     for _, source in ipairs(sources) do       source_id = obs.obs_source_get_unversioned_id(source)       if source_id == &quot;color_source&quot; then         local name = obs.obs_source_get_name(source)         obs.obs_property_list_add_string(p, name, name)       end     end   end   obs.source_list_release(sources)   return props end<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. <code>obs.obs_properties_add_button(props, &quot;\u0438\u043c\u044f&quot;, &quot;\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435&quot;,\u0444\u0443\u043d\u043a\u0446\u0438\u044f)<\/code>, <code>local p = obs.obs_properties_add_list<\/code> \u2014 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u043c\u0435\u043d\u044e \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, <code>source_id = obs.obs_source_get_unversioned_id(source)<\/code> \u2014 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u0435\u0433\u043e \u0432\u0435\u0440\u0441\u0438\u044e, <code>obs.source_list_release(sources)<\/code> \u2014 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 <\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function script_update(settings)   selected_source = obs.obs_data_get_string(settings,&quot;selected_source&quot;) end<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 <code>selected_source<\/code> \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 (\u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435) \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function add_source()   current_scene = obs.obs_frontend_get_current_scene()   scene = obs.obs_scene_from_source(current_scene)   settings = obs.obs_data_create()    counter = counter + 1   green = 0xff00ff00   hotkey_data = nil   obs.obs_data_set_int(settings, &quot;width&quot;,200)   obs.obs_data_set_int(settings, &quot;height&quot;,200)   obs.obs_data_set_int(settings, &quot;color&quot;,green)   source = obs.obs_source_create(&quot;color_source&quot;, &quot;\u0438\u0441\u0442#&quot; .. counter, settings, hotkey_data)   obs.obs_scene_add(scene, source)    obs.obs_scene_release(scene)   obs.obs_data_release(settings)   obs.obs_source_release(source) end<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u0441\u0446\u0435\u043d\u044b \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443, \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function move_source_on_scene()   current_scene = obs.obs_frontend_get_current_scene()   scene = obs.obs_scene_from_source(current_scene)   scene_item = obs.obs_scene_find_source(scene, selected_source)   if scene_item then     dx, dy = 10, 0     obs.obs_sceneitem_get_pos( scene_item, pos) -- \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0451\u043d \u043c\u044b\u0448\u043a\u043e\u0439     pos.x = pos.x + dx     pos.y = pos.y + dy     obs.obs_sceneitem_set_pos(scene_item, pos)    end    obs.obs_scene_release(scene) end<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function move_button(props,p)   move_source_on_scene() end<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0438 2 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function on_off()   if switch then      obs.timer_add(move_source_on_scene,50)   else     obs.timer_remove(move_source_on_scene)   end   switch = not switch end<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043d\u043e\u043f\u043a\u0430 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u0438 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.<br \/>  <img decoding=\"async\" src=\"https:\/\/i.imgur.com\/kVvM1s7.gif\" alt=\"\u0413\u0438\u0444\u043a\u0430\"\/><\/p>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"lua\">local obs = obslua  local selected_source pos = obs.vec2() switch = false counter = 0  function on_off()   if switch then      obs.timer_add(move_source_on_scene,50)   else     obs.timer_remove(move_source_on_scene)   end   switch = not switch end  function add_source()   current_scene = obs.obs_frontend_get_current_scene()   scene = obs.obs_scene_from_source(current_scene)   settings = obs.obs_data_create()    counter = counter + 1   green = 0xff00ff00   hotkey_data = nil   obs.obs_data_set_int(settings, &quot;width&quot;,200)   obs.obs_data_set_int(settings, &quot;height&quot;,200)   obs.obs_data_set_int(settings, &quot;color&quot;,green)   source = obs.obs_source_create(&quot;color_source&quot;, &quot;\u0438\u0441\u0442#&quot; .. counter, settings, hotkey_data)   obs.obs_scene_add(scene, source)    obs.obs_scene_release(scene)   obs.obs_data_release(settings)   obs.obs_source_release(source) end  function move_button(props,p)   move_source_on_scene() end  function move_source_on_scene()   current_scene = obs.obs_frontend_get_current_scene()   scene = obs.obs_scene_from_source(current_scene)   scene_item = obs.obs_scene_find_source(scene, selected_source)   if scene_item then     dx, dy = 10, 0     obs.obs_sceneitem_get_pos( scene_item, pos) -- \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0451\u043d \u043c\u044b\u0448\u043a\u043e\u0439     pos.x = pos.x + dx     pos.y = pos.y + dy     obs.obs_sceneitem_set_pos(scene_item, pos)    end    obs.obs_scene_release(scene) end  function script_properties()   local props = obs.obs_properties_create()   obs.obs_properties_add_button(props, &quot;button1&quot;, &quot;\u0412\u043a\u043b\/\u0412\u044b\u043a\u043b&quot;,on_off)   obs.obs_properties_add_button(props, &quot;button2&quot;, &quot;\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a&quot;,add_source)   obs.obs_properties_add_button(props, &quot;button3&quot;, &quot;C\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043d\u0430 +10,0&quot;,move_button)   local p = obs.obs_properties_add_list(props, &quot;selected_source&quot;, &quot;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a&quot;, obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING)   local sources = obs.obs_enum_sources()   if sources ~= nil then     for _, source in ipairs(sources) do       source_id = obs.obs_source_get_unversioned_id(source)       if source_id == &quot;color_source&quot; then         local name = obs.obs_source_get_name(source)         obs.obs_property_list_add_string(p, name, name)       end     end   end   obs.source_list_release(sources)   return props end  function script_update(settings)   selected_source = obs.obs_data_get_string(settings,&quot;selected_source&quot;) end<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<h1 id=\"primer-goryachih-klavish\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448<\/h1>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442: \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448. <\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 OBS.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">hotkeys = {   htk_stop = &quot;\u0421\u0442\u043e\u043f&quot;,   htk_start = &quot;\u0421\u0442\u0430\u0440\u0442&quot;, } hk = {}  function hotkey_mapping(hotkey)   if hotkey == &quot;htk_stop&quot; then     print('\u0421\u0442\u043e\u043f')   elseif hotkey == &quot;htk_start&quot; then     print('\u0421\u0442\u0430\u0440\u0442')   end end<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c \u0441 \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c\u0438 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0442\u0438\u043f\u0430 &quot;switch&quot;<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function script_load(settings)    for k, v in pairs(hotkeys) do      hk[k] = obs.obs_hotkey_register_frontend(k, v, function(pressed)       if pressed then          hotkey_mapping(k)       end      end)     a = obs.obs_data_get_array(settings, k)     obs.obs_hotkey_load(hk[k], a)     obs.obs_data_array_release(a)   end   ...  function script_save(settings)   for k, v in pairs(hotkeys) do     a = obs.obs_hotkey_save(hk[k])     obs.obs_data_set_array(settings, k, a)     obs.obs_data_array_release(a)   end end<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\/\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function htk_1_cb(pressed)    if pressed then     print('1')   end end  function htk_2_cb(pressed)    if pressed then     print('2 \u0430\u043a\u0442\u0438\u0432\u043d\u043e')   else     print('2 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e')   end end  key_1 = '{&quot;htk_1&quot;: [ { &quot;key&quot;: &quot;OBS_KEY_1&quot; } ],' key_2 = '&quot;htk_2&quot;: [ { &quot;key&quot;: &quot;OBS_KEY_2&quot; } ]}' json_s = key_1 .. key_2 default_hotkeys = {   {id='htk_1',des='\u041a\u043d\u043e\u043f\u043a\u0430 1 ',callback=htk_1_cb},   {id='htk_2',des='\u041a\u043d\u043e\u043f\u043a\u0430 2 ',callback=htk_2_cb}, }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0432\u0438\u0448, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445, \u043d\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0435 OBS \u043e\u043d\u0438 \u043f\u0440\u0438\u043c\u0443\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 1 \u0438 2.<\/p>\n<p>  <\/p>\n<pre><code class=\"lua\">function script_load(settings)   ...   s = obs.obs_data_create_from_json(json_s)   for _,v in pairs(default_hotkeys) do      a = obs.obs_data_get_array(s,v.id)     h = obs.obs_hotkey_register_frontend(v.id,v.des,v.callback)     obs.obs_hotkey_load(h,a)     obs.obs_data_array_release(a)   end   obs.obs_data_release(s) end<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/d4xGYSo.gif\" alt=\"\u0413\u0438\u0444\u043a\u0430\"\/><\/p>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"lua\">local obs = obslua  hotkeys = {   htk_stop = &quot;\u0421\u0442\u043e\u043f&quot;,   htk_start = &quot;\u0421\u0442\u0430\u0440\u0442&quot;, } hk = {}  function hotkey_mapping(hotkey)   if hotkey == &quot;htk_stop&quot; then     print('\u0421\u0442\u043e\u043f')   elseif hotkey == &quot;htk_start&quot; then     print('\u0421\u0442\u0430\u0440\u0442')   end end  function htk_1_cb(pressed)    if pressed then     print('1')   end end  function htk_2_cb(pressed)    if pressed then     print('2 \u0430\u043a\u0442\u0438\u0432\u043d\u043e')   else     print('2 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e')   end end  key_1 = '{&quot;htk_1&quot;: [ { &quot;key&quot;: &quot;OBS_KEY_1&quot; } ],' key_2 = '&quot;htk_2&quot;: [ { &quot;key&quot;: &quot;OBS_KEY_2&quot; } ]}' json_s = key_1 .. key_2 default_hotkeys = {   {id='htk_1',des='\u041a\u043d\u043e\u043f\u043a\u0430 1 ',callback=htk_1_cb},   {id='htk_2',des='\u041a\u043d\u043e\u043f\u043a\u0430 2 ',callback=htk_2_cb}, }  function script_load(settings)    for k, v in pairs(hotkeys) do      hk[k] = obs.obs_hotkey_register_frontend(k, v, function(pressed)       if pressed then          hotkey_mapping(k)       end      end)     a = obs.obs_data_get_array(settings, k)     obs.obs_hotkey_load(hk[k], a)     obs.obs_data_array_release(a)   end    s = obs.obs_data_create_from_json(json_s)   for _,v in pairs(default_hotkeys) do      a = obs.obs_data_get_array(s,v.id)     h = obs.obs_hotkey_register_frontend(v.id,v.des,v.callback)     obs.obs_hotkey_load(h,a)     obs.obs_data_array_release(a)   end   obs.obs_data_release(s) end  function script_save(settings)   for k, v in pairs(hotkeys) do     a = obs.obs_hotkey_save(hk[k])     obs.obs_data_set_array(settings, k, a)     obs.obs_data_array_release(a)   end end<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<h1 id=\"zadachi\">\u0417\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043a\u0440\u0443\u0433\u0443:<br \/>  \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043b\u0438\u043d\u0438\u0438, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u0432\u043e\u043a\u0440\u0443\u0433 \u0447\u0430\u0441\u043e\u0432\u043e\u0439\/\u043f\u0440\u043e\u0442\u0438\u0432.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/JEQRdKT.gif\" alt=\"\u0413\u0438\u0444\u043a\u0430\"\/><\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b:<br \/>  \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u0433\u043e\u0440\u044f\u0447\u0438\u043c\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c\u0438, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u0435\u043c \u0432\u043a\u043b\/\u0432\u044b\u043a\u043b,<br \/>  \u0434\u043e\u043f \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 JSON, \u0434\u043e\u043f \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0441 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0435\u0439 \u043a\u043b\u0430\u0432\u0438\u0448 \u0447\u0435\u0440\u0435\u0437 JSON.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/RWAiLc7.gif\" alt=\"\u0413\u0438\u0444\u043a\u0430\"\/><\/p>\n<p>  <\/p>\n<h1 id=\"ssylki\">\u0421\u0441\u044b\u043b\u043a\u0438<\/h1>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.lua.org\/pil\/contents.html\">\u041a\u043d\u0438\u0433\u0430 1-\u0433\u043e \u0438\u0437\u0434\u0430\u043d\u0438\u044f Lua<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/kikito\/lua_missions\">\u0417\u0430\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u044b Lua<\/a><\/li>\n<li><a href=\"https:\/\/luajit.org\/extensions.html\">\u041c\u043e\u0434\u0443\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0432 LuaJIT<\/a><\/li>\n<li><a href=\"https:\/\/obsproject.com\/docs\/scripting.html\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433\u0443 OBS<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/upgradeQ\/OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples\">\u0417\u0430\u043c\u0435\u0442\u043a\u0438, \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 OBS API \u0438 \u043c\u043e\u0434\u0443\u043b\u044c obspython<\/a><\/li>\n<li><a href=\"https:\/\/obsproject.com\/forum\/resources\/categories\/scripts.5\/\">\u0424\u043e\u0440\u0443\u043c\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 OBS<\/a> <\/li>\n<li><a href=\"https:\/\/discord.com\/invite\/obsproject\">\u0414\u0438\u0441\u043a\u043e\u0440\u0434 \u043a\u043e\u043c\u043d\u0430\u0442\u0430 #scripting<\/a><\/li>\n<li><a href=\"https:\/\/gist.github.com\/search?l=Lua&amp;q=obslua\">\u0413\u0438\u0442\u0445\u0430\u0431 \u0433\u0438\u0441\u0442 obslua<\/a> <\/li>\n<li><a href=\"https:\/\/github.com\/search?l=Lua&amp;o=desc&amp;q=obslua&amp;s=indexed&amp;type=Code\">\u0413\u0438\u0442\u0445\u0430\u0431 \u043f\u043e\u0438\u0441\u043a obslua<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/obsproject\/obs-studio\/issues\/3462\">\u0411\u0430\u0433 API \u0433\u0434\u0435 \u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0445 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c-\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c<\/a><\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/520684\/\"> https:\/\/habr.com\/ru\/post\/520684\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/520684\/\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0432 \u044d\u0442\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f OBS \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Lua.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433 \u0432 OBS \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 21, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u043e\u0432\u0435\u0439\u0448\u0430\u044f 26.0.0-rc3 \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0431 \u043a\u0430\u043c\u0435\u0440\u0443 (\u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows), \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u043d\u044b\u0439 UI, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430( \u041a\u0414\u041f\u0412 \u0431\u044b\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438).<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/rmdGW46.png\" alt=\"image\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-310484","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=310484"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/310484\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=310484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=310484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=310484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}