Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast c4d cleanup #73

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Cast c4d cleanup #73

wants to merge 11 commits into from

Conversation

dtzxporter
Copy link
Owner

No description provided.

Devostated and others added 11 commits September 22, 2024 23:33
Cast Model support for Cinema 4D.

Supports:
- Meshes
- Skeleton
- Materials
- Vertex colors
- Constraints
- IK handles

Installation:
Create a folder with the name "Cast", "io_scene_cast" or any other suitable name and place the files in there. The cast python library (cast.py) should be placed in the resource folder named "res" in the plugins directory.

Requirements:
Cinema 4D 2024 or newer

Currently not supported:
- Animations
- Instances
- Blend shapes
- usage of enums
- added comments
- usage of bools
- parenting bones in an extra loop
- minor cleanup

Missing:
- pole #60 (comment)
- usage of c4d.quaternion() #60 (comment)
- removing unpack_list steps #60 (comment)
New Feature:
- Instance import

Improvements:
- using c4d.Quaternion()
- using PoleVectorBone instead of PoleBone

Requirements:
- Cinema 4D 2024.5 or newer
…ce/uv/color import.

Rebased, implemented multiple color layer import.
The clean up code had following errors:

#1
> NameError:name 'CAST_IMPORT_BIND_SKIN' is not defined

Solution:
`mxutils.ImportSymbols(PLUGIN_RES_DIR)` is required to load the symbols of the res directory.

#2
> vnTag.Set(vnData, int(i / 3),
TypeError:function takes at most 3 arguments (6 given)

Solution:
[c4d.NormalTag.Set](https://developers.maxon.net/docs/py/2025_0_0/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseTag/VariableTag/NormalTag/index.html?highlight=c4d%20normaltag#c4d.NormalTag.Set) has to be a dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants