A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
CV-Weight Scripts, Part 02: CV-Weight Presets and CV-Apply Weights To Select Overview
Posted: 09 August 2018 05:59 PM   [ Ignore ]  
Avatar
Total Posts:  80
Joined  2012-05-01

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