[Bf-funboard] Associating 3D models with Blender

Robert Wenzlaff (AB8TD) rwenzlaff at soylent-green.com
Sun Aug 12 07:07:26 CEST 2007


On Thursday 02 August 2007 08:00, Campbell Barton wrote:
> There are 2 ways this could be done,
> 1) have a script that runs when the filetype is not known, this script
> would check which importer to use deal with calling the right script
> with the filename arg.

This should already be partly possible.

There is a switch for running a script at start (-P scriptname), just make it 
do nothing if no file name is passed.  I believe you can set a switch default 
under most OS's.

There's also an "onLoad" script link that you could set in your .b.blend 
defaults file (using CTRL-U).  This would have the advantage that it would 
work when loading a file in blender, too.

I think it would require changing the loading function to allow other file 
types.  I know only .blend's are highlighted as valid in the File Browser.

-- 
*********************************************
     Overheard at the Wenzlaff house:

 Connor: Let's play Robin Hood.
 Liam: Ok, I'll be the Taxi collector.
*********************************************
Robert Wenzlaff   rwenzlaff at soylent-green.com


More information about the Bf-funboard mailing list