All,

Sorry, I answered my own question - I was afraid Field Variables were buried in 
the "meta" like the Block names were.   They were actually a little simpler 
once I found some time to poke around.

To add Total_Volume as a Field Variable  inside programmable filter:

...
output.DeepCopy(inputs[0])

Total_Volume = calc_Total_Volume()

FieldData=output.FieldData
Tot_Vol_Array=zeros( (1,1) )             #this is the part I didn't understand 
I needed
Tot_Vol_Array.fill(Total_Volume)
FieldData.append(Tot_Vol_Array, "Total_Volume")

False alarm this time, but I'm sure I'll be back!
Dennis

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to