This file contains hidden or 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 os | |
| import bpy | |
| # put the location to the folder where the FBXs are located here in this fashion | |
| # this line will only work on windows ie C:\objects | |
| path_to_obj_dir = os.path.join('C:\\', 'objects') | |
| # get list of all files in directory | |
| file_list = sorted(os.listdir(path_to_obj_dir)) | |
| # get a list of files ending in 'fbx' | |
| obj_list = [item for item in file_list if item.endswith('.fbx')] | |
| # loop through the strings in obj_list and add the files to the scene |
This file contains hidden or 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
| package com.example; | |
| import com.jme3.app.SimpleApplication; | |
| import com.jme3.asset.plugins.ClasspathLocator; | |
| import com.jme3.collision.CollisionResult; | |
| import com.jme3.collision.CollisionResults; | |
| import com.jme3.font.BitmapText; | |
| import com.jme3.light.AmbientLight; | |
| import com.jme3.material.Material; | |
| import com.jme3.math.ColorRGBA; |
This file contains hidden or 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 bash | |
| # To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
| # Make sure that the .gnupg directory and its contents is accessibile by your user. | |
| chown -R $(whoami) ~/.gnupg/ | |
| # Also correct the permissions and access rights on the directory | |
| chmod 600 ~/.gnupg/* | |
| chmod 700 ~/.gnupg |
OlderNewer