Jump to content
Developer Wiki and Function Reference Links ×

super Text node


RDS Casa

Recommended Posts

Hello, simple one this time I hope? 

The current text node uses the insertion point based on the current text settings (in terms of vertical/horizontal properties etc). 

The set text properties node can adapt the a text object, but it does not move the text, it moves the insertion point. How do I blend these together, so I can set the text vert/horizontal properties before its inserted? 

or is it better to createit, apply properties node, then move it? 

Basically I need the centre of the text to be inserted in the centre of an object. 

Thanks

Link to comment

Great, Thanks so much.  I've only just seen this reply, sorry, and had got some of the way to resolving it using a few other nodes. This is neater. Thanks.

However, I then shortly hit another problem. My issue here is I don't understand why its not working, because I think it should? Can anyone advise?

 

In the attached file is a short network. It is intended to place a text string extracted from a layer name in the centre of polygon. All good so far with great help from m.graf (thanks so much again), but....

I also need it to rotate the text depending on the orientation of the polygon. So I thought the using the get width, get height nodes, with some simple logic (height>width then push 90 into set text orientation input), which I thought would be easy enough.... but as soon as I attach the rotation part of the network, the script just stops working??? Whats odd is when I use the debug tool, it kind of works.... I run the network without the rotate branch attached, then attach the rotate branch, without re-running the network. When I use the debug, I can see the outputs are correct. All looks good.  However, when I run it again, it stops working completely, and the debug outputs disappear?? what is happening here? is it the get width & get height nodes?? can they not cope with a list of multiple inputs?

 

I thought I had this.... !!!! darn. 

 

Thanks all. 

 

ID script.vwx

Link to comment

mmmm. Interesting. 

Firstly thanks again. I worked out what was happening. I could not have got this far without your help. I found a big cause of my problems - is it a VW bug? or is it common knowledge for marionette? Here is the trick. Took me an ages to work out why yours worked, and mine did not.

It looks like if you name the ANY node as a number, its stops working?? (or the real node I had before!)  I was calling the input nodes that feed a number in, by the number it was, so I could see what was happening. So...

image.thumb.png.e68f51a525400a284be30f2f0935b5db.png

This Works (no names)

image.thumb.png.e6c9cd43763ba4edb1c7685385f7ceb3.png

As does this (alpha naming),.... but this...

image.thumb.png.b590a3d60658665eb24f54160d1645e1.png

 

does not (numerical naming). Sometimes, as I got close to thinking I was getting there, I would start naming nodes. Then it all stopped working!!!! arghhh. Other networks would run. And I was losing it!!!

 

Basically, don't call your nodes a number !!!! 

 

Beyond this, thanks again for your input. This is all a big learning curve. But I'm moving through it. 

 

 

 

Link to comment

Thanks again for the angle node. Feels like I'm getting somewhere. Found this also,

And following a bit of trial and error with the insets in the coding, got it working I think !. It now pushes the text back into the layer that the ID box is in. Awesome. Thanks so much again for your help. It really has enabled me to progress. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...