Re: Review: upgrade to pyglue


"dbr/Ben" <b...@...>
 

Looks much more Python'y \o/

Would be good to have more helpful method signatures for __init__ - would make this feature more discoverable - currently it just says:

help(OCIO.FileTransform)
...
| __init__(...)
| x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Also,
OCIO.FileTransform(cccid = "a")
..causes a segfault - probably due to line 213:

if(cccid) transform->setCCCId(src);

On 04/02/2011, at 5:42 AM, Jeremy Selan wrote:

Commits:
http://github.com/jeremyselan/OpenColorIO/commit/a764a5f7fb151d13be93107697262a670ba34392


This add kwarg support to most of the transform constructors in
python. Makes it way more convenient to construct profiles in python.

Old:
t = OCIO.FileTransform()
t.setSrc('taco')

New:
t = OCIO.FileTransform(src='taco')

group = OCIO.GroupTransform(transforms)

-- Jeremy

Join ocio-dev@lists.aswf.io to automatically receive all group messages.