From 24f303c6ca7dcf60ecd7155ddb1738db4e56a45f Mon Sep 17 00:00:00 2001 From: reduz Date: Thu, 19 Jun 2014 21:59:49 -0700 Subject: [PATCH] Updated import_3d (markdown) --- import_3d.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/import_3d.md b/import_3d.md index 8081615..33dea53 100644 --- a/import_3d.md +++ b/import_3d.md @@ -143,6 +143,22 @@ Some animations are meant to be cycled (like walk animations) if this is the cas ## Import Script +Creating a script to parse the imported scene is actually really simple. This is great for post processing, changing materials, doing funny stuff with the geometry, etc. + +Create a script that basically looks like this: + +```python + +tool #needed so it runs in editor +extends EditorScenePostImport + +func post_import(scene): + #do your stuff here + pass # scene contains the imported scene starting from the root node + +``` + +The post_import function takes the imported scene as parameter (the paramenter is actually the root node of the scene). ## Update Logic