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

Collage template

  • So I started working on a collage that shows 12 image objects. The user needs to pick an image for each.


    The problem is my picker image texture seems to be a pointer and no matter how many different images I pick all my 12 image objects always point to the last image picked by the image picker.



    // @input Asset.Texture faceImagePickerTexture

    always reference the last image.



    Comment actions Permalink
  • Here's how my collage is looking like.


    Here is the code. I add the Script to each Image Object with a Touch Ended event.


    // -----JS CODE-----

    // @input Asset.Texture pickerTexture

    //@input Component.Image image


    print("tapped image 0");







    function externalImageCallback()


    print("picked a new image")

    script.image.mainPass.baseTex = script.pickerTexture;



    Comment actions Permalink
  • I even tried having multiple image picker resources but it didn't make a difference.

    Is there a way to clone the selected texture/image into a new object so it doesn't updates all the images when it changes?



    Comment actions Permalink
  • Try attaching the script to each and every one of the 12 image places. (Also you’ll need 12 different image picker resources) This way you should have 12 independent Image Pickers. However I’m not so sure how are you going to implement everything after this because the image pickers are going to overlap each other & I’m not sure if there is a way to disable an image picker? Can’t remember and can’t check right now.

    Comment actions Permalink
  • Thanks Nick.

    I tried with multiple image picker resources before and it causes the same issue. I believe it’s a limitation.

    Would be great if the lens studio team could chime in on this.

    Comment actions Permalink
  • Hey Nick, Marco,

    Yes at this time, for optimization reasons, all the resources are tied together in its source.

    For each copy of the image picker, however, you can have different settings. This makes more sense in the Face Image picker, where you can have each face image picker texture have its own scale and face region. 


    You can, however, still do this by using a camera to store an image (as a buffer). Basically, what you'd do is render the Image Picker texture to a camera, and then disable that camera as to freeze its texture. 

    Take a look at this example: 

    about freezing a camera to capture a texture. 


    Let me know if you need any clarification. Can't wait to see what you come up with!





    Comment actions Permalink
  • Hey Jonathan,


     That looks like a nice hack that will do it. I'll try and let you know.

     But I fear the collage lens will get the following rejection: "Lenses should utilize the Snapchat camera when taking Snaps".

     Is it not allowed to make full screen lenses like a collage lens?

     I received this rejection on my meme maker lens which was full screen without showing the camera.


    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!