Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Software Update #1

Open
wants to merge 26 commits into
base: software-based
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
# staging
The startup screening repo for all new projects.
The startup screening repo for all new projects. It ensures uniformality of script
properties such as attribution, labelling, handling tags, etc..

Introduction:

#Synopsis: Setup and maintain an app to screen candidate projects (demos) to be
entered into the storefront using general tagging and markup for testing purposes.

#Title: Staging Block 001

#Attributions: Cloudbursting Stock

#Programs Used : IDLEx for Python (prop), Notepad++ (see below), TreeLine (Hosted @ Sourceforge), MS Excel,

CAD Design:
https://sharecad.org/

Outline Builder:
https://sourceforge.net/projects/treeline/files/latest/download

Document Designer:
https://github.com/notepad-plus-plus/notepad-plus-plus

Spreadsheets:
https://office.live.com/start/Excel.aspx?omkt=en%2DGB


Links to Snip-Uni Projects:

#https://github.com/Snippet-University/staging

#https://github.com/Snippet-University/trial_bench

#https://github.com/Snippet-University/assembly_calibration

#https://github.com/Snippet-University/prop_diagnostics

#https://github.com/Snippet-University/local_diagnostics

#https://github.com/Snippet-University/engine_block

#https://github.com/Snippet-University/snippet_library
3 changes: 3 additions & 0 deletions Staging Block Technical Orders
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The Staging Block Technical Orders document
is the framework for all staging extension
compatibility.
30 changes: 30 additions & 0 deletions Staging by Python
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Python application

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
167 changes: 167 additions & 0 deletions Structure: Useful Code Snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# -*- coding: UTF8 -*-
# Dialog Library

import wx
import poser

def Choose( title = '' , prompt = '' , OptionList = [] , response = None ):
dialog = wx.SingleChoiceDialog( None, title , prompt , OptionList ) # prepare the dialog

if not OptionList == []: # ensure the list is not empty

if dialog.ShowModal() == wx.ID_OK: # check the dialog response
return dialog.GetStringSelection() # return the selected string

else:
return None

dialog.Destroy() # destroy the dialog

else:
return None

def ChooseMulti( title = '' , prompt = '' , OptionList = [] ):

dialog = wx.MultiChoiceDialog( None, prompt, title, OptionList ) # prepare the dialog

if dialog.ShowModal() == wx.ID_OK: # check the dialog response
selections = dialog.GetSelections() # get the selections indices
strings = [OptionList[x] for x in selections] # get the selections strings
return (selections, strings)

else:
return (False, False)

dialog.Destroy()

def OkCancel( title = None , alertmessage = None, okonly = False ):

if okonly:
style = ( wx.OK|wx.ICON_INFORMATION|wx.STAY_ON_TOP ) # test if the dialog requires only an ok button
else:
style = ( wx.OK|wx.CANCEL|wx.ICON_INFORMATION|wx.STAY_ON_TOP )

ok_dialog = wx.MessageDialog(None, alertmessage, title, style=wx.OK|wx.CANCEL|wx.ICON_INFORMATION|wx.STAY_ON_TOP) # prepare the dialog

if ok_dialog.ShowModal() == wx.ID_OK: # test dialog response
return True

else:
return False

def ShowAlert( title = None , alertmessage = None , icon = 0, Btype = 0, bType = 0 ):

icons = {
0: wx.ICON_ERROR,
1: wx.ICON_EXCLAMATION,
2: wx.ICON_HAND,
3: wx.ICON_QUESTION,
4: wx.ICON_INFORMATION,
5: wx.ICON_NONE
} # set up icons

buttonType = {
0: wx.OK,
1: wx.CANCEL, # Must be combined with either OK or YES_NO
2: wx.YES_NO,
3: wx.HELP,
4: wx.NO_DEFAULT, # Can only be used with YES_NO
5: wx.CANCEL_DEFAULT, # This style is currently not supported (and ignored) in wxOSX.
6: wx.YES_DEFAULT, # Can only be used with YES_NO
7: wx.OK_DEFAULT
} # set up buttons

behaviourType = {
0: wx.STAY_ON_TOP,
1: wx.CENTRE
} # set up behaviour

icon = icons[ icon ] # select icon to display
atype = buttonType[ Btype ] # select buttons to display
btype = behaviourType[ bType ] # select behaviour

wx.MessageDialog(None, alertmessage, title, style = atype | icon | btype ).ShowModal() # Show alert message

def ShowTextEntry( title = "" , message = "" , answer = None ):
TE_dialog = wx.TextEntryDialog(None, message, title, "", style=wx.OK) # none = parent
TE_dialog.SetValue("")

if TE_dialog.ShowModal() == wx.ID_OK:
answer = TE_dialog.GetValue()
else:
answer = False

TE_dialog.Destroy()

return answer

def GetFile( StartFolder = "" , parent = None):
types = "Camera (*.cm2 , *.cmz)|*.cm2; *.cmz|"
"Figure (*.cr2 , *.crz)|*.cr2; *.crz|"
"Expression (*.fc2 , *.fcz)|*.fc2; *.fcz|"
"Hand (*.hd2 , *.hdz)|*.hd2; *.hdz|"
"Hair (*.hr2 , *.hrz)|*.hr2; *.hrz|"
"Light (*.lt2 , *.ltz)|*.lt2; *.ltz|"
"Material (*.mt5 , *.mtz , *.mc6 , *.mcz)|*.mt5; *.mtz; *.mc6; *.mcz|"
"Object (*.obj , *.obz)|*.obj; *.obz|"
"Pose (*.pz2 , *.p2z)|*.pz2; *.p2z|"
"Prop (*.pp2 , *.ppz)|*.pp2; *.ppz|"
"Python Script (*.py , *.pyc , *.pyd)|*.py; *.pyc; *.pyd|"
"Scene (*.pz3 , *.pzz)|*.pz3; *.pzz|"
"all files (*.*)|*.*|"

openFileDialog = wx.FileDialog( parent, "Select a File", StartFolder , "", types , wx.FD_OPEN | wx.FD_FILE_MUST_EXIST )

openFileDialog.ShowModal()
wD = openFileDialog.GetPath()
openFileDialog.Destroy()

if wD:
return wD
else:
return False

def GetFolder( FolderType = None, StartFolder = None ):
# get working folder
dialog = wx.DirDialog(None, 'Select a %s Folder ' %FolderType, StartFolder , style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON)

if dialog.ShowModal() == wx.ID_OK:
return dialog.GetPath()

else:
return False

def YesNo( title = "" , message = "" , answer = None ):
# get working folder
YN_dialog = wx.MessageDialog(None, message, style=wx.YES|wx.NO )

if YN_dialog.ShowModal() == wx.ID_YES:
return True

else:
return False

def get_desktop_path():

D_paths = list()

try:
fs = open(os.sep.join((os.path.expanduser("~"), ".config", "user-dirs.dirs")),'r')
data = fs.read()
fs.close()
except:
data = ""

D_paths = re.findall(r'XDG_DESKTOP_DIR="([^"]*)', data)

if len(D_paths) == 1:
D_path = D_paths[0]
D_path = re.sub(r'$HOME', os.path.expanduser("~"), D_path)
else:
D_path = os.sep.join((os.path.expanduser("~"), 'Desktop'))

if os.path.isdir(D_path):
return D_path

else:
return None
100 changes: 100 additions & 0 deletions Virtual_me_Release___UPDATED_by_Ean_Sze
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
version
{
number 4.01
}
readScript ":Runtime:Libraries:ESInject:Delta:InjDeltas.PBM-ES.pz2"
figure
{
defaultPick BODY
}
readScript ":Runtime:Libraries:ESInject:Delta:Unhide.PBM-ES.pz2"
actor rEye:2
{
channels
{
targetGeom PHMEyeCorneaBulge
{
keys
{
k 0 1
}
}
targetGeom PHMEyeIrisBulge
{
keys
{
k 0 1
}
}
translateX xtran
{
keys
{
k 0 -0.00104651
}
trackingScaleMult 1
}
translateY ytran
{
keys
{
k 0 -0.00104651
}
trackingScaleMult 1.000000
}
translateZ ztran
{
keys
{
k 0 0.000581395
}
trackingScaleMult 1.000000
}
}
}
actor lEye:2
{
channels
{
targetGeom PHMEyeCorneaBulge
{
keys
{
k 0 1
}
}
targetGeom PHMEyeIrisBulge
{
keys
{
k 0 2
}
}
translateX xtran
{
keys
{
k 0 0.001
}
trackingScaleMult 1
}
translateY ytran
{
keys
{
k 0 -0.001
}
trackingScaleMult 1.000000
}
translateZ ztran
{
keys
{
k 0 0.000581395
}
trackingScaleMult 1.000000
}
}
}
}
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
jobs:
build:
docker:
- image: circleci/ruby:2.4.1
steps:
- checkout
- run: echo "The code you have just ran build correctly."
Loading