Hi,
With the help of this page, I am able to set priority data on a TAG, but not on the SKIN DEFORMER.
I get a NoneType
error. Is there a separate code for setting priority data for the SKIN DEFORMER?
Here is the code so far:
import c4d
def SetPriority(Mode, Value, obj):
pd=obj[c4d.EXPRESSION_PRIORITY]
print pd # I get a NONE object here for skin deformer
pd.SetPriorityValue(c4d.PRIORITYVALUE_MODE, Mode)
pd.SetPriorityValue(c4d.PRIORITYVALUE_PRIORITY, Value)
obj[c4d.EXPRESSION_PRIORITY]=pd
return
def main():
obj = doc.SearchObject("skin_deformer")
SetPriority(4, 2, obj)
# Execute main()
if __name__=='__main__':
main()