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
################################################################################ | |
# | |
# SetMeshInstance.py | |
# | |
# Version: 0.1 | |
# | |
# Author: Ivo Grigull | |
# | |
# Last Update: 10/06/2015 | |
# |
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
import time | |
import lx | |
dialog_svc = lx.service.StdDialog() | |
# Allocate monitor | |
mon = lx.object.Monitor(dialog_svc.MonitorAllocate('Calculating Center Of Mass ...')) | |
steps = 50 |
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
import lxu | |
import lxu.select | |
def loadImage(filepath, width, height): | |
''' | |
Loads an image as clip and returns it's image interface object. | |
''' | |
if not os.path.exists(filepath): | |
raise AttributeError("Path does not exist") |
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
# python | |
# | |
# Example method for turning a direction vector into an euler rotation | |
# | |
# There is a similar example using the API for this by Lukasz Pazera: https://gist.github.com/lukpazera/5994547 | |
# This function really does the same, using the mathutils of the TD SDK | |
import modo | |
import math |
OlderNewer