Last active
April 12, 2023 21:10
-
-
Save positlabs/5fea51a4d61713353ffb368aa3cf18ea to your computer and use it in GitHub Desktop.
Revisions
-
positlabs revised this gist
Apr 12, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ //@input SceneObject obj /** @type {SceneObject} */ var obj = script.obj script.createEvent('CameraFrontEvent').bind(function(){ if(obj) obj.enabled = true }) script.createEvent('CameraBackEvent').bind(function(){ if(obj) obj.enabled = false }) -
positlabs revised this gist
Mar 10, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ //@input SceneObject obj /** @type {SceneObject} */ var obj = script.obj || script.getSceneObject() script.createEvent('CameraFrontEvent').bind(function(){ obj.enabled = true -
positlabs created this gist
Mar 10, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ //@input SceneObject obj /** @type {SceneObject} */ var obj = script.obj script.createEvent('CameraFrontEvent').bind(function(){ obj.enabled = true }) script.createEvent('CameraBackEvent').bind(function(){ obj.enabled = false })