Maniphest T31834

Cycles materials cannot be manipulated using drivers
Closed, Resolved

Assigned To
Joshua Leung (aligorith)
Authored By
Timo Rychert (masterdomino)
Jun 14 2012, 5:05 PM
Tags
  • Animation & Rigging
  • BF Blender
Subscribers
Beorn Leonard (freen)
Brecht Van Lommel (brecht)
Joshua Leung (aligorith)
Sergey Sharybin (sergey)
Timo Rychert (masterdomino)

Description

Duplicates: T31834

Hello,

it is possible to add a driver to cycles materials, but when trying to use the driver it doesn't work, it doesn't change any value.
When you turn on the debug info the "Value" in the variable field isn't even changed at all, even if you for example move the connected bone while using transform channel.

I don't know if this is a bug, or by design, but if this would be by design, why would the UI allow me to even add a driver?

Attatched is a file demonstrating the problem.
If you move the bone up the global z axis the Fac value in the monkey's material should change, but it doesn't.

If this is an already know issue, I apologize, I couldn't find much about it.

Thank you!
MD

Event Timeline

Timo Rychert (masterdomino) edited a custom field.Jun 14 2012, 5:05 PM
Timo Rychert (masterdomino) attached 1 file(s): F20899: DriverCycles.blend.
Sergey Sharybin (sergey) added a comment.Jun 18 2012, 2:36 PM

Brecht, can you please look into this? Probably that's just a limitation you already aware of.

Brecht Van Lommel (brecht) added a comment.Jun 20 2012, 8:13 PM

Joshua, do you know if and how this is supposed to work? I can't find any place in the code where drivers for materials or their node trees are evaluated, only for scenes and objects.

Sergey Sharybin (sergey) added a comment.Jul 2 2012, 12:51 PM

Closed duplicate http://projects.blender.org/tracker/index.php?func=detail&aid=31834&group_id=9&atid=498

Joshua Leung (aligorith) added a comment.Jul 3 2012, 7:15 AM

Brecht: indeed there was never any code for this. I was under the impression that there was some code in place for recalculating the drivers, just that this wasn't able to get called for whatever reason.

I've applied a fix for this in svn (r.48515). It seems to fix the problems, but further testing is still required to see if it has any really nasty performance penalty.

Joshua Leung (aligorith) changed the task status from Unknown Status to Resolved.Jul 3 2012, 7:15 AM