create-10k-nft-collection
create-10k-nft-collection copied to clipboard
Help
Version
- [X] Yes
General Question
- [X] No
What happened?
Sorry to post this here. But i can not gain access to general questions....
If I have multiple "blank images" some named blank_01.png, blank_02.png, and so on, would this work or no? Or do I only need to just add the original !== "blank" in the script only?
const addAttributes = (_element) => { let selectedElement = _element.layer.selectedElement; if(selectedElement.name.trim().toLowerCase() !== "blank" !== "blank_01" !== "blank_02") { attributesList.push({ trait_type: _element.layer.name, value: selectedElement.name, }); } };
What have you tried?
I haven't tried anything. I did not wont to screw up.
Relevant log output
No response
Protect your information
- [X] I Agree
Hi, you can try my repo as well. I added support for blank specifically or any blank keyword.
https://github.com/thepeanutgalleryandco/create-and-mint-nft-collection
would this work?
const addAttributes = (_element) => { let selectedElement = _element.layer.selectedElement; const addAttributes = (_element) => { let selectedElement = _element.layer.selectedElement; if(selectedElement.name.trim().toLowerCase() !== "blank"); if(selectedElement.name.trim().toLowerCase() !== "blank_01"); if(selectedElement.name.trim().toLowerCase() !== "blank_01 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_02"); if(selectedElement.name.trim().toLowerCase() !== "blank_02 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_03"); if(selectedElement.name.trim().toLowerCase() !== "blank_03 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_04"); if(selectedElement.name.trim().toLowerCase() !== "blank_05"); if(selectedElement.name.trim().toLowerCase() !== "blank_05 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_06"); if(selectedElement.name.trim().toLowerCase() !== "blank_07"); if(selectedElement.name.trim().toLowerCase() !== "blank_07 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_08"); if(selectedElement.name.trim().toLowerCase() !== "blank_09"); if(selectedElement.name.trim().toLowerCase() !== "blank_09 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_10"); if(selectedElement.name.trim().toLowerCase() !== "blank_10 #100"); if(selectedElement.name.trim().toLowerCase() !== "blank_11"); if(selectedElement.name.trim().toLowerCase() !== "blank_12"); if(selectedElement.name.trim().toLowerCase() !== "blank_12 #") { attributesList.push({ trait_type: _element.layer.name, value: selectedElement.name, }); } };
On Sat, Feb 12, 2022 at 3:18 AM Rohan de Jongh @.***> wrote:
Hi, you can try my repo as well. I added support for blank specifically or any blank keyword.
https://github.com/thepeanutgalleryandco/create-and-mint-nft-collection
— Reply to this email directly, view it on GitHub https://github.com/codeSTACKr/create-10k-nft-collection/issues/92#issuecomment-1037060041, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXQISKPIVOF2PSBTXBJX3DLU2YJVDANCNFSM5OFRXO3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
I added support for blank specifically or any blank keyword.
https://github.com/thepeanutgalleryandco/create-and-mint-nft-collection