Skip to content

Instantly share code, notes, and snippets.

@cellfusion
Created October 31, 2012 07:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cellfusion/3985724 to your computer and use it in GitHub Desktop.
Save cellfusion/3985724 to your computer and use it in GitHub Desktop.
Cinema4D Goz name reset script
import c4d
from c4d import documents
# C4D select Objects GoZ Data Reset
GoZ_CONTAINER_ID = 2000000
def main():
doc = documents.GetActiveDocument()
objs = doc.GetSelection()
for obj in objs:
bc = obj.GetDataInstance()
del(bc[GoZ_CONTAINER_ID])
if __name__=='__main__':
main()
@cellfusion
Copy link
Author

選択してるオブジェクトの GoZ が使用してるデータを削除します。
削除すると現在のオブジェクトの名前で GoZ を使用できるようになります。

@cellfusion
Copy link
Author

書き出し先(例:mac /Users/Shared/Pixologic/GoZProjects/Default)に同じファイル名がある場合も arleady file になるので、その場合はファイルを削除するか ZBrush 側で GoZ のリセットをしてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment