• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Text variable within a component?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 189 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    artmusicstudio
    last edited by 22 Jun 2014, 14:36

    hi,
    is there a ruby-variable, which can show

    the NAME OF THE COMPONENT-INSTANCE

    even when the text (=variable) is placed within the component definition?

    i would like to achieve, that the name of the instance (unique, while created by my ruby, is displayed thru my ruby-script,
    but the text always is moved with the component by the user (it "sricks" to it),

    but i don't want to create a group 'around' them.

    is there any solution for that idea?
    thanx
    stan

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 22 Jun 2014, 17:51

      Both the definetion and the instance have their own name() and name=() methods.
      But these attributes are displayed in the EntityInfo dialog. (They are not text objects.)

      You could wrap the instance and a text object within a unique group. Then they would move together.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • A Offline
        artmusicstudio
        last edited by 22 Jun 2014, 20:58

        hi dan,
        yes, i understand.
        i solved the problem with the following solution:

        the component-related text is placed outside
        and with every calculation per ruby it is selectively deleted and placed with new parameters
        at the new components position.

        seems to work well.

        stan

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement