Skip to content

Comments

Cast c4d cleanup#73

Draft
dtzxporter wants to merge 11 commits intomasterfrom
cast-c4d-cleanup
Draft

Cast c4d cleanup#73
dtzxporter wants to merge 11 commits intomasterfrom
cast-c4d-cleanup

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