The forum on this site is closed for new comments and posts. Continue the conversation in the new forum, and learn more here.

duplicating sprite withe animated texture just loops all

  • Ah, this is something that's confusing with the sprite object. When you duplicated the sprite, it duplicated the object but retained the reference to the same material. So, all of your sprites are actually using the same material. So, when you set and play the animation, it's setting the material which is shared by all. Hence, they all play the same animation. 

    To fix this, try four new sprites. Go to Add New -> Sprite in the Objects panel for each sprite you want to use. These will now each have a unique material instance which will allow them to be set independently.

    I've filed a ticket to try and improve this. Thanks Patrick

    Comment actions Permalink
  • Tried this no luck, look forward to a fix please

    Comment actions Permalink
  • Hey Patrick, four new sprites should work. Can you elaborate a bit on where you're having trouble? If you can, please post the script where you're having this issue and I can try to debug it. 

    Comment actions Permalink
  • We're having the same problem Patrick is having. Creating new sprites instead of duplicating them did not fix the problem. I believe that as the texture animations are the same even though materials are different, when i call, it starts playing the one texture animation i have in my project for all materials that reference it. I believe the only way to fix this is to duplicate texture animations, which is a problem because of file size.

    There is of course the big possibility that i'm doing something wrong

    Comment actions Permalink
  • Ah sorry, I misunderstood the question! Didn't realize that we were talking about four of the exact same texture. Yes that makes sense. The actually animation playback is on the animated texture asset as you mentioned. Specifically this class which is a part of the Asset.Texture asset type:

    And you are correct, the only way to have the same texture playback at different rates is to duplicate the texture asset. I'll put a feature request in to better handle this case. In the meantime, unfortunately you'll have to copy your texture. 

    Comment actions Permalink
  • Quick follow up! Any duplicated asset that is the exact same are handled nicely in the final lens. Basically, all duplicates are removed and only a single copy remains which all of the duplicated resources will reference. Because of this, as long as you don't make changes to the assets independently, you should be able to duplicate textures for offset animation playback without impacting your Lens size. 

    Comment actions Permalink
  • Hey Travis, thanks for the update,

    yes I think I am seeing this if I duplicate within objects and not within resources but the issue still remains you can't press play on one duplicated animation sprite without the rest playing as well.

    Comment actions Permalink
  • Yes, I misunderstood the question. Because you are using the same texture, if you want them to have independent playback, you have to duplicate the actual resource. That said, because Lens Studio intelligently removes duplicate resources in the process of packaging the lens, you don't have to worry about increasing your lens size when you duplicate the resources as long as they remain identical. 

    Comment actions Permalink

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?



Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:



What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!