Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. slobzheninov
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by slobzheninov

    • Empty font properties. Cache?

      Hi! I’m running into what seems to be a bug: some font properties are not showing up as expected, even with this bare minimum code:

      fontPath = '/...’
      print(font(fontPath)) # returns the font name
      print(listFontVariations(fontPath)) # returns variations
      print(listNamedInstances(fontPath)) # None
      print(listOpenTypeFeatures(fontPath)) # None
      

      I’m using a script for proofing, and that started happening after some font re-exporting. What helps is moving the font into a different folder or restarting the laptop, but then it breaks again. Seems like a cache issue to me; is that a thing in Drawbot? Any recommendations please? 🙂

      posted in Bugs
      slobzheninov
      slobzheninov
    • RE: save videos with a loop

      Thank you!

      posted in General Discussion
      slobzheninov
      slobzheninov
    • save videos with a loop

      Hi! I’m trying to save multiple mp4s with a loop, but each next video contains all the previous + the current one. Sort of like 0, 0+1, 0+1+2, etc.

      Could you please help, I’m probably missing something obvious? Should I reset the saveImage somehow?

      Here’s a test code:

      W, H = 500, 500
      FRAMES = 5
      fps = 5
      
      outputs = 3
      for output in range(outputs):
          
          for frame in range(FRAMES):
              newPage(W, H)
              frameDuration(1/fps)
              fill(1/(output+1))
              rect(0, 0, W, H)
          
          saveImage("~/Desktop/test-%s.mp4" % output)
      
      

      Thank you!

      posted in General Discussion
      slobzheninov
      slobzheninov