0
$\begingroup$

I see a very old question who's answer may have changed. I would like to use a marker (by name) in a driver function, as shown here:

enter image description here

The 2013 answer is "no". Has this changed? I cannot find anything in "rightclickselect" nor in "devtalk" and thought this would have been discussed somewhere.

$\endgroup$
2
  • $\begingroup$ i would dare to say: yes, it is possible. But unfortunately your "frame start" field is not able to accept drivers... $\endgroup$
    – Chris
    Commented Jan 14, 2022 at 10:08
  • $\begingroup$ @MartyFouts -- see Chris's answer below (and my comment on why this was a trick question!) $\endgroup$
    – james_t
    Commented Jan 14, 2022 at 16:33

1 Answer 1

3
$\begingroup$

ok, it is a bit mean of me (sorry James!)...because it won't help you.

The frame start value doesn't access drivers.

But the question was: can the timeline marker be used as driver?

yes!

I used an array modifier for this with this expression in count:

bpy.context.scene.timeline_markers["F_100"].frame

and...it worked!

Proof:

move the marker, then change the timeline by 1 frame, you will see, the number of cubes will change.

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Okay actually I did know that, so it was also a trick question !!! Thanks for the info that I need for other purposes. I am searching the DevTalk and RightClick sites for discussion on this, as a favorite of mine would be top copy Last Frame as Driver and paste over the default 250 Last Frame in physics sims. (and give Moonboots hell!) $\endgroup$
    – james_t
    Commented Jan 14, 2022 at 16:32
  • 1
    $\begingroup$ well...with python and reacting on pre_frame_handler you could even set the frame end value by your marker... ;) $\endgroup$
    – Chris
    Commented Jan 14, 2022 at 16:39
  • $\begingroup$ Good point and BTW I'm typing into RightClick now. I can paste as Driver into a Cloth end frame, but not PS or Fluid! $\endgroup$
    – james_t
    Commented Jan 14, 2022 at 16:42

You must log in to answer this question.

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