User Activity

  • Posted a comment on discussion Scripting on Art of Illusion

    Yes I did find it and edited post but must have not updated post Many thanks

  • Posted a comment on discussion Scripting on Art of Illusion

    Hi Again If in the above/below the posKeyframe adds a new position i.e. posKeyframe = new VectorKeyframe(new Vec3(x,y,z)); posTrack.getTimecourse(0).addTimepoint(posKeyframe, time, sharp); How do I add the Rotation position, tried as below! but incorrect? rotateKeyframe = new VectorKeyframe(new Vec3(rx,ry,rz)); posTrack.getTimecourse(1).addTimepoint(rotateKeyframe, time, sharp);

  • Posted a comment on discussion Scripting on Art of Illusion

    Many thanks for all your help

  • Modified a comment on discussion Scripting on Art of Illusion

    Thanks Pete I am OK with creating the Texture, and naming it etc, but what I can't find to do is set an already created cube to a already created Texture by Name i.e. something like this window.getScene().getObject("CubeName").object.setTexture("TextureName", "TextureName".getDefaultMapping(window.getScene().getObject("CubeName").object)); Or is there a way to get the ID/Reference of a Texture by Name Found it newTxtr = window.getScene().getTexture("Blue").duplicate(); window.getScene().getObject("CubeName").object.setTexture(newTxtr,...

  • Posted a comment on discussion Scripting on Art of Illusion

    Thanks Maksim nObj = window.getScene().getNumObjects() println("Object = "+ nObj); for (i = 1; i < nObj; i++) { window.scene.removeObject(1,null) // works well } nTex = window.getScene().getNumTextures() // get number of Textures in scene println("Textures = "+ nTex); for (i = 1; i < nTex; i++) { window.scene.removeTexture(1,null) // gives an error } window.rebuildItemList();

  • Posted a comment on discussion Scripting on Art of Illusion

    Hi All Is there a way to Delete Objects and Textures, something like below or a clear all (as in File New) but keep the script alive for (i = 0; i < number of Objects; i++) { id = get.Object.ID(i); Delete.Object(id); } And for (i = 0; i < number of Textures; i++) { id = get.Texture.ID(i); Delete.Texture(id); }

  • Posted a comment on discussion Scripting on Art of Illusion

    Thanks Pete I am OK with creating the Texture, and naming it etc, but what I can't find to do is set an already created cube to a already created Texture by Name i.e. something like this window.getScene().getObject("CubeName").object.setTexture("TextureName", "TextureName".getDefaultMapping(window.getScene().getObject("CubeName").object)); Or is there a way to get the ID/Reference of a Texture by Name

  • Modified a comment on discussion Scripting on Art of Illusion

    Hi Pete, as allways thankyou for the reply I have got something working e.g. Creating 20 random color cubes, then changing color of Cube2 using texture[n] And creating on the fly new colors and changing Cubes 5 & 7 Is there a way to create a new color on the fly using the Cube NAME i.e. Cube8.diffuseColor = new RGBColor(1.0, 0.0, 0.0); Where Cube8 is variable String Name ? of a Cube alread created texture = new Texture [20]; r = new Random(0); for (i = 0; i < 20; i++) { texture[i] = new UniformTexture();...

View All

Personal Data

Username:
kev1953
Joined:
2017-09-24 04:50:12

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB