[Bf-python] Openingen DXF files with python

blender at universalgrid.nl blender at universalgrid.nl
Tue Jun 29 15:45:07 CEST 2004


If you have any examples of it, please tell me. I would be very grateful.

On Tuesday 29 June 2004 15:52, Campbell Barton wrote:
> What you want is a hook to blenders open dxf function, none exist right
> now but its useually trivial to add hooks like this.
> If I wasnt busy Id do it.
> - Cam
>
> blender at universalgrid.nl wrote:
> >Well, I want to open the file, just like pressing F1, automatically parsed
> > to a model in Blender.
> >If that isn't possible, I could write my own import script using this.
> >
> >On Tuesday 29 June 2004 15:01, Stephen Swaney wrote:
> >>blender at universalgrid.nl wrote:
> >>>Hi,
> >>>Just started Python scripting...
> >>>Is there any way to open a dxf file with python scripting in blender?
> >>
> >>The obvious answer to this question is to use
> >>the 'file' built-in command.  If your file is binary,
> >>you will want the 'struct' module which means a full
> >>python install.
> >>
> >>import struct
> >>f = file('my_file', 'rb') # open my_file in binary mode
> >>
> >>The obviousnes of this answer makes me suspect I have
> >>missed something implied by the question.




More information about the Bf-python mailing list