New issue 41 by danbeth...@gmail.com:
IECoreHoudini.FnProceduralHolder.setParameterised() doesn't update the
category, class and version menu.
http://code.google.com/p/cortex-vfx/issues/detail?id=41
If you set the procedural on an ieProceduralHolder node in Houdini using
the IECoreHoudini.FnParameterisedHolder function set it doesn't update the
menu selection correctly... but the rest of the parameter interface is fine.
>>> n = hou.obj("/obj/geo1").createNode( "ieProceduralHolder" )
>>> fn = IECoreHoudini.FnProceduralHolder( n )
>>> cl =
>>> IECore.ClassLoader.defaultProceduralLoader().load( "sphereProcedural"
>>> )()
>>> fn.setParameterised( cl )
A hacky workaround is to then set the class and version explicitly...
>>> n.parm("__className").set( cl.path )
>>> n.parm("__classVersion").set( str( cl.version ) )
This is actually the expected behaviour. If you call setParameterised
directly from an instance of a class, there isn't an associated className
and classVersion. You can instead use
>>> fn.setProcedural( "sphereProcedural" )
and the menus should update appropriately. IECoreMaya has the same
behaviour (though no className menu to make it as obvious).
Ah ok, that makes sense. Thanks for the info!
Comment #3 on issue 41 by danbeth...@gmail.com:
IECoreHoudini.FnProceduralHolder.setParameterised() doesn't update the
category, class and version menu.
http://code.google.com/p/cortex-vfx/issues/detail?id=41
(No comment was entered for this change.)