Message 1 of 4

Not applicable
09-08-2017
01:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have picked an object(or more then one object) in a scene, we do some stuff with it in visualize this on the screen.
It works fine but when I save the scene and I open this scene again my new created object is empty. The picked objects are dispeared out of the list.
I have this problem also with making a copy the new created object in the same scene.
Is it possible to save those items too and have it in a stack somewhere ?
plugin simpleObject ActiveElements name:"ActiveElements" category:"ForumQuestion" classID:#(0x1cbe0a0a, 0x277fe895) ( local objs=#() fn validGeometry node = (iskindof node GeometryClass) parameters main rollout:main ( targets type:#nodeTab tabSizeVariable:true ) rollout main "Parameters" ( group "Objects: " ( listBox ObjList items:(for o in objs collect o.name) height:5 pickbutton pickobject_bt "Pick Object" autoDisplay:off filter:validGeometry width:144 align:#right ) on pickobject_bt picked obj do ( if (findItem objs obj)<1 then ( append objs obj targets =objs ObjList.items = for i in objs collect i.name ) ) on params open do ( updateList() ) ) fn transformMesh theMesh theTM= ( for v=1 to theMesh.numverts do ( setVert theMesh v ((getVert theMesh v)*theTM) ) theMesh ) fn _attachMeshes meshes = ( n = meshes.count while (num = n/2) > 0 do for k=1 to num do ( meshop.attach meshes[k] meshes[n] n -= 1 ) meshes[1] ) on buildMesh do ( objMesh=#() temp=#() if objs.count>0 then ( for o=1 to objs.count do ( objectmesh=objs[o].mesh TM= matrix3 1 TM =(matrix3 [1,0,0][0,1,0][0,0,1][trx=(o*10),0,0]) temp[o]= (transformMesh objectmesh TM) append objMesh (_attachMeshes temp) ) setMesh mesh (_attachMeshes objMesh) ) )--buildmesh tool create ( on mousePoint click do ( case click of ( 1: nodeTM.translation = gridPoint 2:#stop ) ) )--end create )-- end plugin
Solved! Go to Solution.