Jump to content
Developer Wiki and Function Reference Links ×

Dimension Input to String


Recommended Posts

I'm working on a marionette script that can do the following

  • Take dimension inputs.
  • Make a shape base on those inputs.
  • Make a text box next to the shape with the dimensions and other specifications.

I'm having trouble converting the dimension value into a string. Does anybody know of an easy way to do this?

Here's what I've tried so far. I've attempted to make a node for VS.Num2StrF but I'm not having any luck. If I hard code the value directly into the function it works.

vs.Num2StrF(12.000000000000002)

If I try to pass a variable, then it doesn't work. Am I making a simple mistake?

vs.Num2StrF(self.Params.dim.value)

Edited by NeonClear
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...