Jump to content

Concatenate variables into text _ Marionette


Recommended Posts



you can use the "Concat" node to add a list of strings together.

In your case you just have to convert the dimensions into strings with the "Str" Node before you put them into the ordered list. Than you can concatenate the list.




Link to comment

Hello Raph,


i'm sorry, i seem to have changed the code of the "concat" node without remembering.

It should work if you change the code of the "concat" node to:

class Params(metaclass = Marionette.OrderedClass):
	this = Marionette.Node( 'Concat' )
	this.SetDescription( "Concatenates a list of strings." )
	#Input Ports
	stringIn = Marionette.PortIn('', 'listStrings')
	stringIn.SetDescription( "The input strings." )	
	#OIP Controls
	#Output Ports
	stringOut = Marionette.PortOut('s')
	stringOut.SetDescription( "The output string." )

def RunNode(self):	 
	stringIn = self.Params.stringIn.value
	newString = ''
	for s in stringIn:
		newString = newString + str(s)
	self.Params.stringOut.value = newString


Unfortunately i cant post the vwx file because i just have an educational verison.




Link to comment

Hi LEtti,

Hi Dom,

Hi everybody,


Thank you for your answers.

I wanted to change the text in the marionette node. But I have an error that appears. (see attached file)

As a result, no changes are made.

So I wanted to create a new marionette node.

But I can't do it!

Can you give me advice, tutorials or sources that show how I can create my own marionette nodes?

Thanks in advance





Edited by Raph
Link to comment

Hi everybody,


OK I found a solution.

I took a node that @DomC created and modified it

see attached file


Thank you for sharing your knowledge and helping me 😉



I would really like to learn how to make my own nodes so my question remains.

Have you tips for learn to program in python for Vectorworks?


Many thanks in advance




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

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...