def cap_sister_scenes(attach=False, test=False): import os.path # sister bath surprise import hs, time if not attach: hs.reset() hs.configsetup() def cap_scenes(): import hs, os.path, UserData _path = os.path.abspath(os.path.join(UserData.Create("cap"), 'sister')) if not os.path.exists(_path): os.makedirs(_path) hs.move_camera(pos=(0.0, 0.8, 0.0), dir=(0.0, 0.0, -2.3), angle=(21.9, 169.7, 0.0), fov=23.0) # begin females hsfem = hs.HSFemale.create_female('[GX]Sister', attach=True) hsfem.load_animation('h/anim/female/00.unity3d', 'ha_f_02') hsfem.move(pos=(0.0, 0.1, -0.6), rot=(7.4, 3.2, 356.0)) hsfem.chara.SetActiveTop(True) hsfem.chara.ChangeBlinkFlag(False) hsfem.chara.ChangeEyesPtn(28, True) hsfem.chara.ChangeMouthPtn(16, True) hsfem.chara.ChangeLookNeckPtn(1) hsfem.chara.ChangeLookEyesPtn(1) hsfem.set_clothes_state_all(2) # begin items item = hs.HSItem.create_item('Bathtub (Yellow)') item.move(pos=(0.0, 0.0, 0.0), rot=(0.0, 0.0, 0.0)) yield os.path.join(_path, 'dailybath (3).png') yield None # accelerate time to avoid awkward captures from UnityEngine import Time oldTimeScale = Time.timeScale Time.timeScale = 5.0 try: scenes = cap_scenes() for scene in scenes: if not scene: break print scene time.sleep(2.5) if not test: hs.capture(scene) finally: Time.timeScale = oldTimeScale
def setup(): import hs import time # reset the studio to blank hs.reset() # set the camera settings to be favorable to transparent screenshots setupconfig() hs.move_camera(pos=(0.0, 0.9, 0.0), dir=(0.0, 0.0, -5.0), angle=(0.0, 180.1, 0.0), fov=23.0)
def run(): from Manager import Studio import hs import time # reset the studio to blank hs.reset() # set the camera settings to be favorable to transparent screenshots setupconfig() studio = Studio.Instance hAnime = studio.hAnimeListScrlCtrl # load sample girl and make default on h animation @unity def createfemale(file): studio.SelectSex = 1 hs.place_char('female', file) hAnime.CurrentCharaSet() createfemale('sample_female.png') # load sample male and make default on h animation @unity def createmale(file): studio.SelectSex = 0 hs.place_char('male', file) hAnime.CurrentCharaSet() createmale('sample_male.png') # load an animation and move the camera load_hanime(0, 0, 0) hs.move_camera(pos=(0, 0.8, 0), dir=(0.0, 0.0, -5.0), angle=(43.7, 223.4, 0.0)) time.sleep(2) hs.capture() load_hanime('Service', 1, 'SLoop') time.sleep(2) hs.capture()
def test(): import hs hs.reset() hs.configsetup() hs.move_camera(pos=(0.0, 0.8, 0.0), dir=(0.0, 0.0, -2.3), angle=(21.9, 169.7, 0.0), fov=23.0) # begin females hsfem = hs.HSFemale.create_female('[GX]Sister') hsfem.load_animation('h/anim/female/00.unity3d', 'ha_f_02') hsfem.move(pos=(0.0, 0.1, -0.6), rot=(7.4, 3.2, 356.0)) hsfem.chara.SetActiveTop(True) hsfem.chara.ChangeBlinkFlag(False) hsfem.chara.ChangeEyesPtn(28, True) hsfem.chara.ChangeMouthPtn(16, True) hsfem.chara.ChangeLookNeckPtn(1) hsfem.chara.ChangeLookEyesPtn(1) hsfem.set_clothes_state_all(2) # begin items item = hs.HSItem.create_item('Bathtub (Yellow)') item.move(pos=(0.0, 0.0, 0.0), rot=(0.0, 0.0, 0.0))
def setup(): import hs # reset the studio to blank hs.reset() # set the camera settings to be favorable to transparent screenshots hs.configsetup()