Skip to content

Commit

Permalink
Release 2.3 - Final #3
Browse files Browse the repository at this point in the history
  • Loading branch information
simon50keda committed Jun 6, 2022
1 parent 26ee49d commit fce5f87
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/io_scs_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"name": "SCS Tools",
"description": "Setup models, Import-Export SCS data format",
"author": "Simon Lusenc (50keda), Milos Zajic (4museman)",
"version": (2, 3, "5277ea2d"),
"version": (2, 3, "aa16aece"),
"blender": (3, 0, 0),
"location": "File > Import-Export",
"wiki_url": "http://modding.scssoft.com/wiki/Documentation/Tools/SCS_Blender_Tools",
"doc_url": "http://modding.scssoft.com/wiki/Documentation/Tools/SCS_Blender_Tools",
"tracker_url": "http://forum.scssoft.com/viewforum.php?f=163",
"support": "COMMUNITY",
"category": "Import-Export"}
Expand Down
4 changes: 2 additions & 2 deletions addon/io_scs_tools/imp/pia.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ def load(root_object, pia_files, armature, pis_filepath=None, bones=None):
animation = _animation_utils.add_animation_to_root(root_object, animation_name)
animation.export = True
animation.action = anim_action.name
animation.anim_start = anim_action.frame_range[0]
animation.anim_end = anim_action.frame_range[1]
animation.anim_start = int(anim_action.frame_range[0])
animation.anim_end = int(anim_action.frame_range[1])

if total_time:
animation.length = total_time
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
load("scs_bt_configurator.jar")
import scs_bt_configurator
p = scs_bt_configurator.start_it_up(getBundlePath(), "Default_Scene_with_Cube.blend")
try:
wait(Pattern("startup_screen.png").exact(), 5); type(Key.ESC); hover(Pattern("startup_screen.png").exact()); type(Key.ESC)
keyDown(Key.SHIFT); type(Key.RIGHT); keyUp(Key.SHIFT);
find(Pattern("startup_screen_last_frame.png").exact())
click(Pattern("export_scene_button.png").similar(0.90))
wait(1.5)
hover(Location(300, 400)) # move cursor to 3D view
type(2 * Key.ESC) # hide warnings
type("2") # switch to 2nd collection
type(Key.F3 + "SCS Import" + Key.ENTER) # do import
hover(Pattern("new_folder_button.png").exact()); mouseMove(50, 0); paste(scs_bt_configurator.get_path_property("SCSBasePath"))
wait(0.1); click(Pattern("scene_with_cube_file.png").similar(0.95)); type(Key.ENTER)
find(Pattern("after_import_screen.png").exact())
keyDown(Key.SHIFT); type(Key.RIGHT); keyUp(Key.SHIFT);
find(Pattern("after_import_screen_last_frame.png").exact())
except:
scs_bt_configurator.save_screenshot(getBundlePath(), Screen())
raise
finally:
scs_bt_configurator.close_blender(p)
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fce5f87

Please sign in to comment.