Eyeon Talk:Script/Reference/Applications/Fuse/Classes/ScriptOperator/AddInput

From VFXPedia

Jump to: navigation, search

Is there a way for Fuses to have curve controls similar to whats in CCv or Shd? I'm not even sure of the datatype, is it LookUpTable? --Chad 10:57, 18 May 2010 (EDT)

Theoretically at least. You'd need LINKID_DataType = "LookUpTable", INPID_InputControl = "SplineControl" and INPID_AddModifier = "LutBezier", with IC_ControlGroup and IC_ControlID of course (as with colour controls). Other useful tags would include SPC_SplineColor = 0xff0000 and SPCD_Height. --Daniel
Are there any other modifiers other than LUTBezier? Like we have all sorts of modifiers for Gradients, but I can't seem to add one to a LookUpTable. --Chad 12:38, 22 September 2011 (EDT)

Is it possible to have spinner controls in a Fuse, as seen in the "frame format" or "general" preferences? --Chad 15:36, 2 July 2010 (EDT)

No, sorry. That's not supported by InputControls. --Daniel

I don't think ICD_Center is a boolean. I think it's a number. --Chad 11:50, 8 December 2010 (EST)

It is. --Tilt 03:28, 9 December 2010 (EST)

Is there something like "RemoveInput"? I can AddInput or AddOutput, but can I get rid of them? Based on the way Merge3D works, I assume no, but I thought I'd check. --Chad 16:51, 30 November 2011 (EST)

Yes, for C++ plugins. Its usage is not recommended, because it becomes tricky if you want to re-add that input/output later (which will not create a new input/output, but will resurrect the old one), as there will still be Undo references to its previous incarnation. --Stuart 17:33, 30 November 2011 (EST)

Is it possible to add an input but not initially care about the DataType? Like I want an Input with LINK_Main, but have the DataType be determined by what's actually connected to it. So it can take an Image, Number, MtlGraph3D, etc, and we determine the DataType and what to do with it after it's connected? We'd obviously need to do the same with the Output, too, to match. --Chad 16:51, 30 November 2011 (EST)

You mean similar to pipe routers? No. You must create an input/output with a specific datatype (even if you omit LINKID_DataType, you'll get a Number data type). A C++ plugin could override some of the more obscure functions like Operator::CanConnect(), and then attempt to dynamically change the datatype of the input and output (if one or the other isn't already connected), but Fuses can't do that. --Stuart 17:33, 30 November 2011 (EST)