Follow
GREPPER
SEARCH SNIPPETS
PRICING
FAQ
USAGE DOCS
INSTALL GREPPER
Log In
All Languages
>>
Lisp
>>
elisp return type
“elisp return type” Code Answer
elisp return type
lisp by
Comfortable Cicada
on Jun 26 2020
Donate
0
import bpy from mathutils import Matrix, Vector import bmesh context = bpy.context obj = context.edit_object mw = obj.matrix_world.copy() bm = bmesh.from_edit_mesh(obj.data) face = bm.select_history.active o = face.calc_center_median() axis_src = face.normal axis_src2 = face.calc_tangent_edge() axis_dst = Vector((0, 0, 1)) axis_dst2 = Vector((0, 1, 0)) vec2 = axis_src * obj.matrix_world.inverted() matrix_rotate = axis_dst.rotation_difference(vec2).to_matrix().to_4x4() vec1 = axis_src2 * obj.matrix_world.inverted() axis_dst2 = axis_dst2*matrix_rotate.inverted() mat_tmp = axis_dst2.rotation_difference(vec1).to_matrix().to_4x4() matrix_rotate = mat_tmp*matrix_rotate matrix_translation = Matrix.Translation(mw * o) # obj2 = context.scene.objects.get("Cube.001") obj2.matrix_world = matrix_translation * matrix_rotate.to_4x4()
Source:
blender.stackexchange.com
Lisp queries related to “elisp return type”
return type
elisp return type
emacs lisp function return a string
emacs return vlaue from function
Learn how Grepper helps you improve as a Developer!
INSTALL GREPPER FOR CHROME
More “Kinda” Related Lisp Answers
View All Lisp Answers »
for loop in common lisp
common lisp ide macos
lisp input
common lisp map number to word
elisp return type
list contains lisp
magit pull request
emacs switch horizontal vertical
Write a function that computes the sum of all proper divisors of a given number lisp
Write a function that computes the sum of all proper divisors of a given number lisp
Browse Other Code Languages
Abap
ActionScript
Assembly
BASIC
C
Clojure
Cobol
C++
C#
CSS
Dart
Delphi
Elixir
Erlang
Fortran
F#
Go
Groovy
Haskell
Html
Java
Javascript
Julia
Kotlin
Lisp
Lua
Matlab
Objective-C
Pascal
Perl
PHP
PostScript
Prolog
Python
R
Ruby
Rust
Scala
Scheme
Shell/Bash
Smalltalk
SQL
Swift
TypeScript
VBA
WebAssembly
Whatever