[pyassimp] Make it easier to import pyassimp
'import pyassimp' (instead of 'from pyassimp import core') is now sufficientpull/22/head
parent
b00ee8b24a
commit
fb280d7cf5
|
@ -25,7 +25,7 @@ substituted by assertions ...):
|
|||
|
||||
```python
|
||||
|
||||
from pyassimp.core import *
|
||||
from pyassimp import *
|
||||
scene = load('hello.3ds')
|
||||
|
||||
assert len(scene.meshes)
|
||||
|
@ -44,7 +44,7 @@ scene:
|
|||
|
||||
```python
|
||||
|
||||
from pyassimp.core import *
|
||||
from pyassimp import *
|
||||
scene = load('hello.3ds')
|
||||
|
||||
for c in scene.rootnode.children:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
from .core import *
|
|
@ -15,7 +15,7 @@ Based on:
|
|||
import sys
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger("underworlds.3d_viewer")
|
||||
logger = logging.getLogger("pyassimp")
|
||||
gllogger = logging.getLogger("OpenGL")
|
||||
gllogger.setLevel(logging.WARNING)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
@ -38,7 +38,7 @@ import math, random
|
|||
import numpy
|
||||
from numpy import linalg
|
||||
|
||||
from pyassimp import core as pyassimp
|
||||
import pyassimp
|
||||
from pyassimp.postprocess import *
|
||||
from pyassimp.helper import *
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ This module demonstrates the functionality of PyAssimp.
|
|||
|
||||
import os, sys
|
||||
import logging
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
from pyassimp import core as pyassimp
|
||||
import pyassimp
|
||||
|
||||
def recur_node(node,level = 0):
|
||||
print(" " + "\t" * level + "- " + str(node))
|
||||
|
|
|
@ -35,7 +35,7 @@ logging.basicConfig(level=logging.INFO)
|
|||
import math
|
||||
import numpy
|
||||
|
||||
from pyassimp import core as pyassimp
|
||||
import pyassimp
|
||||
from pyassimp.postprocess import *
|
||||
from pyassimp.helper import *
|
||||
|
||||
|
|
Loading…
Reference in New Issue