Пример #1
0
    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
Пример #2
0
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)
Пример #3
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()
Пример #4
0
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))
Пример #5
0
    def cap_scenes():
        import hs, os.path, UserData

        _path = os.path.abspath(os.path.join(UserData.Create("cap"), 'mother'))
        if not os.path.exists(_path): os.makedirs(_path)

        # surprise
        hs.move_camera(pos=(0.0, 0.9, 0.0),
                       dir=(0.0, 0.0, -5.0),
                       angle=(8.5, 184.4, 0.0),
                       fov=23.0)
        # begin females
        hsfem = hs.HSFemale.create_female('[GX] Mother', attach=True)
        #hsfem.load_animation('adv/00.unity3d', 'adv_f_01_00')
        hsfem.play_ik('G Cover')
        hsfem.move(pos=(0.0, 0.0, 0.0), rot=(0.0, 0.0, 0.0))
        hsfem.chara.SetActiveTop(True)
        hsfem.chara.ChangeBlinkFlag(False)
        hsfem.chara.ChangeEyesPtn(11, True)
        hsfem.chara.ChangeMouthPtn(7, True)
        hsfem.chara.ChangeLookNeckPtn(3)
        hsfem.chara.ChangeLookEyesPtn(1)
        hsfem.set_clothes_state_all(2)
        hsfem.enable_accessories(0)
        yield os.path.join(_path, 'dailybath (1).png')

        hs.move_camera(pos=(-0.5, 1.0, 0.0),
                       dir=(0.0, 0.0, -3.8),
                       angle=(24.5, 193.4, 0.0),
                       fov=23.0)
        hsfem.reset()
        #hsfem.load_animation('adv/00.unity3d', 'adv_f_07_00')
        hsfem.play_ik('G Bath Step')
        hsfem.move(pos=(-0.5, -0.3, 0.0), rot=(359.2, 129.0, 359.4))
        hsfem.chara.ChangeBlinkFlag(False)
        hsfem.chara.ChangeEyesPtn(1, True)
        hsfem.chara.ChangeMouthPtn(1, True)
        hsfem.chara.ChangeLookNeckPtn(5)
        hsfem.chara.ChangeLookEyesPtn(1)
        hsfem.set_clothes_state_all(2)
        hsfem.enable_accessories(0)
        # begin items
        item = hs.HSItem.create_item('Bathtub (Yellow)', attach=True)
        item.move(pos=(0.2, -0.1, 0.0), rot=(0.0, 23.0, 4.0))
        yield os.path.join(_path, 'dailybath (2).png')

        hs.move_camera(pos=(-0.4, 0.5, -0.1),
                       dir=(0.0, 0.0, -3.5),
                       angle=(34.0, 157.1, -1.8),
                       fov=23.0)
        # begin females
        hsfem.reset()
        hsfem.load_animation('custom/cf_anim_custom.unity3d', 'edit_F')
        hsfem.play_ik('G Sit Bath 2')
        hsfem.move(pos=(0.0, 0.2, -0.6), rot=(359.7, 7.1, 1.0))
        hsfem.chara.ChangeBlinkFlag(True)
        hsfem.chara.ChangeEyesPtn(5, True)
        hsfem.chara.ChangeMouthPtn(1, True)
        hsfem.chara.ChangeLookNeckPtn(3)
        hsfem.chara.ChangeLookEyesPtn(0)
        hsfem.set_clothes_state_all(2)
        hsfem.enable_accessories(1)
        # begin items
        item = hs.HSItem.create_item('Bathtub (Yellow)', attach=True)
        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