# Wakefield's Daily Tips

**URL:** <https://discourse.psychopy.org/t/wakefields-daily-tips/43371>\
**Category:** Blog\
**Tags:** online, pavlovia\
**Created:** [January 1, 2025, 3:36pm UTC](https://discourse.psychopy.org/t/wakefields-daily-tips/43371 "2025-01-01T15:36:55Z")\
**Posts on this page:** 1\
**Showing post:** 49

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 17, 2025, 12:53pm UTC](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/49 "2025-02-17T12:53:42Z")

</div>

## Set initial values if you update Each Frame

Online, if you an attribute of a visual stimulus is updated Each Frame then the first frame of presentation will use default values (e.g. position [0,0]) even if the stimulus starts after the routine has started. To solve this issue, set suitable default values in Begin Routine.

For example:

```auto
polygon.setSize([.2,.2])
polygon.setPos([-.75,-.5])

```

Often I just set the initial size to [0,0] (e.g. `polygon.setSize([0,0])`) so the stimulus isn’t visible until the second frame.

> [@Animated text (i.e., position set every frame) appears at (0,0) initially](https://discourse.psychopy.org/t/animated-text-i-e-position-set-every-frame-appears-at-0-0-initially/43920):
>
> URL of experiment: (still debugging) I am doing an auditory four-interval oddball task, in which participants here four stimuli and have to response whether two or three were different from the rest. To help them, there are the numbers 1 to 4 on the screen, and an animated underscore moves below each number when each stimulus appears. That all works well, however, even though the initial position is set right at the start of the experiment, the underscore appears at position (0,0) for probably…

---

_[View the full topic](https://discourse.psychopy.org/t/wakefields-daily-tips/43371)._
