Skip to main content
Forgotten one step
Source Link
TLousky
  • 16.1k
  • 1
  • 42
  • 73

To do this, you need to use your custom property to drive a value node.

EDIT: Added compositor example in addition to the original cycles material example.

This is possible in either the material or compositor node trees. Below is an example demonstrating the process in the compositor, and at the end I'll also include an example from a cycles material node setup.

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver. Step1
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. Change the variable Type to Single Property.
  6. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  7. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present. enter image description here

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

In the compositor, however, changing the custom property does not immediately trigger a scene update, which means the result will not be shown until you perform some other action that updates the view. In the example below, I simply Ctrl + LMB clicked on the Color node to reconnect the Viewer node, which updated the view.

Result

Cycles material example: enter image description here

To do this, you need to use your custom property to drive a value node.

EDIT: Added compositor example in addition to the original cycles material example.

This is possible in either the material or compositor node trees. Below is an example demonstrating the process in the compositor, and at the end I'll also include an example from a cycles material node setup.

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver. Step1
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present. enter image description here

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

In the compositor, however, changing the custom property does not immediately trigger a scene update, which means the result will not be shown until you perform some other action that updates the view. In the example below, I simply Ctrl + LMB clicked on the Color node to reconnect the Viewer node, which updated the view.

Result

Cycles material example: enter image description here

To do this, you need to use your custom property to drive a value node.

EDIT: Added compositor example in addition to the original cycles material example.

This is possible in either the material or compositor node trees. Below is an example demonstrating the process in the compositor, and at the end I'll also include an example from a cycles material node setup.

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver. Step1
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. Change the variable Type to Single Property.
  6. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  7. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present. enter image description here

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

In the compositor, however, changing the custom property does not immediately trigger a scene update, which means the result will not be shown until you perform some other action that updates the view. In the example below, I simply Ctrl + LMB clicked on the Color node to reconnect the Viewer node, which updated the view.

Result

Cycles material example: enter image description here

Updated to include GIFs and focus on compositor nodes
Source Link
TLousky
  • 16.1k
  • 1
  • 42
  • 73

To do this, you need to use your custom property to drive a value node.

EDIT: TheAdded compositor example below shows howin addition to do this for athe original cycles material example.

This is possible in either the material or compositor node tree (thistrees. Below is what happens when you don't readan example demonstrating the question twice before answering), but you can do exactlyprocess in the same with compositor nodes, and at the end I'll also include an example from a cycles material node setup.

enter image description here

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver. Step1
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present. enter image description here

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

In the compositor, however, changing the custom property does not immediately trigger a scene update, which means the result will not be shown until you perform some other action that updates the view. In the example below, I simply Ctrl + LMB clicked on the Color node to reconnect the Viewer node, which updated the view.

Result

Cycles material example: enter image description here

To do this, you need to use your custom property to drive a value node.

EDIT: The example below shows how to do this for a cycles material node tree (this is what happens when you don't read the question twice before answering), but you can do exactly the same with compositor nodes.

enter image description here

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver.
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present.

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

To do this, you need to use your custom property to drive a value node.

EDIT: Added compositor example in addition to the original cycles material example.

This is possible in either the material or compositor node trees. Below is an example demonstrating the process in the compositor, and at the end I'll also include an example from a cycles material node setup.

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver. Step1
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present. enter image description here

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

In the compositor, however, changing the custom property does not immediately trigger a scene update, which means the result will not be shown until you perform some other action that updates the view. In the example below, I simply Ctrl + LMB clicked on the Color node to reconnect the Viewer node, which updated the view.

Result

Cycles material example: enter image description here

Clarifying this will work for compositor nodes too
Source Link
TLousky
  • 16.1k
  • 1
  • 42
  • 73

To do this, you need to use your custom property to drive a value node.

EDIT: The example below shows how to do this for a cycles material node tree (this is what happens when you don't read the question twice before answering), but you can do exactly the same with compositor nodes.

enter image description here

  1. Add a value node ( ShiftA --> Input --> Value ) to your material node tree.
  2. Right click on the number in the input box and add driver.
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present.

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

To do this, you need to use your custom property to drive a value node.

enter image description here

  1. Add a value node ( ShiftA --> Input --> Value ) to your material node tree.
  2. Right click on the number in the input box and add driver.
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present.

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

To do this, you need to use your custom property to drive a value node.

EDIT: The example below shows how to do this for a cycles material node tree (this is what happens when you don't read the question twice before answering), but you can do exactly the same with compositor nodes.

enter image description here

  1. Add a value node ( ShiftA --> Input --> Value ) to your node tree.
  2. Right click on the number in the input box and add driver.
  3. Open the graph editor window, change the view mode from F-Curve to Drivers, then open the properties panel (N).
  4. Change the driver Type to Scripted Expression.
  5. In the variable's Path box type the name of your custom property delimited by square brackets and double quotes. Example: ["myProp"]
  6. In the Expr (expression) input box, make sure the name of the driver variable (default "var") is present.

That's it. You're value node is now connected to the value of your custom property, and any changes you make to the custom prop will be reflected there.

Source Link
TLousky
  • 16.1k
  • 1
  • 42
  • 73
Loading