We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Click through/click beyond a transparent image

Home Forums Graphics / Blender Click through/click beyond a transparent image

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #36611
    Johnson
    Customer

    Hi Soft8Soft!

    I have a transparent image attached to the camera in my scene so that it’s visible no matter where the user turns, and wanted to click beyond that transparent image– to be able to click on to textures, on to planes, geometry, etc.

    How would I do that?

    #36614
    GLiFTeK
    Customer

    Use a. Call JS puzzle.
    MAKING OBJECTS “UNCLICKABLE”
    many times you need to click “through” an object.
    This is how:

    
    "app.ExternalInterface.setUnclickable = function (unclickable) {        
            var myObj = app.scene.getObjectByName(unclickable);
            myObj.raycast = function() {};
            console.log("UNCLICKABLE: ", unclickable);
            };"
    
    And make it selectable again like this:
             var myObj = app.scene.getObjectByName('clickable');
            delete myObj.raycast;

    where “unclickable” is where you plug in your object selector or variable that has that as it’s value.

    You can also use the execute js puzzle
    :good:

    #36629
    Johnson
    Customer

    Use a. Call JS puzzle. MAKING OBJECTS “UNCLICKABLE” many times you need to click “through” an object. This is how:

    where “unclickable” is where you plug in your object selector or variable that has that as it’s value.
    You can also use the execute js puzzle :good:

    Thank you Gliftek! Really appreciate your clarification.

    Only problem is, I really don’t know what I’m doing when it comes to javascript and placing it into puzzles (still trying to learn!), is there anyway you could show me exactly what the code is that I’m putting in the execute js puzzle or upload a puzzle with that code in when my object is called “lens1”?

    #36630

    In version 3.5, Verge3D’s when clicked puzzle obtain the option x-ray. If enabled, it allows to interact with objects overlapped by other objects.

    Chief 3D Verger | LinkedIn | Twitter

    #36635
    GLiFTeK
    Customer

    O dayum.. I’m old school. Hahaha.
    Totally forgot about this new feature.
    Super cool. :good:

    #36638
    Johnson
    Customer

    Thank you Gliftek for the previous insight.

    Thank you for that example in 3.5 Yuri, that worked perfectly! Appreciate the answer, thank you!

    But now I can’t use the “when hovered” puzzle to change the cursor on other elements for some reason, do you know the cause of that?

    #36649

    please see this answer https://www.soft8soft.com/topic/change-cursor-in-hover/

    Chief 3D Verger | LinkedIn | Twitter

    #36659
    Johnson
    Customer

    Thank you Yuri! :good:

    #49342
    Артём
    Customer

    In version 3.5, Verge3D’s when clicked puzzle obtain the option x-ray. If enabled, it allows to interact with objects overlapped by other objects.

    thanks! It helped with the case when the UI from the blender used and when the object was as close to the camera as possible, the buttons lost their functionality. The x-ray checkbox helped! :good:

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.