Preview GLB 3D model result script

Preview GLB 3D model result script script details
Type
Blockly logo image
blockly
App Version
0.13.3
Visibility
public
Date Created
Jan 9, 2023, 2:31:48 PM
Last Edit Date
Dec 30, 2023, 10:12:39 AM

Script Details

The Code
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="k8PXca[~pU++JfmZM-7h">grid</variable> <variable id="P^=lfRYQ]r,XYl~U[HSn">tower</variable> </variables> <block type="variables_set" id="IF-QZ:uP)Crp,@!:^W!i" x="227" y="-401"> <field name="VAR" id="k8PXca[~pU++JfmZM-7h">grid</field> <value name="VALUE"> <block type="bitbybit.draw.drawGridMesh" id="q}$+Z!}`ibU/:tR.;(zP"> <value name="Width"> <block type="math_number" id=";gU+oTlD*h*227XM-z?K"> <field name="NUM">400</field> </block> </value> <value name="Height"> <block type="math_number" id="}@6B?Wi]R7OhWDf::w4/"> <field name="NUM">400</field> </block> </value> <value name="Subdivisions"> <block type="math_number" id="^KyjVv^}[pX*5U6S0nt%"> <field name="NUM">10</field> </block> </value> <value name="MajorUnitFrequency"> <block type="math_number" id="w]67%5KKo7Ex}(moVEkH"> <field name="NUM">10</field> </block> </value> <value name="MinorUnitVisibility"> <block type="math_number" id="sq1~3BN6pB$:,AnEnGAG"> <field name="NUM">0.45</field> </block> </value> <value name="GridRatio"> <block type="math_number" id="0%]F45mB8.aa/2?.Z$2S"> <field name="NUM">0.5</field> </block> </value> <value name="Opacity"> <block type="math_number" id="%iH(q8QHp6N[YEZu8pe}"> <field name="NUM">0.5</field> </block> </value> <value name="BackFaceCulling"> <block type="logic_boolean" id="q3OKxvze1)Y0YK]nkiXq"> <field name="BOOL">TRUE</field> </block> </value> <value name="MainColor"> <block type="colour_picker" id="9d;I=6aP{MK+mW_FF:|~"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="SecondaryColor"> <block type="colour_picker" id=";m#h7bfPX`=)fa]DiIpd"> <field name="COLOUR">#ffffff</field> </block> </value> </block> </value> <next> <block type="bitbybit.babylon.scene.enableSkybox" id="3@e/d+N7G|v=3Qn+?:F5"> <value name="Skybox"> <block type="bitbybit.babylon.enums.skyboxEnum" id="aKsLK1)LXV~sgW~;{..:"> <field name="bitbybit.babylon.enums.skyboxEnum">'clearSky'</field> </block> </value> <value name="Size"> <block type="math_number" id="e/M;,;`R/mUgFr;jC6Y*"> <field name="NUM">1000</field> </block> </value> <value name="Blur"> <block type="math_number" id="HKNNORmpe)C.`7]7/o9t"> <field name="NUM">0.9</field> </block> </value> <value name="EnvironmentIntensity"> <block type="math_number" id="qBVHl69m#T.l`+$|(v1:"> <field name="NUM">0.5</field> </block> </value> <next> <block type="bitbybit.babylon.scene.drawDirectionalLightNoReturn" id="X,7x`[u3I}CPCb4.w6*q"> <value name="Direction"> <block type="bitbybit.point.pointXYZ" id="0,Vv+e))NCIf:yY1[rXc"> <value name="X"> <block type="math_number" id="E[qv7So5-SU])F)3q5Mo"> <field name="NUM">-50</field> </block> </value> <value name="Y"> <block type="math_number" id="Kc]2#5_7Ya(-yHR.N!w!"> <field name="NUM">-10</field> </block> </value> <value name="Z"> <block type="math_number" id="kq,lEn/v@RE,CK_C|SX:"> <field name="NUM">-30</field> </block> </value> </block> </value> <value name="Intensity"> <block type="math_number" id="`kH](74C4Cw27EymYGw$"> <field name="NUM">0.6</field> </block> </value> <value name="Diffuse"> <block type="colour_picker" id="_Qh)~{PsbtSk6AF+[{FW"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="Specular"> <block type="colour_picker" id="F#FlZ)~!J_A]yHxubB9$"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="ShadowGeneratorMapSize"> <block type="math_number" id="c]^O@xXhtsDF],*E#-6H"> <field name="NUM">2056</field> </block> </value> <value name="EnableShadows"> <block type="logic_boolean" id="yg)tX(Bd3mf3:_SmEfWd"> <field name="BOOL">TRUE</field> </block> </value> <value name="ShadowDarkness"> <block type="math_number" id="MNqnrzm5g4df3*`J_m,H"> <field name="NUM">0.5</field> </block> </value> <next> <block type="bitbybit.babylon.scene.drawDirectionalLightNoReturn" id="%6O}FO$_t|TAQ@pF9sS6"> <value name="Direction"> <block type="bitbybit.point.pointXYZ" id=".oj1e9V^8y77|x}W6@)s"> <value name="X"> <block type="math_number" id="9Bv~d7VtW,ehww]{v8qQ"> <field name="NUM">50</field> </block> </value> <value name="Y"> <block type="math_number" id="FbYW[A7#@ur.R`#FK$i*"> <field name="NUM">-10</field> </block> </value> <value name="Z"> <block type="math_number" id="Ers)lx0h4m44q6DQhJ63"> <field name="NUM">30</field> </block> </value> </block> </value> <value name="Intensity"> <block type="math_number" id="9;qaO8)iz#-C}PD+^1H8"> <field name="NUM">0.6</field> </block> </value> <value name="Diffuse"> <block type="colour_picker" id="N80{~33Vv%v+S{`b497Q"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="Specular"> <block type="colour_picker" id="/jB!A=rj8k}Xysv5?6[*"> <field name="COLOUR">#ffffff</field> </block> </value> <value name="ShadowGeneratorMapSize"> <block type="math_number" id=";sMWF%g/b@TY-(}#D3o."> <field name="NUM">2056</field> </block> </value> <value name="EnableShadows"> <block type="logic_boolean" id="(/xQtV4Dy*g0n{vP*2O]"> <field name="BOOL">TRUE</field> </block> </value> <value name="ShadowDarkness"> <block type="math_number" id="Rmh7~hzcCKh-lfa_mb)F"> <field name="NUM">0.5</field> </block> </value> <next> <block type="bitbybit.draw.drawAnyAsyncNoReturn" id="dIaGlT@MfCC)Omy:%*y4"> <value name="Entity"> <block type="bitbybit.occt.shapes.face.createCircleFace" id="h.!lH=S..-$Bs4e1BT(w"> <value name="Radius"> <block type="math_number" id="6VU0SJ6%/hPsp+_ESzWQ"> <field name="NUM">35</field> </block> </value> <value name="Center"> <block type="bitbybit.point.pointXYZ" id="jo@!^$2tr?-F.iCQeT?i"> <value name="X"> <block type="math_number" id="]:dFat230.:pk65nM$20"> <field name="NUM">0</field> </block> </value> <value name="Y"> <block type="math_number" id="s5Py9Be+l!TbR[P6T+Bm"> <field name="NUM">0</field> </block> </value> <value name="Z"> <block type="math_number" id="`m.m30VKDo-c.bb+kX3M"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="Direction"> <block type="bitbybit.point.pointXYZ" id="(|ddH]Vik;s~ltKVyJzg"> <value name="X"> <block type="math_number" id="E;=Wa8nzAI~uBf$J+Xb;"> <field name="NUM">0</field> </block> </value> <value name="Y"> <block type="math_number" id="YIAW4Um3`ij6K+hoNe4}"> <field name="NUM">1</field> </block> </value> <value name="Z"> <block type="math_number" id="s+{H^Ed:zvHoM9:UH%jd"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <value name="Options"> <block type="bitbybit.draw.optionsOcctShapeSimple" id="U%TKj63gm;ahyW-1RRaM"> <value name="Precision"> <block type="math_number" id="{k}WXnM?e:UsCJ)Syl(p"> <field name="NUM">0.05</field> </block> </value> <value name="DrawFaces"> <block type="logic_boolean" id="s?[o.gy9Uu4ddX3Ul}8z"> <field name="BOOL">TRUE</field> </block> </value> <value name="FaceColour"> <block type="bitbybit.color.rgbToHex" id="][^XH!}JAQ)1?/.rPJ{N"> <value name="R"> <block type="math_number" id="74kMn:Bu]dRNd4QZVfqV"> <field name="NUM">85</field> </block> </value> <value name="G"> <block type="math_number" id="k5b^ECPu^S9qX^$)(@/~"> <field name="NUM">85</field> </block> </value> <value name="B"> <block type="math_number" id="_e.-)OR$-s4|JgE@?}?;"> <field name="NUM">255</field> </block> </value> </block> </value> <value name="DrawEdges"> <block type="logic_boolean" id="YC9T~PRFzxGLs09mgpC7"> <field name="BOOL">FALSE</field> </block> </value> <value name="EdgeColour"> <block type="colour_picker" id="~j_ra7?[(trx3p)egR+["> <field name="COLOUR">#bbbbff</field> </block> </value> <value name="EdgeWidth"> <block type="math_number" id=".Ogw_!VACeR|-L@5$ej/"> <field name="NUM">2</field> </block> </value> </block> </value> <next> <block type="base_time_async_context" id="S6paDLJTQS.tw^tLdCk("> <statement name="Then"> <block type="bitbybit.babylon.mesh.moveUp" id="0hW/U|HRwAz]A8vRr`#U"> <value name="BabylonMesh"> <block type="variables_get" id="2N/reya.I*qb8L7leq*]"> <field name="VAR" id="k8PXca[~pU++JfmZM-7h">grid</field> </block> </value> <value name="Distance"> <block type="math_number" id="?s!VqaxR,KmtJg@N7+sk"> <field name="NUM">0.01</field> </block> </value> <next> <block type="variables_set" id="cK)pmeIULr.-e@mx=`LL"> <field name="VAR" id="P^=lfRYQ]r,XYl~U[HSn">tower</field> <value name="VALUE"> <block type="base_time_await_return" id="UOUMdMTf@3nU;.gOGr:["> <value name="Promise"> <block type="bitbybit.babylon.io.loadAssetIntoScene" id="`{0[B|YNGg#]QB}=tG^a"> <value name="AssetFile"> <block type="bitbybit.asset.getFile" id="l]mS@^qN2fM-cipN]UV-"> <value name="FileName"> <block type="text" id="w@M{-{J(.;_+ZWq_nE1n"> <field name="TEXT">parametric-structural-tower-facade.glb</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>