bpl
@bpl
New Member
Joined: Feb 15, 2024
Topics: 4 / Replies: 24
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT So… from now on, would you say any type of handle in MaxPlus are immutable? Asking this cos in other parts of my exporter I was parsing the st…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

denisT: Since it is unique to this scene and continues to be unique to the rest of the scene life we can use it as a key. Your statement here hol…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

I’ll read a couple of times the beforementioned article … but there is definitely one sentence which caught my attention there “The hash of an object …

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT Let me simplify my previous question, would you know to explain me why the hashes are different here? for n in traverse(): print(hash(n.G…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT First of all, thank you very much for these last comments of yours, they’re really unvaluable information! That said, I think all my confusi…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT Mmmm, I’ve tested your final solution and the out results look coherent, ie: created a scene with 1 original box and then made a copy/instanc…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT @dgsantana I think the key here is in this little snippet: for i in range(node.GetNumRefs()): print(i, node.GetReference(i)) The slot nu…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

Thanks for the link, I’ll take a look… in the meantime… I’ve found this answer from @denist that looks legit, I’ll check it out

6 years ago
Forum
Reply
RE: What, is the CGTalk finally dead?

After just few weeks using this forum I must to say the experience has been great: UI is great, you can post code in a similar way than StackOverflo…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT , @dgsantana Guys, ok, let’s forget for a moment about python-maxplus as using maxscript from python is straightforward, now, consider this mc…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT Imagine this case: 3dsmax_2018-12-29_10-17-46.png830x419 If I use GetObject as suggested: instances_and_references = defaultdict(list) …

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

First of all, thank you very much for your attempt, which btw is much nicer and lighter than mine. Unfortunately the outcome of that script is simila…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

Thanks for the advice, although the only thing I can complain about embedded python in 3dsmax is basically: Modern python (ie:>=3.6 at least) no…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

@denisT I’ve tested your ideas and I’m still a little bit puzzled… node1.GetObjectRef() == node2.GetObjectRef() wasn’t giving me the same hash betwee…

6 years ago
Forum
Reply
RE: How to check whether a node is a copy, instance or reference?

Hehe, well… I’ve been using maxplus for almost 1 week and I’m pretty happy about it… the only bad experience I’ve had so far happened when some instan…

6 years ago
Forum
Page 1 / 2