Ran into a snag on our animation/lighting pipeline. When importing geo caches to the lighting scene, the original shape node is hidden and replaced with a deformed shape node. Fine, but our lighters have added and adjusted vray attributes to the shape nodes, which I need to copy up to the deformed shape node.
I have a python function for detecting which vray attr groups have been added, and adding them to to deformed shape node, but now I want to copy the attribute values from the original shape to the deformed shape node, and I'm running into issues.
copyAttr doesn't work because it doesn't work with shape nodes. making a dictionary of attributes and their values doesn't seem to work because I need the types when using setAttr. I can get the type and add that to the dictionary, but the types I get from getAttr don't match the type I need to set the attribute.
Suggestions?
Thank you.
-ctj
I have a python function for detecting which vray attr groups have been added, and adding them to to deformed shape node, but now I want to copy the attribute values from the original shape to the deformed shape node, and I'm running into issues.
copyAttr doesn't work because it doesn't work with shape nodes. making a dictionary of attributes and their values doesn't seem to work because I need the types when using setAttr. I can get the type and add that to the dictionary, but the types I get from getAttr don't match the type I need to set the attribute.
Suggestions?
Thank you.
-ctj
Comment