[Bf-funboard] Changing function names at the programmers level

Campbell Barton ideasman42 at gmail.com
Sun Feb 15 22:17:17 CET 2015


Using UUID's has come up before.
While it solves a certain class of problems.

It gives us some extra level of ID's to maintain, Python API to
interact with... (library linking) etc.

Either you expose them to the user - which is verbose & cryptic.
Or they are for internal use only - where we end up maintaining a of
data & API's - only to solve a few internal ID limitations.

And if this is to be used for keymaps. as you suggest, then we will
have to expose to users at some point I'd imagine.

Selecting a brush by index is weak for sure, so why not select by name instead?

On Sun, Feb 15, 2015 at 6:51 PM, Knapp <magick.crow at gmail.com> wrote:
> I have been collecting ideas for Blender and I came across this problem.
>
> "One problem I have with presets is that they are bound to hotkeys via
> their index, which changes when new presets are added/removed. I created a
> "select brush by name" operator as part of my somewhat-abandoned
> sculpt/paint UX efforts:
> http://blenderartists.org/forum/show...Workflow-Suite
> <http://blenderartists.org/forum/showthread.php?268577-Addon-Sculpt-Paint-Workflow-Suite>
> "
>
> If this is correct, can't we give brushes and other resources that need to
> be called by python scripts UUID?
>
> "A. A Universally Unique Identifier <http://en.wikipedia.org/wiki/UUID> (UUID)
> is an identifier standard used in software construction, standardized by
> the Open Software Foundation (OSF) as part of the Distributed Computing
> Environment (DCE). The intent of UUIDs is to enable distributed systems to
> uniquely identify information without significant central coordination.
> Thus, anyone can create a UUID and use it to identify something with
> reasonable confidence that the identifier will never be unintentionally
> used by anyone for anything else. Information labeled with UUIDs can
> therefore be later combined into a single database without needing to
> resolve name conflicts."
>
> Seems the perfect solution to these problems.
>
> --
> Douglas E Knapp
>
> Creative Commons Film Group, Helping people make open source movies
> with open source software!
> http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php
>
> Massage in Gelsenkirchen-Buer:
> http://douglas.bespin.org/tcm/ztab1.htm
> Please link to me and trade links with me!
>
> Open Source Sci-Fi mmoRPG Game project.
> http://sf-journey-creations.wikispot.org/Front_Page
> http://code.google.com/p/perspectiveproject/
> _______________________________________________
> Bf-funboard mailing list
> Bf-funboard at blender.org
> http://lists.blender.org/mailman/listinfo/bf-funboard



-- 
- Campbell


More information about the Bf-funboard mailing list