[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender  trunk/blender/source/blender: * Added a new RNA subtype, PROP_IMAGEPATH.
ideasman42 at gmail.com
Tue Jul 27 01:54:49 CEST 2010
sure, the template could take an enum argument and use that to select
the icon and pass some option onto the browse button, see how you go
but getting the template option to pass into the file selector open
operator might be more trouble then adding an image rna datatype to
the rna property.
On Mon, Jul 26, 2010 at 4:32 PM, Nicholas Bishop
<nicholasbishop at gmail.com> wrote:
>> For the file selector filtering you could check the name of the path
>> given and see base the filter options based on that. Kindof a hack but
>> will work when browsing for an existing image path.
> In this case its usually not dealing with an existing image path.
>> probably better to have a datatype enum (like a sub-sub-type :/ ),
>> this way operator's which have a filepath property could set it to be
>> any type could use existing defines for this IMAGEFILE, BLENDERFILE,
>> TEXTFILE etc..
> Would it be preferable to solve this without any use of RNA? E.g. make
> a new UI template for use with any filepaths, and give that template a
> filter property?
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers