CV-Weight Scripts, Part 02: CV-Weight Presets and CV-Apply Weights To Select Overview
Posted: 10 August 2018 01:59 AM   [ Ignore ]  
Avatar
Total Posts:  15
Joined  2012-05-02

Hello,
Thank you so much for your work on these scripts and tutorials! I was trying to use the CV-Apply Weights To Selection script, but I got this in the Console:

AttributeError'module' object has no attribute 'ID_CA_WEIGHT_TOOL_APPLY_SELECTED' 

Perhaps this would work?

"""
Name-US: CV-Apply Weights To Selection
Description-US: Apply the current strength Weights to your component selection 
"""

import c4d
from c4d import gui
,modules,documents

def main
():
    
doc c4d.documents.GetActiveDocument()
    
weightManager c4d.modules.character.CAWeightMgr
    weightManager
.ApplyWeightFunction(doc)
    
c4d.EventAdd()

if 
__name__=='__main__':
    
main() 

Thanks again!

Profile