Sorry to jump in the conversation unawares but what are adding on to input port ? For me it has always worked if I add :

customOp.AddInputPort(obj.Kinematics.Global)

and later access it in the update callback by:

xform =  ctxt.GetInputValue(0).Transform.Matrix4

and can then get each of 16 float values in a array by:

xformArr = xform .Get2()



On 10/09/2012 3:06 PM, Steven Caron wrote:
i even changed it to ask for the input port by name...

#     xform = ctxt.GetInputValue("InGlobal").GetTransform2("")
# AttributeError: 'float' object has no attribute 'GetTransform2'

On Mon, Sep 10, 2012 at 11:53 AM, Steven Caron <[email protected]> wrote:
hey matt

have you had any trouble where when you open a scene with a your custom operator in it, the inputport seems to be missing? it works fine initially.

i have code that is failing because i am blindly assuming my first input, my only input, is always present and its failing. it says the input port is a 'float' and it doesn't have an a Transform attribute. I am using a single input of a global transform of an object, which i pull out the index i need based on the output port's name.

any ideas why this doesn't persist?

s

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5260 - Release Date: 09/10/12


Reply via email to