Created
June 11, 2021 14:11
-
-
Save MikeUdin/01c5d5848dff631e8ffb0041d4eb384a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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