Modify object: charptr32 attr to inlet


#1

Hello all!

I have been banging my head at trying to simply modify some objects. i'd like to use an external string input instead of an attribute.

I already modified some objects in the past by simply adding an inlet and modifying all instances of "attr_x" into "inlet_x".
but for whatever reason I don't understand, the output always gives me "inlet_prefix" instead of whatever string I'm feeding to the inlet…
Is there something to declare when using charptr32 inlets and converting such attributes to inlets?

thanks!


#2

yes, that is a bit more complicated then the other inlets.

you will have to copy the string into a variable of type char, look at the string/concat object for a simple example how this works...