Skip to content

Instantly share code, notes, and snippets.

@MikeUdin
Created June 11, 2021 14:11
Show Gist options
  • Save MikeUdin/01c5d5848dff631e8ffb0041d4eb384a to your computer and use it in GitHub Desktop.
Save MikeUdin/01c5d5848dff631e8ffb0041d4eb384a to your computer and use it in GitHub Desktop.
import c4d
"""
Cinema 4D XPresso Python Node.
Resize Spline to two point separated segments.
Required ports:
SegmentCount(Integer)
Spline(Link)
"""
def main():
global SegmentCount
if not SegmentCount or not Spline:
return
Spline.ResizeObject(SegmentCount*2,SegmentCount)
for i in range(SegmentCount):
Spline.SetSegment(i,2,False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment