Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Feature requests and bug reports
[feature request] better object positioning
Author Text

nigec
Registered User
Quote
2022-07-19 16:43:20

my current project I've created a bunch of prefab sections of a hallway; wall sections, walls with doors, singles,doubles.. you get the idea!
often getting it all to line up is a bit of a pain, the ability to have fine adjustment would be great.. maybe properties with xyz separated into up/down controls?

this is the sections idea
https://drive.google.com/file/d/...


just_in_case
Moderator
Quote
2022-07-19 18:31:48

You can use my plugin, snap to object to quickly connect and align 3D object with each other like walls, doors etc.
https://neophyte.cf/ccb_plugin_s...


DouweDabbe
Guest
Quote
2022-07-20 02:39:13

if your modules have standard size why not position
them with code?

You coud build a map from a letter string.
double for loop
peel of letter from map string
clone selected module
parent it to rootnode
position module at calculated position
(i an j * size) somewhere around center

you get the idea, a bit like I did with the goody distribution


DouweDabbe
Guest
Quote
2022-07-20 02:41:27

Oeh nice plugin from just_in_case

didnt look before


nigec
Registered User
Quote
2022-07-20 10:21:04

oh nice plugin thank you:)

yes the the walls are either 2 or 3 meters wide, same height, doors are all the same and fit a single or double frame, ceiling and floor sections are either 2 or 3 meters, so by code probably wouldn't be that hard, I had planned to do corridors and rooms as separate scenes rather than a huge model


nigec
Registered User
Quote
2022-07-20 17:56:50

here's my first try to populate with code
https://drive.google.com/file/d/...

sides, ceiling, floor, lights

so one wall length

var sourceNode = ccbGetSceneNodeFromName("Mesh1");
//first walls
var dist =30.0;
for ( i=0; i<=10; i++ )
{ var str ="section"+ i ;
str = ccbCloneSceneNode(sourceNode);
ccbSetSceneNodeProperty(str, "Position", dist*i, 20.0, 0.0);
//Declaring and Setting dynamic variable using eval
eval(str);
}



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact