The Gaffer FloatPlug is a plug in the Gaffer framework that represents a floating-point value. It can be used to create connections between nodes and manipulate values within the Gaffer graph.
Here are some examples of how to use the Gaffer FloatPlug with Python code:
# Create a FloatPlug with a default value of 1.0 plug = Gaffer.FloatPlug( defaultValue=1 )
# Set the value of the plug plug.setValue( 2.5 )
# Get the value of the plug value = plug.getValue()
# Create a connection between two FloatPlugs plug1 = Gaffer.FloatPlug( defaultValue=0 ) plug2 = Gaffer.FloatPlug( defaultValue=0 ) plug1.setInput( plug2 )
# Get the connected input plug for a FloatPlug inputPlug = plug1.getInput()
The package library for Gaffer is the Gaffer Python API, which provides a set of Python classes and tools for building and manipulating Gaffer graphs.
Python Gaffer.FloatPlug - 30 examples found. These are the top rated real world Python examples of Gaffer.FloatPlug extracted from open source projects. You can rate examples to help us improve the quality of examples.