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.

Change text font and size on click

Home Forums Puzzles Change text font and size on click

Tagged: , , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #50390
    Mariusz
    Customer

    Hi, I need to create a text object, where the user can choose its font and size from a dropdown menu. To do so, I used HTML puzzles to create a dropdown list of options.

    I created my text objects in Blender. And with using the “update text objects” puzzle I can easily change the typing with the user’s input. Yet, how can I access the text font and size from Blender to be able to change it with the choice from the dropdown menu?

    Attachments:
    You must be logged in to view attached files.
    #50485


    You need to do it with a specific puzzle in init tab like this.
    Look at Jewelry Configurator demo how properly setup drop down menu with font choice.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #50491
    Mariusz
    Customer

    Hello Mikhail,

    I’ve got this already in the init tab. I just don’t know how to access the “font” and “size” values in the text object that was created in Blender. Is there any way to do it (the preferable way)? Or to UPDATE the properties of the “create text object” (plan B)? For plan B: this puzzle creates the text object but doesn’t update it. At least I don’t know how to do it.

    Attachments:
    You must be logged in to view attached files.
    #50506

    TO change size you need to recreate a new object each time you change the size. You can to it with puzzle create text object.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #50694
    Mariusz
    Customer

    Thank you Mikhail, that actually worked! It’s kind of a walk-around but works indeed.

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