GetVirtualObjects
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 15:25, xxxxxxxx wrote:
What Marky71 does is safe. From what I've understood he just uses ObjectData::GetVirtualObjects to create the geometry. But when he creates a new object in the scene, he wants automatically move this under a selected object. So Philip's idea, to use a command plugin and hide the object plugin, is the best way to achieve this.
Cheers, Sebastian
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 15:35, xxxxxxxx wrote:
It is safe to create geomoetry from within GVO but it is not safe to then move the object as a child of another object from within GVO.ย From what I understand that is altering the scene and is not safe.ย If you want to make the geomoetry from within GVO you should then call the Message() to move the object under the selected object in the OM.ย I agree with Samir here, you shouldn't move the object from within GVO.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 15:58, xxxxxxxx wrote:
Originally posted by xxxxxxxx
What Marky71 does is safe. From what I've understood he just uses ObjectData::GetVirtualObjects to create the geometry. But when he creates a new object in the scene, he wants automatically move this under a selected object.
Well, the docs say
GetVirtualObjects ()
[URL-REMOVED] is of course allowed to do ANY modifications that do not modify the sceneimo this means in reverse that ANY modification that does modify the scene is not allowed or safe. I conclude therefore that also allocating and inserting an object (wether this has geometry or not) into the scene is also not allowed and therefore not safe.
At least that is the way I understand it. Apparently I seem to be wrong but then I donยดt fully see the difference between generating objects in the scene and moving an object in the scene (I mean the editor scene, not the virtual one). Both are scene modifications to me = both actions are not allowed from GVO. Do I miss something?
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:03, xxxxxxxx wrote:
Yes, touching the scene within GetVirtualObjects is not allowed. But InsertUnder on the virtual objects is for sure safe.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:04, xxxxxxxx wrote:
Originally posted by xxxxxxxx
But when he creates a new object in the scene, he wants automatically move this under a selected object. So Philip's idea, to use a command plugin and hide the object plugin, is the best to achieve this.
yes of course it is. My understanding however is that he creates the object from within GVO not from the plugin menu. Or did I misunderstood his initial post?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:05, xxxxxxxx wrote:
LOL..ย you're right..ย that's not what he was doing....ย I didn't read it correctly.ย My bad.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:06, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Yes, touching the scene within GetVirtualObjects is not allowed.
ok, somehow I have the feeling now that we all talked about different things.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:08, xxxxxxxx wrote:
Yes, seems so
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:10, xxxxxxxx wrote:
This is a good topic because it helps us understand the limitations of GVO. ย So from both of your understanding, is adding geomoetry from within GVO changing the scene?
~Shawn
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:11, xxxxxxxx wrote:
Originally posted by xxxxxxxx
But InsertUnder on the virtual objects is for sure safe.
Yes, that is true of course. Anything in the virtual scene is allowed actually. But if I understood the thread poster correctly, he is saying that he is modifying the "real" scene by inserting an object from within GVO. I guess you talked about the virtual scene. Just a misunderstanding.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 16:45, xxxxxxxx wrote:
GVO returns an object or object hierarchy that virtually 'replaces' the plugin object that does the GVO in the document - internally handled by Cinema 4D, not the programmer.ย This returned object is what results when you Make Editable or when the document is being prepared for render (among other processes).ย Trying to insert the resulting object of GVO into the real scene is definite a good path to crashing.
ETA: But, yes, you can insert it into a 'virtual document' that, say, is needed to perform some operation such as Current State to Object before passing the result to the real document through GVO.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/09/2010 at 22:06, xxxxxxxx wrote:
hello all,
thanks for this many hints. I believe i will using a command plugins as "work around" to move the new object under an selected object. This should be save.regards
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/09/2010 at 04:32, xxxxxxxx wrote:
But if I understood the thread poster correctly, he is saying that he is modifying the "real" scene by inserting an object from within GVO.
Oh, I see, after reading his post again I now got it