Polimeno
02-09-2010, 07:17 PM
Change the custom attribute variable name on-the-fly using another 'free variable' ?
test 1:
test_CA = "CTRL_Rigging"
ca = attributes test_CA
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
--returns
--"CTRL_Rigging"
--<AttributeDef:test_CA>
--true
test 2:
test_CA = "CTRL_Rigging"
ca = attributes (execute(test_CA))
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
-- returns
-- Error occurred in anonymous codeblock; position: 134; line: 5
-- Syntax error: at (, expected name
-- In line: ca = attributes (e
test 3:
test_CA = #("CTRL_Rigging")
ca = attributes test_CA[1]
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
-- returns
-- Error occurred in anonymous codeblock; position: 144; line: 5
-- Syntax error: at [, expected (
-- In line: ca = attributes test_CA[1
thanks in advance
test 1:
test_CA = "CTRL_Rigging"
ca = attributes test_CA
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
--returns
--"CTRL_Rigging"
--<AttributeDef:test_CA>
--true
test 2:
test_CA = "CTRL_Rigging"
ca = attributes (execute(test_CA))
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
-- returns
-- Error occurred in anonymous codeblock; position: 134; line: 5
-- Syntax error: at (, expected name
-- In line: ca = attributes (e
test 3:
test_CA = #("CTRL_Rigging")
ca = attributes test_CA[1]
(
local CA = "Testing_CA_Variables_Name"
)
custAttributes.add ($.baseObject) ca
-- returns
-- Error occurred in anonymous codeblock; position: 144; line: 5
-- Syntax error: at [, expected (
-- In line: ca = attributes test_CA[1
thanks in advance
