Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Custom PPG's do not work with Multi Selection?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bradley Gabe  
View profile  
 More options May 10 2012, 3:03 pm
From: Bradley Gabe <witha...@gmail.com>
Date: Thu, 10 May 2012 15:03:28 -0400
Local: Thurs, May 10 2012 3:03 pm
Subject: Custom PPG's do not work with Multi Selection?

I've noticed this before, and now it's happening with a custom tool kit
I've been developing.

I have a simple Custom PPG defined in a self installing plugin and am
applying it to multiple objects in the scene. However, if I multi-select
the objects, the PPG doesn't show up at the top of the selection explorer.

If I open the PPG on one of the objects, then multi select other objects
with the same custom property, the title bar of the PPG reads "[multi]",
but none of the multi selection features work... if I edit a parameter, it
only affects the first item in the selection.

What gives? Is there a way to construct the PPG in order to avoid this
behavior? I really need them to work in multi-selection mode!

-B


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Yargici  
View profile  
 More options May 10 2012, 5:44 pm
From: Dan Yargici <danyarg...@gmail.com>
Date: Fri, 11 May 2012 00:44:34 +0300
Local: Thurs, May 10 2012 5:44 pm
Subject: Re: Custom PPG's do not work with Multi Selection?

I've seen this many times too and would also love to know the reason!

Eagerly awaiting any info...

DAN


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Gabe  
View profile  
 More options May 10 2012, 5:54 pm
From: Bradley Gabe <witha...@gmail.com>
Date: Thu, 10 May 2012 17:54:50 -0400
Local: Thurs, May 10 2012 5:54 pm
Subject: Re: Custom PPG's do not work with Multi Selection?

I'm not sure if this is what is causing it for other scenarios, but I've
figured out what was causing it for me.

I have a script that is doling these Properties out onto scene objects, but
it is also changing their names to something different than the registered
PPG name:

SceneObject.AddProperty("MyCustomProp", 0, "DifferentName")

Even though all of the SceneObjects get a custom prop with the same exact
name, XSI treats them as if they are unique and doesn't give them Multi
Selection super powers.

If instead I leave out the 3rd Parameter in AddProperty:

SceneObject.AddProperty("MyCustomProp", 0)

I get appropriate PPG behavior with Multi Selection.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Lind  
View profile  
 More options May 10 2012, 7:02 pm
From: Matt Lind <ml...@carbinestudios.com>
Date: Fri, 11 May 2012 00:02:44 +0100
Local: Thurs, May 10 2012 7:02 pm
Subject: RE: Custom PPG's do not work with Multi Selection?

I don't know if this is the same problem we ran into many years ago, but it goes something like this:

To the best as I could figure out, the problem mostly appears when you have defined more than one RGBA color parameter (4 parameters of type siFloat) into a RGBA color widget.  Any parameters defined in the custom property after that point will not respond to multi-selection behaviors.  My workaround was to put the color parameters last in the custom property's _Definition() callback.

The 2nd part of the workaround is how you read parameters inside of a callback.  Softimage does have a few bugs here or there that I found many years ago and reported, but as far as I could tell they were fixed in 2012 SP1.  Anyway, how you pull parameters inside the callback is important.

Example:  The typical syntax to get access to a custom property and it's parameters from inside an _OnClicked() or _OnChanged() parameter callback is something like this (Jscript):

Parameter_OnChanged()
{
                var oCustomProperty = PPG.Inspected.Item(0);
                var oParameters = oCustomProperty.Parameters;

                var ParameterValue = oParameters( "parametername" ).value;
                ...

}

The key part of the whole equation is the first line.  In this example it pulls the first custom property in the inspected list.  If you want to consider all custom properties being inspected, you must iterate through the InspectItems collection and treat them one at a time.

Matt

From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Bradley Gabe
Sent: Thursday, May 10, 2012 12:03 PM
To: softim...@listproc.autodesk.com
Subject: Custom PPG's do not work with Multi Selection?

I've noticed this before, and now it's happening with a custom tool kit I've been developing.

I have a simple Custom PPG defined in a self installing plugin and am applying it to multiple objects in the scene. However, if I multi-select the objects, the PPG doesn't show up at the top of the selection explorer.

If I open the PPG on one of the objects, then multi select other objects with the same custom property, the title bar of the PPG reads "[multi]", but none of the multi selection features work... if I edit a parameter, it only affects the first item in the selection.

What gives? Is there a way to construct the PPG in order to avoid this behavior? I really need them to work in multi-selection mode!

-B


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raffaele Fragapane  
View profile  
 More options May 10 2012, 7:23 pm
From: Raffaele Fragapane <raffsxsil...@googlemail.com>
Date: Fri, 11 May 2012 09:23:04 +1000
Local: Thurs, May 10 2012 7:23 pm
Subject: Re: Custom PPG's do not work with Multi Selection?

Might be Matt is on the right track.
Very recently I've had some CPSets that have quite a few parameters, a
layout as dynamic as it can be with PPGs, and they were applied and tweaked
to quite a few different rigs and worked fine in multi at all levels, so I
can't say I've seen the problem.
They are all colour widget and table free though, but include just about
everything else.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »