var i=project.activeLayer.children.length;
while(i--){
console.dir(project.activeLayer.children[i]);
// i try to do the next part here...
}//... some tests inside the loop..
project.activeLayer.children[i].visible=false; //has no effect
project.activeLayer.children[i].moveTo(new Point(50,50)); //has no effect
var group1=new Group();
project.activeLayer.removeChildren(group1.addChildren(project.activeLayer.children[i])); //causes errors
A.extend.initialize
_applyMatrix: true
_bounds: Object
_clockwise: undefined
_closed: false
_currentPath: undefined
_curves: undefined
_decomposed: undefined
_globalMatrix: se
_id: 6
_index: 4
_length: undefined
_matrix: se
_monoCurves: undefined
_parent: w.extend.initialize
_position: undefined
_project: s.extend.initialize
_segments: Array[13]
_selectedSegmentState: 0
_style: e.extend.initialize
_updateVersion: 76
applyMatrix: (...)
area: (...)
blendMode: (...)
bounds: (...)
children: (...)
className: (...)
clipMask: (...)
clockwise: (...)
closed: (...)
curves: (...)
dashArray: (...)
dashOffset: (...)
data: (...)
fillColor: (...)
firstChild: (...)
firstCurve: (...)
firstSegment: (...)
font: (...)
fontFamily: (...)
fontSize: (...)
fontWeight: (...)
fullySelected: (...)
globalMatrix: (...)
guide: (...)
handleBounds: (...)
id: (...)
index: (...)
interiorPoint: (...)
internalBounds: (...)
internalRoughBounds: (...)
justification: (...)
lastChild: (...)
lastCurve: (...)
lastSegment: (...)
layer: (...)
leading: (...)
length: (...)
locked: (...)
matrix: (...)
miterLimit: (...)
name: (...)
nextSibling: (...)
onClick: (...)
onDoubleClick: (...)
onFrame: (...)
onLoad: (...)
onMouseDown: (...)
onMouseDrag: (...)
onMouseEnter: (...)
onMouseLeave: (...)
onMouseMove: (...)
onMouseUp: (...)
opacity: (...)
parent: (...)
pathData: (...)
pivot: (...)
position: (...)
previousSibling: (...)
project: (...)
registration: (...)
rotation: (...)
roughBounds: (...)
scaling: (...)
segments: (...)
selected: (...)
selectedColor: (...)
shadowBlur: (...)
shadowColor: (...)
shadowOffset: (...)
strokeBounds: (...)
strokeCap: (...)
strokeColor: (...)
strokeJoin: (...)
strokeScaling: (...)
strokeWidth: (...)
style: (...)
transformContent: (...)
view: (...)
visible: (...)
windingRule: (...)
__proto__: A.extend.initialize
var paths=project.activeLayer.getItems({type:'path'});
for(var i=0;i<paths.length;i++){paths[i].remove();}//for exampleproject.activeLayer.getItems({type:'path',inside:hitResult.item},function(){console.log('done');});
var result=project.activeLayer.getItems({type:'path',inside:hitResult.item},function(){console.log('done');});
var result=project.activeLayer.getItems({type:'path'});
//then filter the results manually as the results are an array..console.log(paper.project.activeLayer.getItems({id:1}).closed)
paper.project.activeLayer.getItems({id:1})
--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This helps! but it would be good if we could say 'but not type retangle, circle'...