Ready Made Assets Loaded

Ready Made Assets Loaded script details
Type
Blockly logo image
blockly
App Version
0.13.0
Visibility
public
Date Created
Dec 23, 2022, 7:43:42 PM
Last Edit Date
Dec 5, 2023, 5:21:03 PM

Script Details

The Code
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="YT|:=]2ouoQ|}Ien_hIT">grid</variable> <variable id="f2kBzNK}C5jz9(wH3:MO">drawnGLB</variable> <variable id=",U9d3R8WMk*_UX4QgjR0">timeElapsedFromPreviousFrame</variable> </variables> <block type="bitbybit.babylon.scene.useRightHandedSystem" id="|uvzC4|f8/#};OXQm|ah" x="-63" y="-371"> <value name="Use"> <block type="logic_boolean" id="sk;z?byT]=($VY#-$KGv"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="bitbybit.babylon.scene.enableSkybox" id="5KB%TVA?z_Ii=Fl6=#tB"> <value name="Skybox"> <block type="bitbybit.babylon.enums.skyboxEnum" id="U`:~-KWz.^K.i=-YBH?6"> <field name="bitbybit.babylon.enums.skyboxEnum">'clearSky'</field> </block> </value> <value name="Size"> <block type="math_number" id="-}(dbpJ.`a:aa5Q4GA60"> <field name="NUM">1000</field> </block> </value> <value name="Blur"> <block type="math_number" id="FR1^XNu({vJIQ-gs}.0]"> <field name="NUM">0.4</field> </block> </value> <value name="EnvironmentIntensity"> <block type="math_number" id="e,jS`~AsH{m0uyWdXW0M"> <field name="NUM">0.8</field> </block> </value> <next> <block type="variables_set" id="9PRI+C3z{w)wQubus{%n"> <field name="VAR" id="YT|:=]2ouoQ|}Ien_hIT">grid</field> <value name="VALUE"> <block type="bitbybit.draw.drawGridMesh" id="1uZ:aI)X=8kY)WiB9?v7"> <value name="Width"> <block type="math_number" id="[irhdem@^y2~yG3(_^F."> <field name="NUM">400</field> </block> </value> <value name="Height"> <block type="math_number" id="+@g3#OdU1py8Hy}`#Mq_"> <field name="NUM">400</field> </block> </value> <value name="Subdivisions"> <block type="math_number" id="LMcZK5}g^PN.n/%|pd14"> <field name="NUM">10</field> </block> </value> <value name="MajorUnitFrequency"> <block type="math_number" id="a-hNlk$am)X?t!q(]!Kg"> <field name="NUM">10</field> </block> </value> <value name="MinorUnitVisibility"> <block type="math_number" id=",fs^KQ/zGB}`uMA/gk3Q"> <field name="NUM">0.45</field> </block> </value> <value name="GridRatio"> <block type="math_number" id=";#{k)T+1]C3[SjGWk|}:"> <field name="NUM">0.5</field> </block> </value> <value name="Opacity"> <block type="math_number" id=",PC.=F{}ilX$dg6cxL?Y"> <field name="NUM">0.5</field> </block> </value> <value name="BackFaceCulling"> <block type="logic_boolean" id="vJe[$?T7mtpt_)GV#gvJ"> <field name="BOOL">TRUE</field> </block> </value> <value name="MainColor"> <block type="colour_picker" id="cMnbmE5fau0iE1:YsgxP"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="SecondaryColor"> <block type="colour_picker" id="SPlM}q=*M}zbbh}|[kj7"> <field name="COLOUR">#ffffff</field> </block> </value> </block> </value> <next> <block type="bitbybit.babylon.scene.drawDirectionalLightNoReturn" id="P/!OH1|8Y8nESnr:@^*:"> <value name="Direction"> <block type="bitbybit.point.pointXYZ" id="SFaVO-NE2cPo_rW-ki7p"> <value name="X"> <block type="math_number" id="UYkvMh]{k=mtgv`1^u$h"> <field name="NUM">-50</field> </block> </value> <value name="Y"> <block type="math_number" id="3$5y`Ul2-$V8g,Lx.7aW"> <field name="NUM">-100</field> </block> </value> <value name="Z"> <block type="math_number" id="}BUV,*vIq:,$te2dY.Yj"> <field name="NUM">-50</field> </block> </value> </block> </value> <value name="Intensity"> <block type="math_number" id="rWt9Up-SC@9IY#G}6nr["> <field name="NUM">2</field> </block> </value> <value name="Diffuse"> <block type="colour_picker" id="okVKrb1|X[xdt{6gchiz"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="Specular"> <block type="colour_picker" id="!oHbS;_B0`U^N6X(Y`z{"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="ShadowGeneratorMapSize"> <block type="math_number" id="U`CBo9Zj~cpV@T?|Oet8"> <field name="NUM">4000</field> </block> </value> <value name="EnableShadows"> <block type="logic_boolean" id="G(up[i_iS]G*|0*/f!QT"> <field name="BOOL">TRUE</field> </block> </value> <value name="ShadowDarkness"> <block type="math_number" id="CCo=oX~|G0s(qjZPK2#v"> <field name="NUM">0</field> </block> </value> <next> <block type="base_time_async_context" id=",e!vRLNz7!2`udY}s*(9"> <statement name="Then"> <block type="variables_set" id="3Fgh#n8%!-[h7L8,400l"> <field name="VAR" id="f2kBzNK}C5jz9(wH3:MO">drawnGLB</field> <value name="VALUE"> <block type="base_time_await_return" id="h-w0wOD?;KP;*?e.sj{T"> <value name="Promise"> <block type="bitbybit.babylon.io.loadAssetIntoScene" id="a@#1,utb;o[zPx5Ys8PW"> <value name="AssetFile"> <block type="bitbybit.asset.getFile" id="w^EUq)K_3{Rm4!`KJ`j8"> <value name="FileName"> <block type="text" id="I4^A[kxYsH/cTU)t4JY|"> <field name="TEXT">parametric-roof.glb</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="base_time_update" id="~m-^GNsY.c8ixYbi}_*,"> <field name="TimePassedMs" id=",U9d3R8WMk*_UX4QgjR0">timeElapsedFromPreviousFrame</field> <statement name="Update"> <block type="bitbybit.babylon.mesh.yaw" id="=q,rjeCpkAqKqmIU,;9{"> <value name="BabylonMesh"> <block type="variables_get" id="jF(`c|MV@Sb*AXMqRh0u"> <field name="VAR" id="f2kBzNK}C5jz9(wH3:MO">drawnGLB</field> </block> </value> <value name="Rotate"> <block type="math_number" id="k5sW9.i(qn`nsRV;0d{P"> <field name="NUM">0.03</field> </block> </value> <next> <block type="bitbybit.babylon.mesh.yaw" id="c*9w[Hw:*bFyqzk;SF]@"> <value name="BabylonMesh"> <block type="variables_get" id="cOM@8m.%TX;$?=T^,Y~7"> <field name="VAR" id="YT|:=]2ouoQ|}Ien_hIT">grid</field> </block> </value> <value name="Rotate"> <block type="math_number" id="7[fAI1IzvYnNX1Bp)Wdt"> <field name="NUM">0.03</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>