Forum Replies Created
-
AuthorPosts
-
2022-01-10 at 3:16 pm in reply to: Using target.id from parent doc as argument in procedure puzzle #48595Branden CokerCustomer
Hi Yuri, unfortunately, that’s not working either. I’m working around it now by using an if statement to single out the returned value of “performance.” A more elegant solution would certainly be welcome though.
2022-01-06 at 3:31 pm in reply to: Using target.id from parent doc as argument in procedure puzzle #48506Branden CokerCustomerNot working for me. I can’t use the text puzzle in the loop input. I also tried reverting back to my original approach at the start of this thread. Couldn’t get this to work by passing the text block to an argument in a procedure either.
Attachments:
You must be logged in to view attached files.2022-01-06 at 2:02 pm in reply to: Using target.id from parent doc as argument in procedure puzzle #48501Branden CokerCustomerYuri, thanks for the reply. Good to know regarding the built-in performance variable. I had no idea.
As for adding empty text value to the target.id, what’s the best way to do that? I still need to be able to use this in a for loop puzzle.
2022-01-06 at 1:42 am in reply to: Using target.id from parent doc as argument in procedure puzzle #48484Branden CokerCustomerFor clarity, this can be reproduced with the following puzzles:
Attachments:
You must be logged in to view attached files.2022-01-06 at 1:36 am in reply to: Using target.id from parent doc as argument in procedure puzzle #48479Branden CokerCustomerAfter digging around a bit more, I realized that the “variable value by name” puzzle may be the answer to my problem. I’ve managed to get this working, but now I’m running into another issue.
This works:
While this works for all the elements in my parent HTML doc, when I attempt to use it with an element named “performance” I get unexpected results in the app and console.
Normal output to the console with the above puzzle is a list of items from the corresponding variable. However when I attempt to use the “performance” element, I get this:
Looks like debug info, but I’m not sure where it’s coming from. The obvious workaround is to change my element ID to something other than “performance,” but that would affect a lot of different files on our end. Hoping there is another solution.
Attachments:
You must be logged in to view attached files.2022-01-05 at 6:08 pm in reply to: Using target.id from parent doc as argument in procedure puzzle #48473Branden CokerCustomerImages:
Attachments:
You must be logged in to view attached files.Branden CokerCustomerIf you get a working example of this, I’d love to see it if you’re willing to share. I’m looking to do exactly the same thing.
Branden CokerCustomerAlexander, I was also able to create the functionality that you show above. I think the main difference is that in my real app, I’m attempting to use a target id in the parent document and affect the display of a div in the main (Verge) html doc.
Branden CokerCustomerHello Alexander, sorry, I’m not sure where console.log resides. I have been monitoring the browser console during development. I don’t see any relevant messages there.
I just uploaded the project here:
As for the nulls, sorry for the confusion. The items contained in those collections are empties from Blender. I still have a habit of calling these nulls. They are indeed real objects though.
Branden CokerCustomerHi Yuri, yes I tried checking that as well. It still didn’t work.
Branden CokerCustomerThe puzzles for enabling/disabling rendering are pretty simple. I threw this together. Of course, this will only work properly on desktop browsers, you’d have to modify it for mobile use.
If you can see it in action here:
Branden CokerCustomerI don’t have any experience with Wix, but I am tied to our internal CMS system which is very limiting. I remember having to jump through hoops to even get the functionality I was able to get. Glad to hear that you found a solution that works for you!
Branden CokerCustomerI had an example of this approach live on our company site until recently. My approach was a little different than yours. I was using a blank Verge app to load up the desired app upon user interaction. That way when the page loaded the user was only presented with a series of thumbnails rather than multiple apps. I was trying to replicate the functionality of Sketchfab. I like your idea of disabling rendering, but I never took it that far. I’m curious to hear how others have handled similar projects.
Edit: Just reread your question. I’m wondering if you actually disabled rendering (with the “disable rendering” puzzle) when you exit an iFrame would that solve your performance issue?
Branden CokerCustomerHopefully the fix for this bug will make things more clear. Currently I can’t use the annotation label to close an annotation because my annotations are just dots provided for interaction with the model; they can’t include text. I also can’t close them using the “name” field, because for some reason that adds text to the annotation as well. I’m hoping we see a fix soon.
Branden CokerCustomerHaving similar issues here. I can’t quite figure out the right approach to controlling annotations. Some of the built-in functionality is unfortunately out of reach from puzzles. It appears as though you can only use the open and close annotation puzzles when targeting an annotation label and not the ID. I would expect the opposite behavior. I want an annotation with no label, but that leaves me to control its visibility through CSS (which is problematic in other ways for me).
-
AuthorPosts