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 characters
| # !/usr/bin/env python | |
| import lx | |
| import lxu | |
| import lxu.select | |
| def setSceneTag (tagID, tagValue) | |
| if isinstance (tagID, basestring): | |
| if len (tagID) != 4: | |
| lx.out('Tag ID must be 4 characters long!') |
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 characters
| #!/usr/bin/env python | |
| import lx | |
| import lxifc | |
| import lxu.command | |
| class DeleteMaps (lxifc.Visitor): | |
| def __init__ (self, meshmap): | |
| self.meshmap = meshmap |
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 characters
| #!/usr/bin/env python | |
| import lx | |
| import lxifc | |
| import lxu.command | |
| import lxu.select | |
| default_type = 'weight' | |
| default_source_name = 'Weight' | |
| default_target_name = 'Weight' |
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 characters
| #!/usr/bin/env python | |
| # Uses Smallest Enclosing Circle code which is: | |
| # Copyright (c) 2014 Nayuki Minase | |
| # http://nayuki.eigenstate.org/page/smallest-enclosing-circle | |
| import lx | |
| import lxifc | |
| import lxu.command | |
| import lxu.select |
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 characters
| using UnityEngine; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.EventSystems; | |
| [System.Serializable] | |
| public class CableCurve { | |
| [SerializeField] | |
| Vector3 m_start; |
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 characters
| #!/usr/bin/env python | |
| import lx | |
| import lxifc | |
| import lxu.command | |
| class DeleteMaps (lxifc.Visitor): | |
| def __init__ (self, meshmap): | |
| self.meshmap = meshmap |
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 characters
| #!/usr/bin/env python | |
| # Transfer the selected weight maps from the primary (first selected) mesh to all other active (selected) meshes (map is created if required). | |
| # Transfer happens via vertex index, if the two meshes have different vertex counts nothing will happen. | |
| # If no weight maps are selected, all are transferred. | |
| # Optional target map argument will cause the first selected weight map found on the primary mesh to be transferred to a weight map of the given name on the active mesh (map is created on the active mesh if required). | |
| # NOTE: With the optional map argument given, only one map will be transferred. | |
| import lx | |
| import lxifc |
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 characters
| #!/usr/bin/env python | |
| import lx | |
| import lxu | |
| import lxifc | |
| import lxu.command | |
| class ListUVMaps (lxifc.Visitor): | |
| def __init__ (self, meshmap): | |
| self.meshmap = meshmap |
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 characters
| #!/usr/bin/env python | |
| import lx | |
| import subprocess | |
| import os | |
| # Paths for xNormal. | |
| path_xnormal_basedir = r'C:\Program Files\Santiago Orgaz' | |
| path_xnormal_exedir = r'\x64\xNormal.exe' | |
| path_xnormal = r'C:\Program Files\Santiago Orgaz\xNormal 3.18.9\x64\xNormal.exe' |
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 characters
| import math | |
| # Given a matrix, return euler angles of rotation as (X,Y,Z) in radians. | |
| # Matrix is assumed to be either a lx.object.Matrix or a list[3][3] of floats. | |
| def matrixToEuler (matrix, rotOrder): | |
| if type(matrix) != list: | |
| m = matrix.Get3 () | |
| else: | |
| m = matrix |