This file contains 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 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 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 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 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 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 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 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 | |
def vclamp (a): | |
b = list(a) | |
beenClamped = False | |
for x in xrange(4): |
This file contains 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
# Run with `ffr.expandByMat`, it will expand the current polygon selection by the material ID of the current polygon selection. | |
# | |
# An optional argument, `materialID` will expand only by a given material ID, e.g. | |
# `ffr.expandByMat "Default"` | |
#!/usr/bin/env python | |
import lx | |
import lxu.command | |
import lxifc |
This file contains 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.command | |
import lxifc | |
class SetMarks (lxifc.Visitor): | |
def __init__ (self, acc, mark): | |
self.acc = acc | |
self.mark = mark |