PDA

View Full Version : Storing a String Array in a Custom Attrib


Martin Andersen
11-28-2005, 03:50 PM
Hi there, I need to store some information in a nodes CA's...

the problem is this:

for o in selection do
(
ca=attributes mydef
(
parameters paramsP
(
mbmat type:#string

)
)
custAttributes.add o ca

o.mbmat= #("asdasd","asd")





)



---------------

in the linie:
mbmat type:#string

I need to Store an Array of strings in there, how can I do that ?

I guess I have to type something else than #string ???

PEN
11-28-2005, 04:33 PM
myStringAr type:#stringTab tabSize:0 tabSizeVariable:true

Look up scripted plugin clauses for more help. Scripted plugins and CA defs are really one and the same.

PEN
11-28-2005, 04:34 PM
I guess I shouldnt say that, they are very similar and use the same structure in the way that they are coded.

Martin Andersen
11-28-2005, 05:31 PM
thanks alot, it works now, I did actually tried the StringTab, but without the:
tabSize:0 tabSizeVariable:true

CGTalk Moderation
11-28-2005, 05:31 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.