Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5793

GhPython : list partition

$
0
0

@seghierkhaled wrote:

Hello i tried list partition with ghpythonlib.components but didn’t work,
what is the problem and is there another method to do it ?

import rhinoscriptsyntax as rs
import ghpythonlib.components as ghc
import Rhino.Geometry as rg


list = ['a','b','c','d','e','f']
#num = [2,3,1]
num = 2
a = ghc.PartitionList(list,num)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5793

Trending Articles