Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_Functions.py   PyPRP(Download)
def alcCreateLinkInPoint(name="LinkInPointDefault",where=None,page=0):
    obj = Blender.Object.New('Empty',name)
    scene = Blender.Scene.GetCurrent()
    scene.link(obj)
    #obj.addProperty("name",name)
def alcCreateMesh(name,vertices,faces):
    obj = Blender.Mesh.New(name)
    obj.verts.extend(vertices)
    obj.faces.extend(faces)
    scene = Blender.Scene.GetCurrent()
        faces = [ [0,2,5,1], [5,2,7,4], [1,5,4,6], [0,1,6,3], [3,6,4,7], [0,3,7,2] ]
    obj.faces.extend(faces)
    scene = Blender.Scene.GetCurrent()
    sobj = scene.objects.new(obj,name)
    sobj.select(False)
    face = [0,1,3,2]
    obj.faces.extend(face)
    scene = Blender.Scene.GetCurrent()
    sobj = scene.objects.new(obj,name)
    sobj.select(False)
    rgnoffset = 0 - (rgnsize/2)
    obj = alcCreatePlane(tempname,rgnsize,rgnoffset,rgnoffset,0)
    scene = Blender.Scene.GetCurrent()
    obj.addProperty("type","svconvex")
    obj.setLocation(Blender.Window.GetCursorPos())

src/b/l/Blender-Exporter-HEAD/org.xml3d.exporter.blender/src/2.49/xml3d_exporter.py   Blender-Exporter(Download)
def export_gui(filename):
    exporter = xml3d_exporter(filename, True)
    scene = Blender.Scene.GetCurrent()
    exporter.write(scene)
 
    #print("From command line")
    exporter = xml3d_exporter("C:/tmp/test.xhtml", False)
    scene = Blender.Scene.GetCurrent()
    exporter.write(scene)
    Blender.Quit()

src/p/y/PyPRP-HEAD/PyPRP/prp_Wizards.py   PyPRP(Download)
    oldbookobjects = []
 
    scene = Blender.Scene.GetCurrent()
    for obj in list(scene.objects):
        # if this object has a "book" property, ignore it

src/a/e/Aerospace-Simulations-HEAD/morse/src/morse/geolandloader/geoShapefileLoader.py   Aerospace-Simulations(Download)
        buildingMesh.materials = [buildingMat]
        #--- Creating new Object in current scene
        scene = Blender.Scene.GetCurrent()
        buildingObject = scene.objects.new(buildingMesh)
        Blender.Window.Redraw()

src/b/l/blender_nif_plugin-HEAD/todo/utilities/mesh_niftools_morphcopy.py   blender_nif_plugin(Download)
def main(arg):
    print('\nStarting morph copy...')
 
    # get selected meshes
    scn = Blender.Scene.GetCurrent()

src/d/r/DrQueueIPython-HEAD/etc/blender_same_directory.py   DrQueueIPython(Download)
 
  # get scene settings
  scn = Scene.GetCurrent()
  context = scn.getRenderingContext()
 

src/d/r/DrQueueIPython-HEAD/etc/blender_region_rendering.py   DrQueueIPython(Download)
 
# get scene settings
scn = Scene.GetCurrent()
context = scn.getRenderingContext()
 

src/m/a/mavsim-HEAD/blender/import_freecad.py   mavsim(Download)
        Draw.PupMenu('Error%t|FreeCAD library not found.')
    else:
        sce = Scene.GetCurrent()
        import Part
        from draftlibs import fcvec