{"id":2708,"date":"2021-02-22T12:01:36","date_gmt":"2021-02-22T12:01:36","guid":{"rendered":"https:\/\/vrforcad.com\/?p=2708"},"modified":"2021-03-28T10:38:48","modified_gmt":"2021-03-28T10:38:48","slug":"introduction-to-vr-variables","status":"publish","type":"post","link":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/","title":{"rendered":"Introduction to VR Variables"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"640\" height=\"181\" src=\"https:\/\/vrforcad.com\/wp-content\/uploads\/2021\/02\/vr_variable_types.png\" alt=\"\" class=\"wp-image-2711\" srcset=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/vr_variable_types.png 640w, https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/vr_variable_types-300x85.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p>Using the visual training builder, user can add variables of the following types:<br><strong>String Variable<\/strong>: Stores object names, message data, ..etc<br><strong>Number Variable<\/strong>: Supports both integer and float numbers, can be used for counting, and storing\/calculating values<br><strong>Time Variable<\/strong>: can save the time at any stage of the VR experience<\/p>\n\n\n\n<h2 id=\"StringVariable\">String Variable<\/h2>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p><strong>Initial value <\/strong>can be set to any string in the variable editor in training builder.<br>When used in <strong>Change Variable<\/strong> response, string should be surrounded in single quotations ( <strong>&#8216;<\/strong> )<br><br><strong>Expression supported operations <\/strong>include adding strings, and substring<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"425\" height=\"282\" src=\"https:\/\/vrforcad.com\/wp-content\/uploads\/2021\/02\/image-1.png\" alt=\"\" class=\"wp-image-2713\" srcset=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/image-1.png 425w, https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/image-1-300x199.png 300w\" sizes=\"(max-width: 425px) 100vw, 425px\" \/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 id=\"TimeVariable\">Time Variable<\/h2>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p><strong>Initial value <\/strong>all time variables are set to the start time of the VR experience.<br>At any point of the VR experience the user can capture current time and store it in a time variable<\/p>\n\n\n\n<p>More info about using time variables can be found in the post <a href=\"https:\/\/vrforcad.com\/timing-processes-in-vr\">Timing processes in VR<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"424\" height=\"277\" src=\"https:\/\/vrforcad.com\/wp-content\/uploads\/2021\/02\/vr_time_variable.png\" alt=\"\" class=\"wp-image-2715\" srcset=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/vr_time_variable.png 424w, https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/vr_time_variable-300x196.png 300w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 id=\"NumberVariable\">Number Variable<\/h2>\n\n\n\n<p>Initial Value can be set to any float or integer numbers<br>The following operations are supported for number variables<br><strong>Increment<\/strong>: Adds one to the current value<br><strong>Decrement<\/strong>: Subtracts one from the current value<br><strong>Time Difference<\/strong>: calculates the different in seconds (up millisecond precision) between two time variables<br><strong id=\"VariableWriter\">Expression<\/strong>: large number of expressions are supported we will discuss those in a new article to be published soon. <\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<h2>Variable Writer <\/h2>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Variable writer tool enables the user to track the value of a variable in the VR experience<\/p>\n\n\n\n<p>The value of the variable is updated dynamically, so whenever the variable value is changes the variable writer will be updated to show the new value of the variable<\/p>\n\n\n\n<p>Variable writer is available under the VR effect menu.<\/p>\n\n\n\n<p>The user can control its size, and place. So it to be aligned on a wall in the scene or on a monitor<\/p>\n\n\n\n<p>User selects which variable to view, color of the text, and prefix text.<br><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"255\" height=\"551\" src=\"https:\/\/vrforcad.com\/wp-content\/uploads\/2021\/02\/varaible_writer.png\" alt=\"\" class=\"wp-image-2716\" srcset=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/varaible_writer.png 255w, https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/varaible_writer-139x300.png 139w\" sizes=\"(max-width: 255px) 100vw, 255px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n<p>Having multiple variable writers belonging to the same group makes them have the same font size.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"373\" height=\"240\" src=\"https:\/\/vrforcad.com\/wp-content\/uploads\/2021\/02\/selecting_variables.png\" alt=\"\" class=\"wp-image-2717\" srcset=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/selecting_variables.png 373w, https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/selecting_variables-300x193.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Quick introductions to VR Variables in training builder <\/p>\n","protected":false},"author":3,"featured_media":2722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[57,9],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Introduction to VR Variables &bull; SimLab Soft Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction to VR Variables &bull; SimLab Soft Blog\" \/>\n<meta property=\"og:description\" content=\"Quick introductions to VR Variables in training builder\" \/>\n<meta property=\"og:url\" content=\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\" \/>\n<meta property=\"og:site_name\" content=\"SimLab Soft Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/SimLab-Soft\/154245504646447\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-22T12:01:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-28T10:38:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/VR-Variables.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1253\" \/>\n\t<meta property=\"og:image:height\" content=\"751\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ashraf Sultan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SimLabSoft\" \/>\n<meta name=\"twitter:site\" content=\"@SimLabSoft\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashraf Sultan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#organization\",\"name\":\"SimLab Soft\",\"url\":\"https:\/\/simlab-soft.com\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/simlabsoft\",\"https:\/\/www.linkedin.com\/company\/simlab-soft\",\"https:\/\/www.youtube.com\/user\/SimLabSoft\",\"https:\/\/www.facebook.com\/pages\/SimLab-Soft\/154245504646447\",\"https:\/\/twitter.com\/SimLabSoft\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/vrforcad.com\/wp-content\/uploads\/2019\/09\/Artboard-2.png\",\"contentUrl\":\"https:\/\/vrforcad.com\/wp-content\/uploads\/2019\/09\/Artboard-2.png\",\"width\":107,\"height\":110,\"caption\":\"SimLab Soft\"},\"image\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#website\",\"url\":\"https:\/\/simlab-soft.com\/blog\/\",\"name\":\"3D CAD VR\",\"description\":\"Lets do more with 3D Models\",\"publisher\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/simlab-soft.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\",\"url\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\",\"name\":\"Introduction to VR Variables &bull; SimLab Soft Blog\",\"isPartOf\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/#website\"},\"datePublished\":\"2021-02-22T12:01:36+00:00\",\"dateModified\":\"2021-03-28T10:38:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/simlab-soft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction to VR Variables\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\"},\"author\":{\"name\":\"Ashraf Sultan\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/5a4ab49342d03a938fefb182b9bc142d\"},\"headline\":\"Introduction to VR Variables\",\"datePublished\":\"2021-02-22T12:01:36+00:00\",\"dateModified\":\"2021-03-28T10:38:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/\"},\"wordCount\":317,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/simlab-soft.com\/blog\/#organization\"},\"articleSection\":[\"Tutorials\",\"VR\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/5a4ab49342d03a938fefb182b9bc142d\",\"name\":\"Ashraf Sultan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8667c9b281e1c6c14d1c23e6ea75112f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8667c9b281e1c6c14d1c23e6ea75112f?s=96&d=mm&r=g\",\"caption\":\"Ashraf Sultan\"},\"url\":\"https:\/\/simlab-soft.com\/blog\/author\/ashraf-sultan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introduction to VR Variables &bull; SimLab Soft Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/","og_locale":"en_US","og_type":"article","og_title":"Introduction to VR Variables &bull; SimLab Soft Blog","og_description":"Quick introductions to VR Variables in training builder","og_url":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/","og_site_name":"SimLab Soft Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/SimLab-Soft\/154245504646447","article_published_time":"2021-02-22T12:01:36+00:00","article_modified_time":"2021-03-28T10:38:48+00:00","og_image":[{"width":1253,"height":751,"url":"https:\/\/simlab-soft.com\/blog\/wp-content\/uploads\/2021\/02\/VR-Variables.png","type":"image\/png"}],"author":"Ashraf Sultan","twitter_card":"summary_large_image","twitter_creator":"@SimLabSoft","twitter_site":"@SimLabSoft","twitter_misc":{"Written by":"Ashraf Sultan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/simlab-soft.com\/blog\/#organization","name":"SimLab Soft","url":"https:\/\/simlab-soft.com\/blog\/","sameAs":["https:\/\/www.instagram.com\/simlabsoft","https:\/\/www.linkedin.com\/company\/simlab-soft","https:\/\/www.youtube.com\/user\/SimLabSoft","https:\/\/www.facebook.com\/pages\/SimLab-Soft\/154245504646447","https:\/\/twitter.com\/SimLabSoft"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/simlab-soft.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/vrforcad.com\/wp-content\/uploads\/2019\/09\/Artboard-2.png","contentUrl":"https:\/\/vrforcad.com\/wp-content\/uploads\/2019\/09\/Artboard-2.png","width":107,"height":110,"caption":"SimLab Soft"},"image":{"@id":"https:\/\/simlab-soft.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/simlab-soft.com\/blog\/#website","url":"https:\/\/simlab-soft.com\/blog\/","name":"3D CAD VR","description":"Lets do more with 3D Models","publisher":{"@id":"https:\/\/simlab-soft.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/simlab-soft.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/","url":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/","name":"Introduction to VR Variables &bull; SimLab Soft Blog","isPartOf":{"@id":"https:\/\/simlab-soft.com\/blog\/#website"},"datePublished":"2021-02-22T12:01:36+00:00","dateModified":"2021-03-28T10:38:48+00:00","breadcrumb":{"@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/simlab-soft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Introduction to VR Variables"}]},{"@type":"Article","@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#article","isPartOf":{"@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/"},"author":{"name":"Ashraf Sultan","@id":"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/5a4ab49342d03a938fefb182b9bc142d"},"headline":"Introduction to VR Variables","datePublished":"2021-02-22T12:01:36+00:00","dateModified":"2021-03-28T10:38:48+00:00","mainEntityOfPage":{"@id":"https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/"},"wordCount":317,"commentCount":0,"publisher":{"@id":"https:\/\/simlab-soft.com\/blog\/#organization"},"articleSection":["Tutorials","VR"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/simlab-soft.com\/blog\/introduction-to-vr-variables\/#respond"]}]},{"@type":"Person","@id":"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/5a4ab49342d03a938fefb182b9bc142d","name":"Ashraf Sultan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/simlab-soft.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8667c9b281e1c6c14d1c23e6ea75112f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8667c9b281e1c6c14d1c23e6ea75112f?s=96&d=mm&r=g","caption":"Ashraf Sultan"},"url":"https:\/\/simlab-soft.com\/blog\/author\/ashraf-sultan\/"}]}},"_links":{"self":[{"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/posts\/2708"}],"collection":[{"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/comments?post=2708"}],"version-history":[{"count":11,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/posts\/2708\/revisions"}],"predecessor-version":[{"id":2744,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/posts\/2708\/revisions\/2744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/media\/2722"}],"wp:attachment":[{"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/media?parent=2708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/categories?post=2708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simlab-soft.com\/blog\/wp-json\/wp\/v2\/tags?post=2708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}