1
$\begingroup$

I'm a new blender user. I'm trying to drive the Frames field (set as 60 here) of an Image texture node to control the speed of a GIF with some custom properties.

enter image description here

I've already tried creating a driver on the Offset field but this is not doing what I want and I can't create a driver on the Frames field.

Is it even possible to add a Driver on the Frames field? If not, is there another way I can do this?

$\endgroup$
2
  • $\begingroup$ can you give more details as to the expression relationship you want? like if frame is at 60 what value should appear at offset? and if frame=30 what value should offset be? $\endgroup$ Jul 11, 2022 at 11:05
  • $\begingroup$ I think I didn't express myself well, in the end I want to drive 'Frames' from a custom properties of a bone or an object without changing the 'Offset' value. $\endgroup$
    – user151388
    Jul 11, 2022 at 13:14

1 Answer 1

3
$\begingroup$

You can right click the Frames field and select Copy as New Driver. Then right click Offset field and select Paste Driver

enter image description here

Right click Offset field again and select Edit Driver and change the Driver Type to Scripted Expression. In this case, the default Expression is frame_duration, the variable representation for the Frames value (60). Here expression means Offset equals Frames but you can change this Expression to anything you want like sqrt(frame_duration)+10 or any other Math expression

enter image description here

$\endgroup$
4
  • 1
    $\begingroup$ First of all thanks for answer, the problem here is that I don't want to drive the 'Offset' I just took it as an example to show what I wanted on 'Frames'. $\endgroup$
    – user151388
    Jul 11, 2022 at 13:09
  • $\begingroup$ oh sorry the question was confusing. unfortunately you cannot add driver to Frames and Start Frame. only Offset. Your only course of action would be writing a python script in Scripting Tab $\endgroup$ Jul 11, 2022 at 13:36
  • $\begingroup$ Right click Frame field and select Copy Full Data path to get the python expression to set this field and use it in your python script. $\endgroup$ Jul 11, 2022 at 13:38
  • 1
    $\begingroup$ Yes that’s what I thought I will work on that so ! Thank a lot :) $\endgroup$
    – user151388
    Jul 11, 2022 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .